Combining Software Metrics and Text Features for Vulnerable File Prediction
Authors:
- Yun ZhangYZYun Zhang
- David LoDLDavid Lo
- Xin XiaXXXin Xia
- Bowen XuBXBowen Xu
- Jianling SunJSJianling Sun
- Shanping LiSLShanping Li
- 1 December 2015
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 40-49
Abstract
In recent years, to help developers reduce time and effort required to build highly secure software, a number of prediction models which are built on different kinds of features have been proposed to identify vulnerable source code files. In this paper, we propose a novel approach VULPREDICTOR to predict vulnerable files, it analyzes software metrics and text mining together to build a composite prediction model. VULPREDICTOR first builds 6 underlying classifiers on a training set of vulnerable and non-vulnerable files represented by their software metrics and text features, and then constructs a meta classifier to process the outputs of the 6 underlying classifiers. We evaluate our solution on datasets from three web applications including Drupal, PHPMyAdmin and Moodle which contain a total of 3,466 files and 223 vulnerabilities. The experiment results show that VULPREDICTOR can achieve F1 and EffectivenessRatio@20% scores of up to 0.683 and 75%, respectively. On average across the 3 projects, VULPREDICTOR improves the F1 and EffectivenessRatio@20% scores of the best performing state-of-the-art approaches proposed by Walden et al. by 46.53% and 14.93%, respectively.Keywords
This publication has 36 references indexed in Scilit:
- An Empirical Study of Classifier Combination for Cross-Project Defect Prediction2015
- Cross-project build co-change prediction2015
- Automatic, high accuracy prediction of reopened bugsAutomated Software Engineering, 2014
- Combining Text Mining and Data Mining for Bug Report Classification2014
- Automated prediction of bug report priority using multi-factor analysisEmpirical Software Engineering, 2014
- Automatic Fine-Grained Issue Report Reclassification2014
- Automatic Defect Categorization2012
- Predicting the severity of a reported bug2010
- An Exploratory Study of the Impact of Code Smells on Software Change-proneness2009
- Is it a bug or an enhancement?2008