SECURITY VULNERABILITIES IN WEB APPLICATIONS GENERATED BY GENERATIVE AI CODING AGENTS: AN ANALYSIS BASED ON THE OWASP TOP 10:2025
DOI:
https://doi.org/10.63330/sasciencesv6n2-328Keywords:
Coding agents, Generative artificial intelligence, OWASP Top 10, Security testing, Software securityAbstract
Coding agents based on generative artificial intelligence now build entire applications from natural language instructions, but functional correctness does not guarantee security. This is an applied, empirical, and exploratory study of vulnerabilities in web applications generated by three command-line agents (Claude Code with Claude Opus 5.5, Codex CLI with GPT-6.1 Sol, and Antigravity CLI with Gemini 3.8 Flash), considering categories A01, A04, A05, and A07 of the OWASP Top 10:2025. In three independent runs, each agent incrementally built the same clothing store application from four prompts that described business rules without mentioning security. The nine applications were evaluated through 28 predefined test cases, static analysis with CodeQL, and manual review. Twenty-one vulnerabilities were confirmed: 3 in 189 evaluations of rules stated in the prompts and 18 in 54 evaluations of unrequested controls. No access control failures, insecure password storage, SQL injection, or XSS were found. Failures concentrated on session management and authentication, including a hard-coded signing secret that allowed forging an employee session, and on input validation. CodeQL flagged 5 of the 21 vulnerabilities and none of the session failures. The results suggest that agents implement security rules expressed as functional behavior but seldom adopt unrequested controls, which calls for explicit security requirements and targeted verification of generated code.
Downloads
References
ANTHROPIC. Claude Code overview. [S. l.]: Anthropic, 2026. Disponível em: https://docs.claude.com/en/docs/claude-code/overview. Acesso em: 5 nov. 2026.
DAVID, O. Bad vibes: comparing the secure coding capabilities of popular coding agents. [S. l.]: Tenzai, 13 jan. 2026. Disponível em: https://www.tenzai.com/blog/bad-vibes-comparing-the-secure-coding-capabilities-of-popular-coding-agents. Acesso em: 11 nov. 2026.
DENG, J.; FAN, Z.; MENG, R. Understanding the (in)security of vibe-coded applications. [S. l.]: arXiv, 2026. Preprint arXiv:2606.23130. Disponível em: https://arxiv.org/abs/2606.23130. Acesso em: 9 nov. 2026.
DRYRUN SECURITY. The agentic coding security report. Austin: DryRun Security, 11 mar. 2026. Disponível em: https://www.dryrun.security/resources. Acesso em: 11 nov. 2026.
FU, Y. et al. Security weaknesses of Copilot-generated code in GitHub projects: an empirical study. ACM Transactions on Software Engineering and Methodology, New York, v. 34, n. 8, p. 1-34, nov. 2025. DOI: 10.1145/3716848.
GITHUB. CodeQL documentation. [S. l.]: GitHub, 2026. Disponível em: https://codeql.github.com/docs/. Acesso em: 14 out. 2026.
GOOGLE. An important update: transitioning Gemini CLI to Antigravity CLI. [S. l.]: Google for Developers Blog, 19 maio 2026. Disponível em: https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/. Acesso em: 5 nov. 2026.
KHOURY, R. et al. How secure is code generated by ChatGPT? In: IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS, 2023, Honolulu. Proceedings [...]. Piscataway: IEEE, 2023. p. 2445-2451. DOI: 10.1109/SMC53992.2023.10394237.
NATIONAL INSTITUTE OF STANDARDS AND TECHNOLOGY. FIPS PUB 199: standards for security categorization of federal information and information systems. Gaithersburg: NIST, 2004. DOI: 10.6028/NIST.FIPS.199.
NATIONAL INSTITUTE OF STANDARDS AND TECHNOLOGY. NIST SP 800-30 Rev. 1: guide for conducting risk assessments. Gaithersburg: NIST, 2012. DOI: 10.6028/NIST.SP.800-30r1.
NATIONAL VULNERABILITY DATABASE. CVE-2025-48757. Gaithersburg: NIST, 2025. Disponível em: https://nvd.nist.gov/vuln/detail/CVE-2025-48757. Acesso em: 5 nov. 2026.
OPENAI. Codex CLI. [S. l.]: GitHub, 2026. Disponível em: https://github.com/openai/codex. Acesso em: 5 nov. 2026.
OWASP. OWASP Top 10:2025. [S. l.]: OWASP Foundation, 2025. Disponível em: https://owasp.org/Top10/2025/. Acesso em: 14 out. 2026.
OWASP. Application Security Verification Standard (ASVS). [S. l.]: OWASP Foundation, 2026a. Disponível em: https://owasp.org/www-project-application-security-verification-standard/. Acesso em: 14 out. 2026.
OWASP. Password storage cheat sheet. [S. l.]: OWASP Foundation, 2026b. Disponível em: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html. Acesso em: 5 nov. 2026.
PEARCE, H. et al. Asleep at the keyboard? Assessing the security of GitHub Copilot’s code contributions. In: IEEE SYMPOSIUM ON SECURITY AND PRIVACY, 43., 2022, San Francisco. Proceedings [...]. Piscataway: IEEE, 2022. p. 754-768. DOI: 10.1109/SP46214.2022.9833571.
PERRY, N. et al. Do users write more insecure code with AI assistants? In: ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, 2023, Copenhagen. Proceedings [...]. New York: ACM, 2023. p. 2785-2799. DOI: 10.1145/3576915.3623157.
RETZLAFF, L. L.; MOTTA, A. Assessing the security of “vibe coding”: an analysis of vulnerabilities in web applications generated by LLMs. In: ESCOLA REGIONAL DE REDES DE COMPUTADORES, 23., 2026, Santa Maria. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2026. Disponível em: https://sol.sbc.org.br/index.php/errc/article/view/46229. Acesso em: 9 nov. 2026.
SALVA, R. J. How are developers using AI? Inside our 2025 DORA report. [S. l.]: Google Blog, 23 set. 2025. Disponível em: https://blog.google/technology/developers/dora-report-2025/. Acesso em: 5 nov. 2026.
SEMGREP. Semgrep documentation. [S. l.]: Semgrep, 2026. Disponível em: https://semgrep.dev/docs/. Acesso em: 14 out. 2026.
SOUPPAYA, M.; SCARFONE, K.; DODSON, D. NIST SP 800-218: secure software development framework (SSDF) version 1.1: recommendations for mitigating the risk of software vulnerabilities. Gaithersburg: NIST, 2022. DOI: 10.6028/NIST.SP.800-218.
STACK OVERFLOW. Getting ready for 2026 results: a look back on Developer Survey findings. [S. l.]: Stack Overflow Blog, 30 set. 2026. Disponível em: https://stackoverflow.blog/2026/09/30/getting-ready-for-2026-results-a-look-back-on-developer-survey-findings/. Acesso em: 5 nov. 2026.
VERO, M. et al. BaxBench: can LLMs generate correct and secure backends? In: INTERNATIONAL CONFERENCE ON MACHINE LEARNING, 42., 2025, Vancouver. Proceedings [...]. [S. l.]: PMLR, 2025. (Proceedings of Machine Learning Research, v. 267). p. 61344-61390. Disponível em: https://mlanthology.org/icml/2025/vero2025icml-baxbench/. Acesso em: 5 nov. 2026.
WOHLIN, C. et al. Experimentation in software engineering. Berlin: Springer, 2012. DOI: 10.1007/978-3-642-29044-2.
YANG, J. et al. SWE-agent: agent-computer interfaces enable automated software engineering. In: CONFERENCE ON NEURAL INFORMATION PROCESSING SYSTEMS, 38., 2024, Vancouver. Proceedings [...]. Red Hook: Curran Associates, 2024. DOI: 10.52202/079017-1601.
ZHAO, S. et al. Is vibe coding safe? Benchmarking vulnerability of agent-generated code in real-world tasks. [S. l.]: arXiv, 2025. Preprint arXiv:2512.03262. Disponível em: https://arxiv.org/abs/2512.03262. Acesso em: 9 nov. 2026.
Downloads
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Autores concordam com os seguintes termos:
a) Os autores mantêm os direitos autorais e concedem à revista o direito de primeira publicação, com o trabalho simultaneamente licenciado sob a LicençaAttribution-NonCommercial-ShareAlike 4.0 International, que permite o compartilhamento do trabalho com reconhecimento da autoria e publicação inicial na Revista SAS. A licença permite o uso, a distribuição e a reprodução irrestrita, em qualquer meio, desde que devidamente citada a fonte. Essa licença permite também que outros remixem, adaptem e criem a partir do seu trabalho para fins não comerciais, desde que atribuam a você o devido crédito e que licenciem as novas criações sob termos idênticos.
b) Não cabe aos autores compensação financeira a qualquer título, por artigos ou resenhas publicados na South American Sciences.
c) Os conceitos expressos nos artigos publicados na South American Sciences são de inteira responsabilidade de seus autores.
