mlsanityData to 7 Oct 2026

Comparison of Static Application Security Testing Tools and Large Language Models for Repo-level Vulnerability Detection

arXiv 2407.16235 ↗First posted 23 Jul 2024cs.SE cs.AIcited by 18

Not on the map. Why?

Abstract (arXiv)

Software vulnerabilities pose significant security challenges and potential risks to society, necessitating extensive efforts in automated vulnerability detection. There are two popular lines of work to address automated vulnerability detection. On one hand, Static Application Security Testing (SAST) is usually utilized to scan source code for security vulnerabilities, especially in industries. On the other hand, deep learning (DL)-based methods, especially since the introduction of large language models (LLMs), have demonstrated their potential in software vulnerability detection. However, there is no comparative study between SAST tools and LLMs, aiming to determine their effectiveness in vulnerability detection, understand the pros and cons of both SAST and LLMs, and explore the potential combination of these two families of approaches. In this paper, we compared 15 diverse SAST tools with 12 popular or state-of-the-art open-source LLMs in detecting software vulnerabilities from repositories of three popular programming languages: Java, C, and Python. The experimental results showed that SAST tools obtain low vulnerability detection rates with relatively low false positives, while LLMs can detect up 90% to 100% of vulnerabilities but suffer from high false positives. By further ensembling the SAST tools and LLMs, the drawbacks of both SAST tools and LLMs can be mitigated to some extent. Our analysis sheds light on both the current progress and future directions for software vulnerability detection.

Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 27 of its 73 references that are in the map. First posted on arXiv 23 Jul 2024.

Builds on

27 of 73 references.

References · 27

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  4. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  5. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  6. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  7. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  8. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  9. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  10. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
  11. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  12. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
15 more
  1. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  2. 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 142
  3. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 98
  4. 2023Impact of Code Language Models on Automated Program Repaircited by 85
  5. 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
  6. 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
  7. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 71
  8. 2022VulBERTa: Simplified Source Code Pre-Training for Vulnerability Detectioncited by 51
  9. 2023ChatGPT for Vulnerability Detection, Classification, and Repair: How Far Are We?cited by 44
  10. 2024Pre-training by Predicting Program Dependencies for Vulnerability Analysis Taskscited by 17
  11. 2022Detecting False Alarms from Automatic Static Analysis Tools: How Far are We?cited by 16
  12. 2021An Empirical Study of Rule-Based and Learning-Based Approaches for Static Application Security Testingcited by 7
  13. 2018Large-Scale Analysis of Framework-Specific Exceptions in Android Appscited by 2
  14. 2018An Empirical Assessment of Security Risks of Global Android Banking Appscited by 1
  15. 2023A Comprehensive Study on Quality Assurance Tools for Javacited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 11; 2026: 5.

18 papers.

Sort:

By area:

  1. 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
  2. 2025BaxBench: Can LLMs Generate Correct and Secure Backends?cited by 38
  3. 2025Benchmarking LLMs and LLM-based Agents in Practical Vulnerability Detection for Code Repositoriescited by 29
  4. 2025ROC-n-reroll: How verifier imperfection affects test-time scalingcited by 11
  5. 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Securitycited by 9
  6. 2025Reasoning with LLMs for Zero-Shot Vulnerability Detectioncited by 7
  7. 2025R2Vul: Learning to Reason about Software Vulnerabilities with Reinforcement Learning and Structured Reasoning Distillationcited by 7
  8. 2025How Safe Are AI-Generated Patches? A Large-scale Study on Security Risks in LLM and Agentic Automated Program Repair on SWE-benchcited by 5
  9. 2025A Systematic Study of Code Obfuscation Against LLM-based Vulnerability Detectioncited by 4
  10. 2025AutoBaxBuilder: Bootstrapping Code Security Benchmarkingcited by 4
  11. 2025Revisiting Pre-trained Language Models for Vulnerability Detectioncited by 3
  12. 2024Countering Autonomous Cyber Threatscited by 1
6 more
  1. 2025Towards Effective Complementary Security Analysis using Large Language Modelscited by 1
  2. 2026Cracking IoT Security: Can LLMs Outsmart Static Analysis Tools?cited by 1
  3. 2026Adaptive Hierarchical Evaluation of LLMs and SAST tools for CWE Prediction in Pythoncited by 1
  4. 2026VulReaD: Knowledge-Graph-guided Software Vulnerability Reasoning and Detectioncited by 0
  5. 2026Words Speak Louder Than Code: Investigating Cognitive Heuristics in LLM-Based Code Vulnerability Detectioncited by 0
  6. 2026From Evaluation to Optimisation: Hierarchy-Aware Training Signals for CWE Prediction in Pythoncited by 0