arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.17065cs.SEcs.AI
收藏

PatchFinder:一种针对开源软件已披露漏洞的安全补丁追踪两阶段方法

PatchFinder: A Two-Phase Approach to Security Patch Tracing for Disclosed Vulnerabilities in Open-Source Software

East China Normal University(华东师范大学);Continental-NTU Corporate Lab(大陆-南洋理工大学企业实验室);Nanyang Technological University(南洋理工大学);College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部);Shanghai Key Laboratory of Trustworthy Computing, East China Normal University(华东师范大学上海可信计算重点实验室)

Kaixuan Li, Jian Zhang, Sen Chen, Han Liu, Yang Liu, Yixiang Chen

AI总结:

针对开源软件CVE补丁追踪依赖手工特征且效果受限的问题,提出两阶段框架PatchFinder,结合混合检索与端到端重排序学习语义相关性,在4,789个CVE评估中实现80.63%的Recall@10和0.7951的MRR,并成功向官方提交确认482个补丁。

摘要:

开源软件(OSS)漏洞日益普遍,凸显了安全补丁的重要性。然而,在NVD等广泛使用的安全平台中,仍有大量CVE记录缺少指向补丁的追踪链接。尽管已有基于排序的方法被提出用于安全补丁追踪,但它们在单步框架中严重依赖手工特征,这限制了其有效性。在本文中,我们提出了PatchFinder,一个具有端到端相关性学习的两阶段框架,以更好地追踪安全补丁。在初始检索阶段,我们采用混合补丁检索器,基于代码更改和CVE描述同时考虑词法和语义匹配,通过提取与CVE描述相似的提交作为候选来缩小搜索空间。随后,在重排序阶段,我们在监督微调范式下设计了一种端到端架构,用于学习CVE描述与提交之间的语义相关性。这样,我们可以根据相关性分数自动对候选进行排序,同时保持较低的计算开销。我们针对来自532个OSS项目的4,789个CVE对系统进行了评估。结果非常有前景:PatchFinder的Recall@10达到80.63%,平均倒数排名(MRR)为0.7951。此外,所需的手动工作量(Manual Effort@10)减少至2.77,比当前领先方法提升了1.94倍。在实际应用PatchFinder时,我们初步识别了533个补丁提交并提交给官方,其中482个已被CVE编号机构确认。

英文摘要:

Open-source software (OSS) vulnerabilities are increasingly prevalent, emphasizing the importance of security patches. However, in widely used security platforms like NVD, a substantial number of CVE records still lack trace links to patches. Although rank-based approaches have been proposed for security patch tracing, they heavily rely on handcrafted features in a single-step framework, which limits their effectiveness. In this paper, we propose PatchFinder, a two-phase framework with end-to-end correlation learning for better-tracing security patches. In the **initial retrieval** phase, we employ a hybrid patch retriever to account for both lexical and semantic matching based on the code changes and the description of a CVE, to narrow down the search space by extracting those commits as candidates that are similar to the CVE descriptions. Afterwards, in the **re-ranking** phase, we design an end-to-end architecture under the supervised fine-tuning paradigm for learning the semantic correlations between CVE descriptions and commits. In this way, we can automatically rank the candidates based on their correlation scores while maintaining low computation overhead. We evaluated our system against 4,789 CVEs from 532 OSS projects. The results are highly promising: PatchFinder achieves a Recall@10 of 80.63% and a Mean Reciprocal Rank (MRR) of 0.7951. Moreover, the Manual Effort@10 required is curtailed to 2.77, marking a 1.94 times improvement over current leading methods. When applying PatchFinder in practice, we initially identified 533 patch commits and submitted them to the official, 482 of which have been confirmed by CVE Numbering Authorities.

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

↑