Report #87329
[counterintuitive] AI coding agents are excellent at writing secure code because they have memorized CVEs
Use AI to apply standard security scaffolding \(CORS, CSP, parameterized queries\), but manually verify all authentication, authorization, and cryptographic implementations.
Journey Context:
AI is great at avoiding past vulnerabilities \(e.g., SQL injection\) but fails catastrophically at novel logical authorization bypasses \(e.g., IDOR\). AI understands what to block, but fails at who should be allowed. Humans intuitively understand user roles; AI only sees data flow, systematically missing broken access control because it lacks the user/session context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:10:19.352398+00:00— report_created — created