Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Automated software vulnerability detection with machine learning (1803.04497v2)

Published 14 Feb 2018 in cs.SE, cs.LG, and stat.ML

Abstract: Thousands of security vulnerabilities are discovered in production software each year, either reported publicly to the Common Vulnerabilities and Exposures database or discovered internally in proprietary code. Vulnerabilities often manifest themselves in subtle ways that are not obvious to code reviewers or the developers themselves. With the wealth of open source code available for analysis, there is an opportunity to learn the patterns of bugs that can lead to security vulnerabilities directly from data. In this paper, we present a data-driven approach to vulnerability detection using machine learning, specifically applied to C and C++ programs. We first compile a large dataset of hundreds of thousands of open-source functions labeled with the outputs of a static analyzer. We then compare methods applied directly to source code with methods applied to artifacts extracted from the build process, finding that source-based models perform better. We also compare the application of deep neural network models with more traditional models such as random forests and find the best performance comes from combining features learned by deep models with tree-based models. Ultimately, our highest performing model achieves an area under the precision-recall curve of 0.49 and an area under the ROC curve of 0.87.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (16)
  1. Jacob A. Harer (2 papers)
  2. Louis Y. Kim (3 papers)
  3. Rebecca L. Russell (8 papers)
  4. Leonard R. Kosta (1 paper)
  5. Akshay Rangamani (7 papers)
  6. Lei H. Hamilton (2 papers)
  7. Gabriel I. Centeno (1 paper)
  8. Jonathan R. Key (1 paper)
  9. Paul M. Ellingwood (2 papers)
  10. Erik Antelman (1 paper)
  11. Alan Mackay (1 paper)
  12. Marc W. McConley (2 papers)
  13. Jeffrey M. Opper (1 paper)
  14. Peter Chin (46 papers)
  15. Tomo Lazovich (9 papers)
  16. Onur Ozdemir (9 papers)
Citations (153)