Security context

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

lightning/bolts
master @ 94eb038
14
Fixes
0
CVEs
CRITICAL
Peak severity
27.3%
Coverage
Highlights
Denial of Service: 6 prior fixes. Scrutinize any change in this area.
02-peer-protocol.md: most-fixed (2 issues). Treat as high-risk during review.
7 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.

Auth Bypass: Accepting funding_locked states without validating the underlying on-chain funding transaction output's scriptpubkey and amount can allow malicious peers to bypass channel setup validation entirely.
Denial of Service: Insecure transaction signatures using SIGHASH_SINGLE allow transaction pinning attacks when nodes attempt to claim multiple revoked outputs with a single penalty transaction.
Information Disclosure: Nodes improperly broadcasting their own HTLC-success preimage on-chain when not the final recipient allows intermediate nodes to extract preimages prematurely (CVE-2020-26896).