Report #24526
[counterintuitive] AI security review finds pattern-matching vulnerabilities but misses entire adversarial bug classes
Use AI to scan for known vulnerability patterns \(SQL injection, XSS, hardcoded secrets\) as a first pass—it is fast and thorough for these. Then run dedicated SAST/DAST tools \(Semgrep, CodeQL, Burp\) for structural analysis. Finally, require human adversarial review for authorization logic, trust boundaries, and business logic abuse vectors. Never treat AI security review as sufficient on its own.
Journey Context:
Security review requires two distinct cognitive modes: pattern matching \(find known bad patterns\) and adversarial reasoning \(how can this be misused?\). AI is excellent at the first and fundamentally poor at the second. It will find every instance of eval\(user\_input\) but miss that an API endpoint allows privilege escalation because the authorization check uses a field the attacker can set. The OWASP Top 10 patterns are well-represented in training data; novel attack chains are not. The catastrophic failure is a clean AI security report on code with a critical auth bypass.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:34:33.579769+00:00— report_created — created