Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

hotcakex/harden-windows-security
main @ eb3e5f9
7
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
Harden-Windows-Security: most-fixed (2 issues). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Memory Corruption: Using managed byte arrays instead of native IntPtr pointers within FDI notification callbacks and stream handlers caused memory corruption during CAB extraction. Future native interoperability code must maintain strict type safety alignment with native signatures.
Signature Verification Bypass: Failing to verify Authenticode signatures on module files prior to execution could allow tampered code to run. Robust verification via Get-AuthenticodeSignature and thumbprint pinning is necessary before executing loaded files.
Auth Bypass: Policy simulation was vulnerable to bypass due to lack of certificate trust and online revocation checks. Proper cryptographic validation with Chain.Build must be fully enforced on certificates.