Security context

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

keep-network/tbtc-v2
main @ 2ef6ac6
40
Fixes
0
CVEs
CRITICAL
Peak severity
47.2%
Coverage
Highlights
Auth Bypass: 8 prior fixes. Scrutinize any change in this area.
solidity/contracts/bridge/Bridge.sol: most-fixed (4 issues). Treat as high-risk during review.
33 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: SPV proof submission was not restricted to trusted maintainers, allowing anyone to submit fake Bitcoin transactions. This is the most severe risk as it directly compromises the bridge's core security.
Authorization Bypass: Multiple validation gaps in proposal validation (redemption, deposit sweep, moved funds) allowed unauthorized or premature fund movements. These are recurring because the validator is a central chokepoint with many entry points.
Auth Bypass: Admin functions (add/remove guardian, change authority) lacked PDA seed/bump validation and used single-step authority transfer, enabling unauthorized role changes and authority takeover.