Skip to content

Skip X509Certificate2 fallback for PE files in signature check - #17

Merged
majorsilence merged 2 commits into
TownSuite:mainfrom
majorsilence:main
Jul 16, 2026
Merged

Skip X509Certificate2 fallback for PE files in signature check #17
majorsilence merged 2 commits into
TownSuite:mainfrom
majorsilence:main

Conversation

@majorsilence

Copy link
Copy Markdown
Member

HasEmbeddedDigitalSignature fell back to X509Certificate2 whenever the
PE certificate-table check found no signature, and that fallback
false-positives on Electron/Chromium exe content - causing the client
to silently skip signing them. Gate the fallback to non-PE containers
only (msi/cab/msix/appx); PE files now rely solely on the certificate-
table read, which is authoritative.

HasEmbeddedDigitalSignature fell back to X509Certificate2 whenever the
PE certificate-table check found no signature, and that fallback
false-positives on Electron/Chromium exe content - causing the client
to silently skip signing them. Gate the fallback to non-PE containers
only (msi/cab/msix/appx); PE files now rely solely on the certificate-
table read, which is authoritative.
@majorsilence
majorsilence merged commit c3595f1 into TownSuite:main Jul 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant