Security context

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

karpathy/cryptos
main @ e59d4ca
2
Fixes
0
CVEs
MEDIUM
Peak severity
0.0%
Coverage
Highlights
Crypto Implementation Issue: 1 prior fix. Scrutinize any change in this area.
cryptos/ecdsa.py: most-fixed (2 issues). Treat as high-risk during review.
0 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.

Cryptographic Issue: Incomplete enforcement of ECDSA signature constraints allows for signature malleability, where an attacker can modify a valid signature into another valid signature without knowing the private key.
Crypto Implementation Issue: Using incorrect constants (such as decimal 80 instead of hexadecimal 0x80) during DER serialization of ECDSA signature fields can result in malformed signatures or parser-specific validation bypasses.