Recent advances in large language models (LLMs) have enabled vibe coding, an emerging software development paradigm in which users create applications primarily through natural-language interactions with AI agents. Due to its low barrier to entry, vibe coding is rapidly gaining adoption in practice. Unlike conventional AI-assisted programming, where developers remain responsible for implementation and code review, vibe coding delegates a substantial portion of the development process to AI systems. This shift raises a fundamental question: how (in)secure are applications developed through vibe coding? In this paper, we conduct a systematic study of the security of real-world vibe-coded applications. We collect 9,041 open-source applications developed using popular AI agents (Claude Code and Lovable), and audit 200 publicly deployed applications, uncovering 1,186 vulnerabilities. Our study of these applications and vulnerabilities reveals several key findings: (1) insecurity is the norm rather than the exception: 91.0\% of audited applications contain at least one vulnerability, and 65.77\% of identified vulnerabilities are rated Critical or High severity, concentrated in broken access control, injection, and authentication failures; (2) these vulnerabilities are traceable to eight recurring failure modes rooted in three systematic limitations of AI agents: memory defects, objective defects, and knowledge defects; and (3) while improved agent harness and prompting strategies can reduce the incidence of vulnerabilities, they do not eliminate the underlying security risks. Overall, our study provides an empirical understanding of the security landscape of vibe-coded applications and lays the groundwork for addressing the security risks in the growing delegation of software development to AI systems.
GoodVibe: Security-by-Vibe for LLM-Based Code Generation
Technical University of Darmstadt(达姆施塔特工业大学);University of Bristol(布里斯托大学);Radboud University(拉德堡德大学);University of Zagreb Faculty of Electrical Engineering and Computing(萨格勒布大学电气工程和计算学院)
Carnegie Mellon University(卡内基梅隆大学);Microsoft Research(微软研究院);University of Virginia, Charlottesville(弗吉尼亚大学夏洛茨维尔分校);University of California, San Diego(加利福尼亚大学圣迭戈分校)
Last Secure Code Benchmark: Is the Code You Vibe Secure?
National University of Singapore(新加坡国立大学);Qwen Team, Alibaba Token Hub, Alibaba Group(阿里通义千问团队、阿里Token Hub、阿里巴巴集团);Cloud Safety and Security, Alibaba Cloud, Alibaba Group(阿里云云安全与安全部门、阿里云、阿里巴巴集团)
本研究推出 Last Secure Code Benchmark 评估编码智能体的安全代码生成,发现前沿智能体生成的代码功能通过率高但安全通过率低,vibe 编码生成代码的安全性存在严重隐患。
Your Harness is Not Secure: Benchmarking Real-world Threat of Command Line Interface Agent
University of Georgia(佐治亚大学);University of South Florida(南佛罗里达大学);Johns Hopkins University(约翰斯·霍普金斯大学);University of Maryland, College Park(马里兰大学帕克分校);Hong Kong University of Science and Technology(香港科技大学);Chinese University of Hong Kong(香港中文大学);Apple(苹果公司);Arizona State University(亚利桑那州立大学)