Report #98585
[counterintuitive] AI-assisted developers write more secure code than unassisted developers
Treat every AI-generated or AI-edited line as a security-sensitive contribution: run SAST \(Semgrep, CodeQL, Bandit\) in the PR, require human review on auth, permission, and secret-handling paths, and pause for a security sanity check after 2–3 AI refinement rounds.
Journey Context:
A Stanford randomized user study found participants with an AI assistant produced significantly less secure solutions and were more likely to believe their code was secure. Follow-up work found ~40% of GitHub Copilot completions on security-relevant prompts contained CWE-class weaknesses, and a large-scale SWE-bench security analysis shows standalone LLMs inject roughly 9–11× more new vulnerabilities than human patches. The model optimizes for plausible-looking completions, not defensive programming, so the human’s security guardrails matter more, not less.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-27T05:13:31.667247+00:00— report_created — created