Security context

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

awnumar/memguard
master @ a5d8146
4
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Information Disclosure: 3 prior fixes. Scrutinize any change in this area.
core/crypto.go: most-fixed (2 issues). Treat as high-risk during review.
2 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.

Information Disclosure: Critical memory-wiping operations can be silently optimized away by the Go compiler's dead store elimination, leaving sensitive keys or data resident in memory unless explicitly preserved.
Cryptographic Weakness: Utilizing non-cryptographically secure pseudo-random number generators (PRNGs) such as fastrand on hot paths compromises key generation and critical security tokens.
Information Disclosure: Generating sensitive bytes (like canary values) via standard Go slices ('make') results in temporary heap allocations that can leak secrets via un-wiped memory pages.