arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.02530cs.CR
收藏

CompVPD:基于人工验证结果与精确上下文迭代识别漏洞补丁

CompVPD: Iteratively Identifying Vulnerability Patches Based on Human Validation Results with a Precise Context

Tianyu Chen, Lin Li, Taotao Qian, Jingyi Liu, Wei Yang, Ding Li, Guangtai Liang, Qianxiang Wang, Tao Xie

AI总结:

CompVPD 通过多粒度切片与自适应扩展算法为补丁提供精确上下文,并结合人工验证结果迭代识别漏洞补丁,在五个开源项目的 2,500 个提交中识别出 20 个漏洞补丁和 18 个高风险缺陷修复,F1 分数较 SOTA 方法提升 20%。

摘要:

在开源软件中及时应用安全补丁对于保障下游应用程序的安全至关重要。然而,由于补丁通知往往不完整且存在延迟,及时应用这些补丁具有挑战性。为了解决这一问题,现有方法采用深度学习(DL)模型,通过判断代码提交是否处理了某个漏洞来识别额外的漏洞补丁。尽管如此,这些方法由于为补丁提供的上下文不精确而准确率较低。为了给补丁提供精确的上下文,我们提出了一种多粒度切片算法和一种自适应扩展算法,以准确识别与补丁相关的代码。此外,精确的上下文使得能够设计一个迭代识别框架 CompVPD,该框架利用人工验证结果,从而大幅提升有效性。我们将 CompVPD 与四种最先进/实践(SOTA)方法在识别漏洞补丁方面进行了实证比较。结果表明,与 SOTA 方法的最佳分数相比,CompVPD 将 F1 分数提高了 20%。此外,CompVPD 对安全实践做出了贡献,帮助从五个非常流行的开源项目中最近的 2,500 个代码提交中识别出 20 个漏洞补丁和 18 个高风险缺陷修复。

英文摘要:

Applying security patches in open source software timely is critical for ensuring the security of downstream applications. However, it is challenging to apply these patches promptly because notifications of patches are often incomplete and delayed. To address this issue, existing approaches employ deep-learning (DL) models to identify additional vulnerability patches by determining whether a code commit addresses a vulnerability. Nonetheless, these approaches suffer from low accuracy due to the imprecise context provided for the patches. To provide precise context for patches, we propose a multi-granularity slicing algorithm and an adaptive-expanding algorithm to accurately identify code related to the patches. Additionally, the precise context enables to design an iterative identification framework, CompVPD, which utilizes the human validation results, and substantially improve the effectiveness. We empirically compare CompVPD with four state-of-the-art/practice (SOTA) approaches in identifying vulnerability patches. The results demonstrate that CompVPD improves the F1 score by 20% compared to the best scores of the SOTA approaches. Additionally, CompVPD contributes to security practice by helping identify 20 vulnerability patches and 18 fixes for high-risk bugs from 2,500 recent code commits in five highly popular open-source projects.

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

↑