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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chen, Tianyu, Li, Lin, Qian, Taotao, Liu, Jingyi, Yang, Wei, Li, Ding, Liang, Guangtai, Wang, Qianxiang, Xie, Tao
Format: Preprint
Publié: 2023
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911910295764992
author Chen, Tianyu
Li, Lin
Qian, Taotao
Liu, Jingyi
Yang, Wei
Li, Ding
Liang, Guangtai
Wang, Qianxiang
Xie, Tao
author_facet Chen, Tianyu
Li, Lin
Qian, Taotao
Liu, Jingyi
Yang, Wei
Li, Ding
Liang, Guangtai
Wang, Qianxiang
Xie, Tao
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2310_02530
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle CompVPD: Iteratively Identifying Vulnerability Patches Based on Human Validation Results with a Precise Context
Chen, Tianyu
Li, Lin
Qian, Taotao
Liu, Jingyi
Yang, Wei
Li, Ding
Liang, Guangtai
Wang, Qianxiang
Xie, Tao
Cryptography and Security
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.
title CompVPD: Iteratively Identifying Vulnerability Patches Based on Human Validation Results with a Precise Context
topic Cryptography and Security
url https://arxiv.org/abs/2310.02530