arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.23130cs.CRcs.SE
收藏

理解“氛围编码”应用的安全性(与非安全性)

Understanding the (In)Security of Vibe-Coded Applications

Microsoft(微软);National University of Singapore(新加坡国立大学)

Junquan Deng, Zhiyu Fan, Ruijie Meng

AI总结:

本文系统研究了通过“氛围编码”范式开发的应用的安全性,发现其存在占位符逻辑、未过滤输入和秘密泄露等重复性漏洞模式,根源在于AI代理的系统性局限,且即使改进LLM能力也无法消除根本风险。

摘要:

近期大型语言模型(LLM)的进展催生了“氛围编码”(vibe coding),这是一种新兴的软件开发范式,用户主要通过自然语言与AI代理交互来创建应用。由于其低门槛,氛围编码在实践中迅速普及。与传统AI辅助编程不同——后者中开发者仍对实现和代码审查负责——氛围编码将大量开发工作委托给AI系统。这一转变引发了一个根本性问题:通过氛围编码开发的应用有多(不)安全?本文对氛围编码应用的安全性进行了系统研究。我们收集了使用流行AI代理开发的大量真实应用语料库,并设计了一个结合代理辅助代码审计与人工验证的漏洞分析框架。利用该框架,我们考察了已部署的氛围编码应用中漏洞的普遍性、严重性和根本原因。我们的研究揭示了几个关键发现:(1)氛围编码应用表现出与常规软件开发工作流中常见漏洞模式不同的重复性漏洞模式,包括占位符逻辑、未过滤输入和秘密泄露;(2)这些漏洞源于AI代理在整个氛围编码生命周期中的系统性局限,例如记忆丢失、局部优化目标和安全知识不足;(3)尽管LLM能力的提升和改进的提示策略可以减少漏洞发生率,但无法消除潜在的安全风险。总体而言,本研究提供了对氛围编码应用安全格局的实证理解,并为应对因软件开发日益委托给AI系统而引入的安全挑战奠定了基础。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑