LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insights
Top Cited Papers
Open Access
- 21 November 2025
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Computing Surveys
- Vol. 58 (5) , 1-35
Abstract
Large Language Models (LLMs) are emerging as transformative tools for software vulnerability detection. Traditional methods, including static and dynamic analysis, face limitations in efficiency, false-positive rates, and scalability with modern software complexity. Through code structure analysis, pattern identification, and repair suggestion generation, LLMs demonstrate a novel approach to vulnerability mitigation. This survey examines LLMs in vulnerability detection, analyzing problem formulation, model selection, application methodologies, datasets, and evaluation metrics. We investigate current research challenges, emphasizing cross-language detection, multimodal integration, and repository-level analysis. Based on our findings, we propose solutions addressing dataset scalability, model interpretability, and low-resource scenarios. Our contributions include: (1) a systematic analysis of LLM applications in vulnerability detection; (2) a unified framework examining patterns and variations across studies; and (3) identification of key challenges and research directions. This work advances the understanding of LLM-based vulnerability detection. The latest findings are maintained at https://github.com/OwenSanzas/LLM-For-Vulnerability-DetectionKeywords
All Related Versions
This publication has 48 references indexed in Scilit:
- SmartGuard: An LLM-enhanced framework for smart contract vulnerability detectionExpert Systems with Applications, 2025
- Vulnerability detection using BERT based LLM model with transparency obligation practice towards trustworthy AIMachine Learning with Applications, 2024
- Detecting command injection vulnerabilities in Linux-based embedded firmware with LLM-based taint analysis of library functionsComputers & Security, 2024
- A survey on large language model based autonomous agentsFrontiers of Computer Science, 2024
- Representation Learning for Stack Overflow Posts: How Far Are We?ACM Transactions on Software Engineering and Methodology, 2024
- A survey on large language model (LLM) security and privacy: The Good, The Bad, and The UglyHigh-Confidence Computing, 2024
- Rethinking Smart Contract Fuzzing: Fuzzing With Invocation Ordering and Important Branch RevisitingIEEE Transactions on Information Forensics and Security, 2023
- VCMatch: A Ranking-based Approach for Automatic Security Patches Localization for OSS Vulnerabilities2022
- Systematic review of adaptive learning research designs, context, strategies, and technologies from 2009 to 2018Educational Technology Research and Development, 2020
- Continuous Fuzzing with libFuzzer and AddressSanitizer2016