Security context

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

drift-labs/protocol-v2
master @ 13e8e9b
7
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Access Control: 4 prior fixes. Scrutinize any change in this area.
programs/drift/src/instructions/keeper.rs: most-fixed (3 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: Two separate fixes address delegate signer verification for taker orders, showing a repeatedly mis-handled authentication path where a delegate can impersonate an authority or place orders without proper signature binding.
Access Control: Max margin ratio application from signed messages lacked authorization checks, allowing unauthorized parameter updates on taker positions.
Access Control: User initialization allowed non-signing authorities without a payer whitelist, enabling unauthorized account creation.