首个自动化安全任务评测框架,真实还原漏洞挖掘与修复场景。
SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks
- 构建多智能体系统自动生成带漏洞的代码库和可复现的补丁
- 漏洞利用生成成功率仅18.0%,修复成功率最高34.0%
- 适合安全工程、LLM评估与自动化渗透测试研究者
大语言模型(LLM)代理在软件开发全生命周期中的安全部署亟需严格的安全评估。然而,现有基准大多依赖合成挑战或简化漏洞数据集,难以反映安全工程师在实际工作中面临的复杂性与模糊性。我们提出SEC-bench,首个完全自动化的LLM代理评测框架,用于真实安全工程任务的评估。SEC-bench采用新型多智能体架构,能自动构建含测试套件的代码仓库,在隔离环境中复现漏洞,并生成黄金标准补丁以实现可靠评估。该框架每实例成本仅0.87美元,即可生成高质量可复现的漏洞数据集。基于SEC-bench,我们实现了两个关键安全任务:漏洞利用代码生成与漏洞修复。对主流LLM代码代理的全面评估显示显著性能差距:漏洞利用生成最高成功率为18.0%,漏洞修复最高为34.0%。这些结果凸显了提升LLM代理在安全性、智能性与自主性方面的迫切需求。
原文摘要 · Abstract (English)
Rigorous security-focused evaluation of large language model (LLM) agents is imperative for establishing trust in their safe deployment throughout the software development lifecycle. However, existing benchmarks largely rely on synthetic challenges or simplified vulnerability datasets that fail to capture the complexity and ambiguity encountered by security engineers in practice. We introduce SEC-bench, the first fully automated benchmarking framework for evaluating LLM agents on authentic security engineering tasks. SEC-bench employs a novel multi-agent scaffold that automatically constructs code repositories with harnesses, reproduces vulnerabilities in isolated environments, and generates gold patches for reliable evaluation. Our framework automatically creates high-quality software vulnerability datasets with reproducible artifacts at a cost of only $0.87 per instance. Using SEC-bench, we implement two critical software security tasks to rigorously evaluate LLM agents' capabilities: proof-of-concept (PoC) generation and vulnerability patching. A comprehensive evaluation of state-of-the-art LLM code agents reveals significant performance gaps, achieving at most 18.0% success in PoC generation and 34.0% in vulnerability patching on our complete dataset. These results highlight the crucial steps needed toward developing LLM agents that are more practical, intelligent, and autonomous for security engineering.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。