AI编码
arxiv.org ·
Vibe 编程安全吗?真实世界任务中智能体生成代码的漏洞基准测试
论文提出 SUSVIBES 基准,包含 186 个来自真实开源项目的功能请求任务,这些任务的人类实现曾存在漏洞。作者评测了 12 种常用编码智能体配置:以 SWE-Agent 搭配 Claude 4 Sonnet 为例,57% 的方案功能正确,但仅 11.8% 安全。进一步实验显示,在需求中加入漏洞提示等初步安全策略无法缓解该问题。作者据此对 vibe coding 在安全敏感场景的广泛采用提出警示,并公开了代码、数据集与排行榜。
AI推荐理由 arXiv 论文(cs.SE/cs.CL),提出 SUSVIBES 基准:186 个来自真实开源项目的 feature-request 任务,人类程序员曾提交过有漏洞的实现;评测 12 种编码 agent 配置。摘要给出具体数据:SWE-Agent + Claude 4 Sonnet 方案 57% 功能正确但仅 11.8% 安全,且加入漏洞提示等初步安全策略无法缓解。新信息明确、可验证(代码与数据集、排行榜链接),对 Agent 生成代码的生产部署安全有直接参考价值;局限是仅摘要层面,未提供各 agent 的完整对比细节。
82
正文
Computer Science > Software Engineering
arXiv:2512.03262 (cs)
[Submitted on 2 Dec 2025 (v1), last revised 21 Sep 2026 (this version, v4)]
Title:Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks
Authors:Songwen Zhao, Danqing Wang, Kexun Zhang, Jiaxuan Luo, Zhuo Li, Lei Li
View a PDF of the paper titled Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks, by Songwen Zhao and 5 other authors
View PDF
HTML (experimental)
Abstract:Vibe coding is a new software development paradigm in which human engineers prompt a large language model (LLM) agent to complete complex coding tasks with little supervision. Although vibe coding is increasingly adopted, is the generated code really safe to deploy in production? To investigate this question, we propose SUSVIBES, a benchmark consisting of 186 feature-request software engineering tasks from real-world open-source projects, for which, human programmers committed vulnerable implementations. We evaluate 12 widely used coding agentic settings with frontier models on the benchmark. Disturbingly, all agents perform poorly in terms of software security. Although 57% of the solutions from SWE-Agent with Claude 4 Sonnet are functionally correct, only 11.8% are secure. Further experiments demonstrate that preliminary security strategies, such as augmenting the feature request with vulnerability hints, cannot mitigate these security issues. Our findings raise serious concerns about the widespread adoption of vibe coding, particularly in security-sensitive applications. The code and dataset are available at this https URL. The leaderboard is at this https URL.
Comments:
Subjects:
Software Engineering (cs.SE); Computation and Language (cs.CL)
Cite as:
arXiv:2512.03262 [cs.SE]
(or
arXiv:2512.03262v4 [cs.SE] for this version)
https://doi.org/10.48550/arXiv.2512.03262
Focus to learn more
arXiv-issued DOI via DataCite
Submission history
From: Danqing Wang [view email]
[v1]
Tue, 2 Dec 2025 22:11:56 UTC (1,559 KB)
[v2]
Mon, 16 Feb 2026 22:50:33 UTC (1,783 KB)
[v3]
Fri, 21 Aug 2026 05:35:16 UTC (1,132 KB)
[v4]
Mon, 21 Sep 2026 16:10:00 UTC (1,132 KB)
Full-text links:
Access Paper:
View a PDF of the paper titled Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks, by Songwen Zhao and 5 other authors
View PDF
HTML (experimental)
TeX Source
view license
Current browse context:
cs.SE
new
|
recent
| 2025-12
Change to browse by:
cs
cs.CL
References & Citations
NASA ADS
Google Scholar
Semantic Scholar
export BibTeX citation
Loading...
BibTeX formatted citation
×
loading...
Data provided by:
Bookmark
Bibliographic Tools
Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer (What is the Explorer?)
Connected Papers Toggle
Connected Papers (What is Connected Papers?)
Litmaps Toggle
Litmaps (What is Litmaps?)
scite.ai Toggle
scite Smart Citations (What are Smart Citations?)
Code, Data, Media
Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv (What is alphaXiv?)
Links to Code Toggle
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub Toggle
DagsHub (What is DagsHub?)
GotitPub Toggle
Gotit.pub (What is GotitPub?)
Huggingface Toggle
Hugging Face (What is Huggingface?)
ScienceCast Toggle
ScienceCast (What is ScienceCast?)
Demos
Demos
Replicate Toggle
Replicate (What is Replicate?)
Spaces Toggle
Hugging Face Spaces (What is Spaces?)
Spaces Toggle
TXYZ.AI (What is TXYZ.AI?)
Related Papers
Recommenders and Search Tools
Link to Influence Flower
Influence Flower (What are Influence Flowers?)
Core recommender toggle
CORE Recommender (What is CORE?)
Author
Venue
Institution
Topic
About arXivLabs
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Which authors of this paper are endorsers? |
Disable MathJax (What is MathJax?)