Vibe 编程是一种新的编程范式,其中人类工程师指导大型语言模型(LLM)代理完成复杂的编程任务,只需少量监督。尽管 Vibe 编程被越来越多地采用,但其输出是否真的适合在生产环境中部署?为回答这个问题,我们提出了 SU S VI B E S 基准,该基准包含 200 个来自现实开源项目的特征请求软件工程任务,当交给人类程序员时,导致了脆弱的实现。我们评估了多个广泛使用的编码代理和前沿模型在该基准上的表现。令人不安的是,所有代理在软件安全方面表现不佳。尽管 SWE-Agent 配合 Claude 4 Sonnet 的 61% 的解决方案在功能上是正确的,但只有 10.�% 是安全的。进一步的实验表明,初步的安全策略,如在特征请求中增加漏洞提示,无法缓解这些问题。我们的发现对 Vibe 编程的广泛采用提出了严重关切,尤其是在安全敏感的应用中。
英文摘要:
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 https://github.com/LeiLiLab/susvibes. The leaderboard is at https://leililab.github.io/susvibes-leaderboard.
Harnessing Large Language Models for Software Vulnerability Detection: A Comprehensive Benchmarking Study
School of Information Technologies Tallinn University of Technology(塔林理工大学信息技术学院);School of Informatics, Computing, and Cyber Systems Northern Arizona University(北亚利桑那大学信息学、计算与网络系统学院)
MCPEvol-Bench: Benchmarking LLM Agent Performance Across Dynamic Evolutions of MCP Servers
College of Computer Science and Technology, National University of Defense Technology(国防科技大学计算机科学与技术学院);State Key Laboratory of Complex & Critical Software Environment(复杂关键软件环境国家重点实验室);National Key Laboratory of Parallel and Distributed Computing(并行与分布式计算国家重点实验室)
CASTLE: Benchmarking Dataset for Static Code Analyzers and LLMs towards CWE Detection
Eötvös Loránd University (ELTE)(厄特沃什·罗兰大学(ELTE));University of Oslo(奥斯陆大学);Cyentific AS;Guelma University(盖勒马大学);The University of Manchester(曼彻斯特大学);Federal University of Amazonas(亚马逊联邦大学);Technology Innovation Institute (TII)(技术创新研究院(TII))
From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future
School of Electrical and Computer Engineering, The University of Sydney(悉尼大学电气与计算机工程学院);University at Buffalo, SUNY(纽约州立大学布法罗分校);University of Chicago(芝加哥大学)