VCMatch: A Ranking-based Approach for Automatic Security Patches Localization for OSS Vulnerabilities
Authors:
- 1 March 2022
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 589-600
Abstract
Nowadays, vulnerabilities in open source software (OSS) are constantly emerging, posing a great threat to application security. Security patches are crucial in reducing the risk of OSS vulnerabilities. However, many of the vulnerabilities disclosed by CVE/NVD are not accompanied by security patches. Previous research has shown that the auxiliary information in CVE/NVD can aid in the matching of a vulnerability to appropriate commits. The state-of-art research proposed a rank-based approach based on the multiple dimensions of features extracted from the auxiliary information in CVE/NVD. However, this approach ignores the semantic features in the vulnerability descriptions and commit messages, making the model still have room for improvement. In this paper, we propose a novel ranking-based approach VCMATCH (Vulnerability-Commit Match). In addition to extracting the shallow statistical features between the vulnerability and the patch commit, VCMATCH extracts the deep semantic features of the vulnerability descriptions and commit messages. Besides, VCMATCH applies three classification models (i.e., XGBoost, LightGBM, CNN) and uses a voting-based rank fusion method to combine the results of the three models to generate a better result. We evaluate VCMATCH with 1,669 CVEs from 10 OSS projects. The experiment results show that VCMATCH can effectively identify security patches for OSS vulnerabilities in terms of Recall@K and Manual Effort@K, and outperforms the state-of-art model by a statistically significant margin.Keywords
Funding Information
- Natural Science Foundation of Zhejiang Province (LQ21F020008)
- National Science Foundation of China (62141222,U20A20173,6190234)
This publication has 50 references indexed in Scilit:
- XGBoost2016
- Summarizing Source Code using a Neural Attention Model2016
- The Attack of the Clones: A Study of the Impact of Shared Code on Vulnerability Patching2015
- Identifying the characteristics of vulnerable code changes: an empirical study2014
- Fine-grained and accurate source code differencing2014
- The Vulnerability Dataset of a Large Software Ecosystem2014
- Model-Based Vulnerability Testing for Web Applications2013
- Learning to rank using gradient descent2005
- Gradient-based learning applied to document recognitionProceedings of the IEEE, 1998
- Individual Comparisons by Ranking Methods1992