Security prompts cut findings in agent-built web apps by a third
Original title: The Effect of Security-Focused Prompts on Reported Findings: A Controlled Experiment on 400 AI-Generated Web Applications
Across 400 apps from Claude Code and Codex CLI, the OWASP block also nearly doubled the declared dependency surface.
A controlled experiment appended a fixed OWASP-aligned security block to prompts for agentic coding tools and compared the resulting web applications. One hundred frozen specifications were each built four times, crossing Claude Code and Codex CLI with prompts that shared an identical functional core. A static and dynamic pipeline produced 6,721 triaged findings. The security block reduced findings per application by about a third through both tools, while high-severity first-party findings fell by nearly half and declared dependencies roughly doubled.
- The incidence-rate ratio was 0.65, with a 95% confidence interval of 0.60–0.71.
- The reduction was about equal for Claude Code and Codex CLI.
- Adjusted for surface, the advisory rate was flat per application and 18% lower in aggregate.
- Variant-B apps carried more high-severity dependency advisories because of library selection.
- Products
- Claude CodeCodex CLI
- Organizations
- OWASP
From the original article
1 min read at arxiv.orgAgentic coding tools turn a specification into a running web application, so their defaults for authentication, sessions, input validation, and dependencies become its security posture. This study asks whether appending a fixed block of OWASP-aligned security requirements to the prompt changes what such tools produce, by how much, and with what side effects.
By Darko Andročec · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.