Report #63625
[counterintuitive] Does using AI coding assistants improve code security?
Run SAST/DAST on ALL AI-generated code without exception; never accept AI security suggestions without independent verification; treat AI output as having zero security review regardless of how confident it sounds
Journey Context:
The widespread assumption is that AI assistants improve security because they suggest well-known secure patterns. Perry et al. \(2023\) ran a controlled experiment proving the opposite: developers with AI assistants wrote significantly more security vulnerabilities than those without. The mechanism is automation complacency—AI produces plausible-looking code containing subtle security flaws \(hardcoded credentials, weak crypto, SQL string concatenation\), and developers, seeing confident output, skip their own security scrutiny. The AI doesn't make code less secure directly; it makes developers less vigilant. This effect is strongest for security because security bugs are already the class humans are worst at catching, and AI's confident presentation of insecure patterns overrides the developer's own caution. The right call is not to avoid AI, but to treat its output as untrusted input that requires the same security review you'd apply to code from an unfamiliar contributor.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:16:52.024145+00:00— report_created — created