mlsanityData to 24 Nov 2026

The Effect of Security-Focused Prompts on Reported Findings: A Controlled Experiment on 400 AI-Generated Web Applications

arXiv 2611.28408 ↗Submitted 20 Nov 2026Announced 24 Nov 2026cs.AI cs.CRcited by 0

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

Agentic 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. Each of 100 frozen specifications was realized four times: two agentic tools (Claude Code, Codex CLI) crossed with two prompts sharing a byte-identical functional core, without (A) and with (B) the security block. A fixed static and dynamic pipeline scanned the 400 applications, yielding 6,721 triaged findings, analyzed with count and logistic mixed models and with a dependency diff. The block cut findings per application by a third (incidence-rate ratio 0.65, 95% CI 0.60-0.71), equally through both tools, and roughly doubled the declared dependency surface, so variant-B applications carried more high-severity dependency advisories. Adjusted for that surface the advisory rate did not rise (flat per application, 18% lower in aggregate), while high-severity findings in first-party source fell by nearly half. Security-focused prompting is therefore an inexpensive and portable improvement, but it enlarges the dependency surface that has to be audited against it, an effect of library selection rather than of the security requirements themselves.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 17 of its 26 references that are in the map. Submitted 20 Nov 2026, announced 24 Nov 2026.

Builds on

17 of 26 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks2 Dec
  2. 2025SecRepoBench: Benchmarking Code Agents for Secure Code Completion in Real-World Repositories29 Apr

Other references · 15

  1. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 446
  2. 2022Do Users Write More Insecure Code with AI Assistants?cited by 202
  3. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 165
  4. 2025BaxBench: Can LLMs Generate Correct and Secure Backends?cited by 48
  5. 2023Security Weaknesses of Copilot-Generated Code in GitHub Projects: An Empirical Studycited by 43
  6. 2019Small World with High Risks: A Study of Security Threats in the npm Ecosystemcited by 40
  7. 2024Prompting Techniques for Secure Code Generation: A Systematic Investigationcited by 37
  8. 2025Vibe coding: programming through conversation with artificial intelligencecited by 36
  9. 2021What are Weak Links in the npm Supply Chain?cited by 17
  10. 2022Demystifying the Vulnerability Propagation and Its Evolution via Dependency Trees in the NPM Ecosystemcited by 9
  11. 2021An Empirical Study of Rule-Based and Learning-Based Approaches for Static Application Security Testingcited by 8
  12. 2025The Hidden Risks of LLM-Generated Web Application Code: A Security-Centric Evaluation of Code Generation Capabilities in Large Language Modelscited by 8
3 more
  1. 2026An Empirical Evaluation of LLM-Generated Code Security Across Prompting Methodscited by 3
  2. 2026Understanding the (In)Security of Vibe-Coded Applicationscited by 3
  3. 2026Vibe Coding and Web Application Security: A Twin-Prompt Studycited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Security in the Age of AI Teammates: An Empirical Study of Agentic Pull Requests on GitHub
  2. 2026Beyond Prompts: Runtime Contracts for Coding Agents
  3. 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding
  4. 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMs
  5. 2026Insights into Security-Related AI-Generated Pull Requests
  6. 2026Prompt Injection Attacks on Agentic Coding Assistants: A Systematic Analysis of Vulnerabilities in Skills, Tools, and Protocol Ecosystems
  7. 2026Agent Skills in the Wild: An Empirical Study of Security Vulnerabilities at Scale
  8. 2025From Prompt to Product: A Human-Centered Benchmark of Agentic App Generation Systems