Skip to main content
QUICK REVIEW

[Paper Review] A Survey on Automated Software Vulnerability Detection Using Machine Learning and Deep Learning

Nima Shiri Harzevili, Alvine Boaye Belle|arXiv (Cornell University)|Jun 20, 2023
Software Engineering ResearchComputer Science9 citations
TL;DR

This paper provides a systematic survey of ML/DL-based software vulnerability detection from 2011 to 2022, analyzing 67 studies across 37 venues, covering datasets, representations, models, vulnerability types, and interpretability, and outlining challenges and future directions.

ABSTRACT

Software vulnerability detection is critical in software security because it identifies potential bugs in software systems, enabling immediate remediation and mitigation measures to be implemented before they may be exploited. Automatic vulnerability identification is important because it can evaluate large codebases more efficiently than manual code auditing. Many Machine Learning (ML) and Deep Learning (DL) based models for detecting vulnerabilities in source code have been presented in recent years. However, a survey that summarises, classifies, and analyses the application of ML/DL models for vulnerability detection is missing. It may be difficult to discover gaps in existing research and potential for future improvement without a comprehensive survey. This could result in essential areas of research being overlooked or under-represented, leading to a skewed understanding of the state of the art in vulnerability detection. This work address that gap by presenting a systematic survey to characterize various features of ML/DL-based source code level software vulnerability detection approaches via five primary research questions (RQs). Specifically, our RQ1 examines the trend of publications that leverage ML/DL for vulnerability detection, including the evolution of research and the distribution of publication venues. RQ2 describes vulnerability datasets used by existing ML/DL-based models, including their sources, types, and representations, as well as analyses of the embedding techniques used by these approaches. RQ3 explores the model architectures and design assumptions of ML/DL-based vulnerability detection approaches. RQ4 summarises the type and frequency of vulnerabilities that are covered by existing studies. Lastly, RQ5 presents a list of current challenges to be researched and an outline of a potential research roadmap that highlights crucial opportunities for future work.

Motivation & Objective

  • Assess the evolution and trends of ML/DL-based vulnerability detection research and publication venues.
  • Characterize the datasets used for ML/DL vulnerability detection, including sources, types, representations, and embeddings.
  • Classify ML/DL model architectures and design choices used in vulnerability detection.
  • Identify the range of vulnerabilities covered and highlight key challenges and future research directions.
  • Provide a replication package to support reproducibility and extension of the survey findings.

Proposed method

  • Systematic literature review of ML/DL-based vulnerability detection studies from 2011–2022.
  • Data collection from ScienceDirect, IEEE Xplore, ACM DL, and Google Scholar using targeted search terms.
  • Inclusion criteria based on focus on vulnerability detection with ML/DL on source code.
  • Extraction and synthesis of data related to datasets, representations, embeddings, models, vulnerability types, and interpretability.
  • Classification of models by architecture and analysis of technique selection strategies.
  • Provision of replication resources (Colab notebook) for reproducibility.

Experimental results

Research questions

  • RQ1RQ1: What is the trend of studies using ML/DL models for vulnerability detection, including time-based trends and venue distribution?
  • RQ2RQ2: What are the characteristics of experiment datasets used in software vulnerability detection (data sources, types, representations, embeddings)?
  • RQ3RQ3: What ML/DL models and architectures are used for vulnerability detection?
  • RQ4RQ4: What vulnerabilities (types) are most frequently covered in these studies?
  • RQ5RQ5: What are the challenges and open directions in software vulnerability detection with ML/DL?

Key findings

  • We analyzed 67 relevant studies on ML/DL-based vulnerability detection across 37 journals/conferences from 2011 to 2022.
  • We provide a comprehensive analysis of datasets, data processing, representations, embeddings, model architectures, interpretability, and vulnerability types.
  • We classify ML/DL models used for vulnerability detection by architecture and analyze model selection strategies.
  • We discuss distinct technical challenges and outline future research directions in ML/DL-based vulnerability detection.
  • We share results and analysis data as a replication package to facilitate follow-up work.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.