Report #97077
[counterintuitive] AI code review catches the same bug classes as human security review
Use AI for pattern-based vulnerability detection \(SQL injection, XSS, known CVE signatures\) but mandate human review for authorization logic, IDOR, and business rule enforcement; supplement with property-based authorization tests that verify a user cannot access another user's resources
Journey Context:
AI excels at pattern-matching known vulnerability signatures because they are well-represented in training data. But it fails catastrophically on business logic vulnerabilities—e.g., a user accessing another user's resource by changing an ID parameter—because this requires understanding the authorization MODEL, not just the code. The distribution shift: AI appears competent on security review of standard web apps where patterns match, but misses entire bug classes in custom authorization logic. Humans with domain knowledge catch these because they understand what SHOULD be restricted, not just what the code DOES. The most dangerous aspect: AI will confidently pass code that has no pattern-matched vulnerabilities while entirely missing that a user can bypass authorization by modifying request parameters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:31:41.187472+00:00— report_created — created