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

基于第三方报告的漏洞定位实证研究

An Empirical Study of Vulnerability Localization with Third-Party Reports

University of Edinburgh(爱丁堡大学);University of Notre Dame(圣母大学)

Mingsheng Cai, Joanna Cecilia da Silva Santos, Adriana Sejfia

AI总结:

本研究通过大规模实证研究,以PrismVul为基准,评估四类技术及通用方法,发现LLM智能体结合历史第三方报告在漏洞定位中表现最优,还证实NVD摘要可替代稀缺的第三方报告,为自动化漏洞定位建立了现实基准。

摘要:

第三方漏洞报告对于软件安全维护不可或缺,但它们仅描述漏洞的表现形式,而非漏洞在代码中的位置。软件工程师定位并修复一个已报告的漏洞需要24天至9个月,在此期间系统仍存在被利用的风险,因此自动化该过程至关重要。自动化的自然起点是过往漏洞记录,但其对自动化定位的价值尚未得到研究。本研究开展了一项大规模实证研究,使用PrismVul——一个包含来自831个开源软件(OSS)项目、涉及11种编程语言的6851个漏洞条目的基准。每个基准条目将第三方报告与对应的漏洞代码关联。我们评估了四类技术家族:统计方法、机器学习、代码检索和大语言模型(LLM)智能体,以及通用漏洞定位方法。结果表明,自动化漏洞定位并非易事,因为大多数漏洞出现在唯一位置,因此局限于历史观测位置的方法覆盖范围有限,而超越仅位置的综合技术更具前景。在使用历史第三方报告时,LLM智能体表现最佳,优于所评估的通用漏洞定位方法,达到了86.09%的Recall@5,在之前未见过的OSS项目上达到了81.76%。为解决此类报告可能稀缺的情况,我们考虑了公共漏洞数据库(如NVD)的摘要描述,确定它们可在基于智能体的定位中安全替代第三方报告。本研究的发现为自动化漏洞定位建立了现实基准,并证明了历史第三方报告的价值。

英文摘要:

Third-party vulnerability reports are indispensable to software security maintenance, yet they describe how a vulnerability manifests rather than where it resides in code. Software engineers take 24 days to 9 months to localize and fix a reported vulnerability, leaving systems exploitable in the meantime. Automating this process is therefore critical. A natural starting point towards automation is records of past vulnerabilities. However, their value for automated localization has yet to be investigated. In this research, we conduct a large-scale empirical study using PrismVul, a benchmark of 6,851 vulnerability entries from 831 Open-Source Software (OSS) projects spanning 11 programming languages. Each benchmark entry links a third-party report to the corresponding vulnerable code. We evaluate four technique families: statistical methods, machine learning, code retrieval, and LLM agents, alongside general bug localization methods. Our results indicate that automated vulnerability localization is non-trivial, as most vulnerabilities occur at unique locations. Consequently, methods confined to historically observed locations provide limited coverage, whereas comprehensive techniques that look beyond just the location are more promising. With historical third-party reports, LLM agents perform best and outperform the evaluated general bug localization methods, achieving up to 86.09% Recall@5 and reaching 81.76% on previously unseen OSS projects. To account for cases when such reports may be scarce, we consider summary descriptions from public vulnerability databases (e.g., NVD) and establish that they can safely substitute third-party reports in agent-based localization. Our findings establish realistic baselines for automated vulnerability localization and demonstrate the value of historical third-party reports.

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

↑