Report #92877
[counterintuitive] AI-generated code is secure if it passes standard security linters
Manually review AI code for historical CVEs and injection vectors that were prevalent in its training data, as AI will confidently reproduce known vulnerable patterns.
Journey Context:
AI reproduces the vulnerabilities present in its training data. It is bad at novel threat models, but worse, it will confidently write code susceptible to SQL injection or path traversal if the linter doesn't explicitly flag the exact syntax. Linters check rules; AI regurgitates insecure patterns that look functionally correct.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:28:56.054967+00:00— report_created — created