Shallow or Deep? An Empirical Study on Detecting Vulnerabilities using Deep Learning
Authors:
- 1 May 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 276-287
Abstract
Deep learning (DL) techniques are on the rise in the software engineering research community. More and more approaches have been developed on top of DL models, also due to the unprecedented amount of software-related data that can be used to train these models. One of the recent applications of DL in the software engineering domain concerns the automatic detection of software vulnerabilities. While several DL models have been developed to approach this problem, there is still limited empirical evidence concerning their actual effectiveness especially when compared with shallow machine learning techniques. In this paper, we partially fill this gap by presenting a large-scale empirical study using three vulnerability datasets and five different source code representations (i.e., the format in which the code is provided to the classifiers to assess whether it is vulnerable or not) to compare the effectiveness of two widely used DL-based models and of one shallow machine learning model in (i) classifying code functions as vulnerable or non-vulnerable (i.e., binary classification), and (ii) classifying code functions based on the specific type of vulnerability they contain (or "clean", if no vulnerability is there). As a baseline we include in our study the AutoML utility provided by the Google Cloud Platform. Our results show that the experimented models are still far from ensuring reliable vulnerability detection, and that a shallow learning classifier represents a competitive baseline for the newest DL-based models.Keywords
All Related Versions
Funding Information
- National Science Foundation
This publication has 45 references indexed in Scilit:
- Embedded systems security: Threats, vulnerabilities, and attack taxonomy2015
- Web application security vulnerabilities detection approaches: A systematic mapping study2015
- The Attack of the Clones: A Study of the Impact of Shared Code on Vulnerability Patching2015
- Toward Deep Learning Software Repositories2015
- Is it a bug or an enhancement?2008
- Comparing two K-category assignments by a K-category correlation coefficientComputational Biology and Chemistry, 2004
- A pattern recognition approach for software engineering data analysisIEEE Transactions on Software Engineering, 1992
- Evaluating techniques for generating metric-based classification treesJournal of Systems and Software, 1990
- Learning from examples: generation and evaluation of decision trees for software resource analysisIEEE Transactions on Software Engineering, 1988
- Comparison of the predicted and observed secondary structure of T4 phage lysozymeBiochimica et Biophysica Acta (BBA) - Protein Structure, 1975