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

VulnRepairEval:一种基于漏洞利用的大语言模型漏洞修复能力评估框架

VulnRepairEval: An Exploit-Based Evaluation Framework for Assessing Large Language Model Vulnerability Repair Capabilities

Weizhe Wang, Wei Ma, Qiang Hu, Yao Zhang, Jianfei Sun, Bin Wu, Yang Liu, Guangquan Xu, Lingxiao Jiang

AI总结:

针对现有大语言模型漏洞修复评估依赖表层验证、性能高估的问题,提出基于PoC漏洞利用的VulnRepairEval框架,构建含23个真实Python CVE的基准,测试12款LLM发现最优模型修复率仅约21.7%,凸显真实场景评估的必要性。

摘要:

大语言模型(LLM)在自动化软件漏洞修复领域的应用,在精心构建的评估集上已展现出可观成效。然而,现有数据集大多依赖表层验证方法,而非基于漏洞利用的验证,导致安全敏感场景下的模型性能被高估。本文提出VulnRepairEval——一种以功能性概念验证(PoC)漏洞利用程序为核心的评估框架。该框架提供一套完整的容器化评估流水线,可实现可复现的差异化评估,判定修复成功的标准是原始漏洞利用程序在修改后的代码上执行失败。基准构建涉及大量数据整理工作:我们处理了400余个CVE和约2500个潜在来源,提取出23个可通过有效PoC进行自动化测试的真实Python漏洞实例。借助VulnRepairEval,我们对12款主流LLM开展了全面评估,发现其性能存在显著缺陷:即便表现最优的模型也仅成功修复了23个实例中的5个(约21.7%),暴露出安全类应用中的关键短板。失败分析显示,多数修复失败源于漏洞定位不准确,以及补丁存在语法或语义错误。增强提示策略和多智能体方法带来的提升微乎其微,整体效果基本未受影响。本研究为LLM驱动的漏洞修复提供了一套严格且实用的评估框架,同时凸显了采用能真实反映现实漏洞利用场景的评估协议的必要性。

英文摘要:

The adoption of Large Language Models (LLMs) for automated software vulnerability patching has shown promising outcomes on carefully curated evaluation sets. Nevertheless, existing datasets predominantly rely on superficial validation methods rather than exploit-based verification, leading to overestimated performance in security-sensitive applications. This paper introduces VulnRepairEval, an evaluation framework anchored in functional Proof-of-Concept (PoC) exploits. Our framework delivers a comprehensive, containerized evaluation pipeline that enables reproducible differential assessment, where repair success requires the original exploit to fail execution against the modified code. The benchmark construction involved extensive data curation: we processed over 400 CVEs and approximately 2,500 potential sources to extract a collection of authentic vulnerability instances (23 Python CVEs) amenable to automated testing with working PoCs. Through VulnRepairEval, we conduct a comprehensive evaluation of 12 popular LLMs and observe a significant performance deficit: even the top-performing model successfully addresses merely 5/23 instances (about 21.7%), exposing critical weaknesses in security-focused applications. Our failure analysis reveals that most unsuccessful attempts stem from imprecise vulnerability identification and patches containing syntactic or semantic errors. Enhanced prompting strategies and multi-agent approaches yield minimal improvements, with overall effectiveness remaining largely unaffected. This work contributes a stringent, practical evaluation framework for LLM-driven vulnerability remediation and underscores the necessity for assessment protocols that authentically reflect real-world exploitation scenarios.

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

↑