mlsanityData to 7 Oct 2026

Automated software vulnerability detection with machine learning

arXiv 1803.04497 ↗First posted 14 Feb 2018cs.SE cs.LG stat.MLcited by 34

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 34 papers in the map (data through 7 Oct 2026). First posted on arXiv 14 Feb 2018.

Builds on

No reference list yet.

Built on by

Cited by year

Citing papers per year: 2021: 10; 2022: 6; 2023: 5; 2024: 8; 2025: 5.

34 papers.

Sort:

By area:

  1. 2024A Closer Look at AUROC and AUPRC under Class Imbalancecited by 56
  2. 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
  3. 2022An Exploratory Study on Code Attention in BERTcited by 12
  4. 2021VarCLR: Variable Semantic Representation Pre-training via Contrastive Learningcited by 11
  5. 2024ChatNVD: Advancing Cybersecurity Vulnerability Assessment with Large Language Modelscited by 11
  6. 2021On using distributed representations of source code for the detection of C security vulnerabilitiescited by 10
  7. 2025LLMSecConfig: An LLM-Based Approach for Fixing Software Container Misconfigurationscited by 9
  8. 2024A Survey of Large Language Models in Cybersecuritycited by 8
  9. 2025SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysiscited by 8
  10. 2022Multi-View Graph Representation for Programming Language Processing: An Investigation into Algorithm Detectioncited by 6
  11. 2021Exploiting Method Names to Improve Code Summarization: A Deliberation Multi-Task Learning Approachcited by 5
  12. 2021Software Vulnerability Detection via Deep Learning over Disaggregated Code Graph Representationcited by 5
22 more
  1. 2021Learning to Make Compiler Optimizations More Effectivecited by 4
  2. 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 4
  3. 2024CodeGRAG: Bridging the Gap between Natural Language and Programming Language via Graphical Retrieval Augmented Generationcited by 4
  4. 2021Multi-context Attention Fusion Neural Network for Software Vulnerability Identificationcited by 3
  5. 2022Test2Vec: An Execution Trace Embedding for Test Case Prioritizationcited by 3
  6. 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimizationcited by 3
  7. 2021A comparative study of neural network techniques for automatic software vulnerability detectioncited by 2
  8. 2023HyMo: Vulnerability Detection in Smart Contracts using a Novel Multi-Modal Hybrid Modelcited by 2
  9. 2024Dynamic Neural Control Flow Execution: An Agent-Based Deep Equilibrium Approach for Binary Vulnerability Detectioncited by 2
  10. 2021Social Media Monitoring for IoT Cyber-Threatscited by 1
  11. 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognitioncited by 1
  12. 2022DCDetector: An IoT terminal vulnerability mining system based on distributed deep ensemble learning under source code representationcited by 1
  13. 2024Enhancing Source Code Classification Effectiveness via Prompt Learning Incorporating Knowledge Featurescited by 1
  14. 2021Embedding Code Contexts for Cryptographic API Suggestion:New Methodologies and Comparisonscited by 0
  15. 2022Featherweight Assisted Vulnerability Discoverycited by 0
  16. 2023A Structural Approach to the Design of Domain Specific Neural Network Architecturescited by 0
  17. 2023Sequential Graph Neural Networks for Source Code Vulnerability Identificationcited by 0
  18. 2023Feature Engineering-Based Detection of Buffer Overflow Vulnerability in Source Code Using Neural Networkscited by 0
  19. 2023VULNERLIZER: Cross-analysis Between Vulnerabilities and Software Librariescited by 0
  20. 2024Direction for Detection: A Survey of Automated Vulnerability Detection and all of its Pain Pointscited by 0
  21. 2025You Only Train Once: A Flexible Training Framework for Code Vulnerability Detection Driven by Vul-Vectorcited by 0
  22. 2025Retrieval-Augmented Few-Shot Prompting Versus Fine-Tuning for Code Vulnerability Detectioncited by 0