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

LLM-Enhanced Software Patch Localization(大语言模型增强的软件补丁定位)

LLM-Enhanced Software Patch Localization

Jinhong Yu, Yi Chen, Di Tang, Xiaozhong Liu, XiaoFeng Wang, Chen Wu, Haixu Tang

AI总结:

针对现有安全补丁定位模型在CVE与提交关联弱、多补丁场景下表现不佳的问题,提出结合LLM输出作为额外特征的联合学习推荐框架LLM-SPL,在含1915个CVE的数据集上召回率超SOTA,多补丁场景下效果提升显著且减少人工工作量。

摘要:

开源软件(OSS)是现代产品开发不可或缺的组成部分,其内部的任何漏洞都可能危及众多产品。尽管开发者努力应用安全补丁,但在海量OSS更新中精准定位这些补丁仍是一项挑战。安全补丁定位(SPL)推荐方法是解决该问题的主流途径。然而,现有SPL模型在提交记录与对应CVE缺乏明确关联时往往表现不佳,且未考虑漏洞在被完全修复前会随时间提出多个补丁的场景。为应对这些挑战,我们提出LLM-SPL——一种基于推荐的SPL方法,利用大语言模型(LLM)的能力为给定CVE定位安全补丁提交记录。具体而言,我们设计了一个联合学习框架,其中LLM的输出作为额外特征,辅助推荐模型对安全补丁进行优先级排序。我们在包含1915个CVE、关联2461个补丁的数据集上进行评估,结果表明LLM-SPL在补丁提交记录排序方面表现优异,召回率超越当前最优方法,同时显著减少了人工工作量。值得注意的是,对于需要多个补丁的漏洞,在检查前10名排序结果时,LLM-SPL的召回率显著提升22.83%,NDCG提升19.41%,人工工作量减少超过25%。数据集和源代码可访问https://anonymous.4open.science/r/LLM-SPL-91F8获取。

英文摘要:

Open source software (OSS) is integral to modern product development, and any vulnerability within it potentially compromises numerous products. While developers strive to apply security patches, pinpointing these patches among extensive OSS updates remains a challenge. Security patch localization (SPL) recommendation methods are leading approaches to address this. However, existing SPL models often falter when a commit lacks a clear association with its corresponding CVE, and do not consider a scenario that a vulnerability has multiple patches proposed over time before it has been fully resolved. To address these challenges, we introduce LLM-SPL, a recommendation-based SPL approach that leverages the capabilities of the Large Language Model (LLM) to locate the security patch commit for a given CVE. More specifically, we propose a joint learning framework, in which the outputs of LLM serves as additional features to aid our recommendation model in prioritizing security patches. Our evaluation on a dataset of 1,915 CVEs associated with 2,461 patches demonstrates that LLM-SPL excels in ranking patch commits, surpassing the state-of-the-art method in terms of Recall, while significantly reducing manual effort. Notably, for vulnerabilities requiring multiple patches, LLM-SPL significantly improves Recall by 22.83\%, NDCG by 19.41\%, and reduces manual effort by over 25\% when checking up to the top 10 rankings. The dataset and source code are available at \url{https://anonymous.4open.science/r/LLM-SPL-91F8}.

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

↑