LLMs Cannot Reliably Identify and Reason About Security Vulnerabilities (Yet?): A Comprehensive Evaluation, Framework, and Benchmarks
Not on the map. Why?
Cited by 27 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Large Language Models (LLMs) have been suggested for use in automated vulnerability repair, but benchmarks showing they can consistently identify security-related bugs are lacking. We thus develop SecLLMHolmes, a fully automated evaluation framework that performs the most detailed investigation to date on whether LLMs can reliably identify and reason about security-related bugs. We construct a set of 228 code scenarios and analyze eight of the most capable LLMs across eight different investigative dimensions using our framework. Our evaluation shows LLMs provide non-deterministic responses, incorrect and unfaithful reasoning, and perform poorly in real-world scenarios. Most importantly, our findings reveal significant non-robustness in even the most advanced models like `PaLM2' and `GPT-4': by merely changing function or variable names, or by the addition of library functions in the source code, these models can yield incorrect answers in 26% and 17% of cases, respectively. These findings demonstrate that further LLM advances are needed before LLMs can be used as general purpose security assistants.
Key facts. Cited by 97 papers in the map (data through 14 Oct 2026). First posted on arXiv 19 Dec 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 22; 2025: 44; 2026: 31.
97 papers.
Sort:
By area:
- 2024What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineeringcited by 90
- 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Taskscited by 75
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 68
- 2024Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAGcited by 68
- 2024CTIBench: A Benchmark for Evaluating LLMs in Cyber Threat Intelligencecited by 62
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 59
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 47
- 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
- 2024How Far Are We From AGI: Are LLMs All We Need?cited by 31
- 2024Top Score on the Wrong Exam: On Benchmarking in Machine Learning for Vulnerability Detectioncited by 28
- 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
- 2025Let the Trial Begin: A Mock-Court Approach to Vulnerability Detection using LLM-Based Agentscited by 20
38 more
- 2025Security and Quality in LLM-Generated Code: A Multi-Language, Multi-Model Analysiscited by 19
- 2024To Err is Machine: Vulnerability Detection Challenges LLM Reasoningcited by 18
- 2025LAMD: Context-driven Android Malware Detection and Classification with LLMscited by 18
- 2025From CVE Entries to Verifiable Exploits: An Automated Multi-Agent Framework for Reproducing CVEscited by 18
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 16
- 2024SECURE: Benchmarking Large Language Models for Cybersecuritycited by 14
- 2024VulDetectBench: Evaluating the Deep Capability of Vulnerability Detection with Large Language Modelscited by 11
- 2024API-guided Dataset Synthesis to Finetune Large Code Modelscited by 11
- 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detectioncited by 11
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Securitycited by 10
- 2025The Invisible Hand: Unveiling Provider Bias in Large Language Models for Code Generationcited by 10
- 2024VulnLLMEval: A Framework for Evaluating Large Language Models in Software Vulnerability Detection and Patchingcited by 9
- 2025Do LLMs Consider Security? An Empirical Study on Responses to Programming Questionscited by 9
- 2025Automated Profile Inference with Language Model Agentscited by 9
- 2026SEC-bench Pro: Can Language Models Solve Long-Horizon Software Security Tasks?cited by 9
- 2025When Developer Aid Becomes Security Debt: A Systematic Analysis of Insecure Behaviors in LLM Coding Agentscited by 8
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detectioncited by 8
- 2024How Well Do Large Language Models Serve as End-to-End Secure Code Agents for Python?cited by 7
- 2025Vulnerability Detection: From Formal Verification to Large Language Models and Hybrid Approaches: A Comprehensive Overviewcited by 7
- 2025R2Vul: Learning to Reason about Software Vulnerabilities with Reinforcement Learning and Structured Reasoning Distillationcited by 7
- 2024ProveRAG: Provenance-Driven Vulnerability Analysis with Automated Retrieval-Augmented LLMscited by 6
- 2024Helping LLMs Improve Code Generation Using Feedback from Testing and Static Analysiscited by 6
- 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinementcited by 6
- 2025One Bug, Hundreds Behind: LLMs for Large-Scale Bug Discoverycited by 6
- 2026Co-RedTeam: Orchestrated Security Discovery and Exploitation with LLM Agentscited by 6
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5
- 2025Large Language Models for In-File Vulnerability Localization Can Be "Lost in the End"cited by 5
- 2025Trace Gadgets: Minimizing Code Context for Machine Learning-Based Vulnerability Predictioncited by 5
- 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
- 2025Automated Penetration Testing with LLM Agents and Classical Planningcited by 5
- 2026Beyond OAuth: Task-Scoped Authorization for AI Agents via Natural Language Slicescited by 5
- 2024Enhancing Source Code Security with LLMs: Demystifying The Challenges and Generating Reliable Repairscited by 4
- 2024SeCodePLT: A Unified Platform for Evaluating the Security of Code GenAIcited by 4
- 2024Can LLM Prompting Serve as a Proxy for Static Analysis in Vulnerability Detectioncited by 4
- 2025XOXO: Stealthy Cross-Origin Context Poisoning Attacks against AI Coding Assistantscited by 4
- 2025AutoPatch: Multi-Agent Framework for Patching Real-World CVE Vulnerabilitiescited by 4
- 2025SCGAgent: Recreating the Benefits of Reasoning Models for Secure Code Generation with Agentic Workflowscited by 4
- 2025A Mixture of Linear Corrections Generates Secure Codecited by 4
50 most cited of 97 All 97 (JSON)
- 2026Humans vs. Machines: A Comparison With AI Agents in Software Reverse Engineering10 Oct 2026
- 2026Where Did the Repair First Go Wrong? Localizing the Origins of Silent Failures in Agentic Vulnerability Repair5 Oct 2026
- 2026Hidden in the Comments: A Context-Injection Attack Surface in Code LLMs4 Oct 2026
- 2026Retrieve, Reproduce, Reveal: Dissecting Retrieval-Augmented Software Vulnerability Detection29 Sep 2026
- 2026LLM4Trust: Exploring the Capabilities of Large Language Models for Trust Evaluation27 Sep 2026
- 2026VeriWeave Govern: Evidence-Gated Deterministic Runtime Governance for Enterprise AI Agents26 Sep 2026
- 2026A Function-Level Vulnerability Score Measures Flag Rate More Than the Model: Protocol Effects on Paired Benchmarks26 Sep 2026
- 2026Measurement Boundaries in LLM Financial Agent Evaluation: Fixed-Tape Execution and Multi-Defect Auditing26 Sep 2026
- 2026AI Slop and Hallucinations in Vulnerability Assessment: A Survey on Reasoning Failures and Trustworthy Mitigation26 Aug 2026
- 2026Activation Probes Surface Code-Security Signals that the Model's Output Misses10 Aug 2026
- 2026CLEAR: Causal Context-Based Agentic Reasoning for Vulnerability Detection4 Aug 2026
- 2026EntailLLM: Verifying LLM-Generated Vulnerability Discovery Paths with Domain Knowledge via Logic Programming3 Aug 2026
38 more
- 2026RECEIPT: Deterministic, Reward-Hacking-Resistant Verification for White-Box Agentic XSS Discovery20 Jul 2026
- 2026RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities6 Jul 2026
- 2026Builder, Defender, Breaker: Measurable Independence and Bounded Autonomy When Generative Models Build, Defend and Test Software3 Jul 2026
- 2026An Empirical Study of Security Calibration in Large Language Models for Code30 Jun 2026
- 2026Words Speak Louder Than Code: Investigating Cognitive Heuristics in LLM-Based Code Vulnerability Detection29 Jun 2026
- 2026Revelio: Cost-Efficient Agentic Memory Safety Vulnerability Detection For Repository-Scale Codebases20 Jun 2026
- 2026Calibration Without Comprehension: Diagnosing the Limits of Fine-Tuning LLMs for Vulnerability Detection in Systems Software18 Jun 2026
- 2026Multi-Source Cybersecurity Logs: An ATT&CK-Labeled Dataset and SLM Evaluation16 Jun 2026
- 2026SEC-bench Pro: Can Language Models Solve Long-Horizon Software Security Tasks?26 May 2026
- 2026Enhancing Reliability in LLM-Based Secure Code Generation22 May 2026
- 2026ASSEMBLAGE-DEEPHISTORY: A Cross-Build Binary Dataset with Temporal Coverage20 May 2026
- 2026Seclens: Role-specific Evaluation of LLM's for security vulnerablity detection2 Apr 2026
- 2026Beyond OAuth: Task-Scoped Authorization for AI Agents via Natural Language Slices17 Mar 2026
- 2026Security-by-Design for LLM-Based Code Generation: Leveraging Internal Representations for Concept-Driven Steering Mechanisms11 Mar 2026
- 2026From SFT to RL: Demystifying the Post-Training Pipeline for LLM-based Vulnerability Detection15 Feb 2026
- 2026Co-RedTeam: Orchestrated Security Discovery and Exploitation with LLM Agents2 Feb 2026
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systems2 Feb 2026
- 2026Sola-Visibility-ISPM: Benchmarking Agentic AI for Identity Security Posture Management Visibility11 Jan 2026
- 2026STELP: Secure Transpilation and Execution of LLM-Generated Programs9 Jan 2026
- 2025Assessing the Software Security Comprehension of Large Language Models24 Dec 2025
- 2025SoK: Understanding (New) Security Issues Across AI4Code Use Cases20 Dec 2025
- 2025Automated Penetration Testing with LLM Agents and Classical Planning11 Dec 2025
- 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection8 Dec 2025
- 2025From Description to Score: Can LLMs Quantify Vulnerabilities?7 Dec 2025
- 2025LLMs as Firmware Experts: A Runtime-Grown Tree-of-Agents Framework23 Nov 2025
- 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimization14 Nov 2025
- 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specifications6 Nov 2025
- 2025BlueCodeAgent: A Blue Teaming Agent Enabled by Automated Red Teaming for CodeGen AI20 Oct 2025
- 2025One Bug, Hundreds Behind: LLMs for Large-Scale Bug Discovery15 Oct 2025
- 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligence13 Oct 2025
- 2025Fortifying LLM-Based Code Generation with Graph-Based Reasoning on Secure Coding Practices8 Oct 2025
- 2025MAVUL: Multi-Agent Vulnerability Detection via Contextual Reasoning and Interactive Refinement30 Sep 2025
- 2025LLM-based Vulnerability Discovery through the Lens of Code Metrics23 Sep 2025
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detection15 Sep 2025
- 2025From CVE Entries to Verifiable Exploits: An Automated Multi-Agent Framework for Reproducing CVEs1 Sep 2025
- 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detection14 Aug 2025
- 2025Revisiting Pre-trained Language Models for Vulnerability Detection22 Jul 2025
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
50 newest of 97 All 97 (JSON)
- 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Taskscited by 75
- 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
- 2025Let the Trial Begin: A Mock-Court Approach to Vulnerability Detection using LLM-Based Agentscited by 20
- 2025From CVE Entries to Verifiable Exploits: An Automated Multi-Agent Framework for Reproducing CVEscited by 18
- 2025Automated Profile Inference with Language Model Agentscited by 9
- 2025When Developer Aid Becomes Security Debt: A Systematic Analysis of Insecure Behaviors in LLM Coding Agentscited by 8
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detectioncited by 8
- 2024How Well Do Large Language Models Serve as End-to-End Secure Code Agents for Python?cited by 7
- 2026Co-RedTeam: Orchestrated Security Discovery and Exploitation with LLM Agentscited by 6
- 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
- 2025Automated Penetration Testing with LLM Agents and Classical Planningcited by 5
- 2025AutoPatch: Multi-Agent Framework for Patching Real-World CVE Vulnerabilitiescited by 4
12 most cited of 25 All 25 (JSON)
- 2026Humans vs. Machines: A Comparison With AI Agents in Software Reverse Engineering10 Oct 2026
- 2026Where Did the Repair First Go Wrong? Localizing the Origins of Silent Failures in Agentic Vulnerability Repair5 Oct 2026
- 2026Measurement Boundaries in LLM Financial Agent Evaluation: Fixed-Tape Execution and Multi-Defect Auditing26 Sep 2026
- 2026Activation Probes Surface Code-Security Signals that the Model's Output Misses10 Aug 2026
- 2026RECEIPT: Deterministic, Reward-Hacking-Resistant Verification for White-Box Agentic XSS Discovery20 Jul 2026
- 2026RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities6 Jul 2026
- 2026Revelio: Cost-Efficient Agentic Memory Safety Vulnerability Detection For Repository-Scale Codebases20 Jun 2026
- 2026Co-RedTeam: Orchestrated Security Discovery and Exploitation with LLM Agents2 Feb 2026
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systems2 Feb 2026
- 2026Sola-Visibility-ISPM: Benchmarking Agentic AI for Identity Security Posture Management Visibility11 Jan 2026
- 2026STELP: Secure Transpilation and Execution of LLM-Generated Programs9 Jan 2026
- 2025Automated Penetration Testing with LLM Agents and Classical Planning11 Dec 2025
12 newest of 25 All 25 (JSON)
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 59
- 2024To Err is Machine: Vulnerability Detection Challenges LLM Reasoningcited by 18
- 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detectioncited by 11
- 2025R2Vul: Learning to Reason about Software Vulnerabilities with Reinforcement Learning and Structured Reasoning Distillationcited by 7
- 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specificationscited by 4
- 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimizationcited by 3
- 2025Fortifying LLM-Based Code Generation with Graph-Based Reasoning on Secure Coding Practicescited by 1
- 2026CLEAR: Causal Context-Based Agentic Reasoning for Vulnerability Detectioncited by 0
- 2026AI Slop and Hallucinations in Vulnerability Assessment: A Survey on Reasoning Failures and Trustworthy Mitigationcited by 0
- 2026AI Slop and Hallucinations in Vulnerability Assessment: A Survey on Reasoning Failures and Trustworthy Mitigation26 Aug 2026
- 2026CLEAR: Causal Context-Based Agentic Reasoning for Vulnerability Detection4 Aug 2026
- 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection8 Dec 2025
- 2025VULPO: Context-Aware Vulnerability Detection via On-Policy LLM Optimization14 Nov 2025
- 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specifications6 Nov 2025
- 2025Fortifying LLM-Based Code Generation with Graph-Based Reasoning on Secure Coding Practices8 Oct 2025
- 2025R2Vul: Learning to Reason about Software Vulnerabilities with Reinforcement Learning and Structured Reasoning Distillation7 Apr 2025
- 2024To Err is Machine: Vulnerability Detection Challenges LLM Reasoning25 Mar 2024
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning29 Jan 2024
- 2024ProveRAG: Provenance-Driven Vulnerability Analysis with Automated Retrieval-Augmented LLMscited by 6
- 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligencecited by 4
- 2026Retrieve, Reproduce, Reveal: Dissecting Retrieval-Augmented Software Vulnerability Detectioncited by 0
- 2026Retrieve, Reproduce, Reveal: Dissecting Retrieval-Augmented Software Vulnerability Detection29 Sep 2026
- 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligence13 Oct 2025
- 2024ProveRAG: Provenance-Driven Vulnerability Analysis with Automated Retrieval-Augmented LLMs22 Oct 2024
- 2024What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineeringcited by 90
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 68
- 2024Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAGcited by 68
- 2024CTIBench: A Benchmark for Evaluating LLMs in Cyber Threat Intelligencecited by 62
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 47
- 2024How Far Are We From AGI: Are LLMs All We Need?cited by 31
- 2024Top Score on the Wrong Exam: On Benchmarking in Machine Learning for Vulnerability Detectioncited by 28
- 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
- 2025Security and Quality in LLM-Generated Code: A Multi-Language, Multi-Model Analysiscited by 19
- 2025LAMD: Context-driven Android Malware Detection and Classification with LLMscited by 18
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 16
- 2024SECURE: Benchmarking Large Language Models for Cybersecuritycited by 14
12 most cited of 58 All 58 (JSON)
- 2026Hidden in the Comments: A Context-Injection Attack Surface in Code LLMs4 Oct 2026
- 2026LLM4Trust: Exploring the Capabilities of Large Language Models for Trust Evaluation27 Sep 2026
- 2026VeriWeave Govern: Evidence-Gated Deterministic Runtime Governance for Enterprise AI Agents26 Sep 2026
- 2026A Function-Level Vulnerability Score Measures Flag Rate More Than the Model: Protocol Effects on Paired Benchmarks26 Sep 2026
- 2026EntailLLM: Verifying LLM-Generated Vulnerability Discovery Paths with Domain Knowledge via Logic Programming3 Aug 2026
- 2026Builder, Defender, Breaker: Measurable Independence and Bounded Autonomy When Generative Models Build, Defend and Test Software3 Jul 2026
- 2026An Empirical Study of Security Calibration in Large Language Models for Code30 Jun 2026
- 2026Words Speak Louder Than Code: Investigating Cognitive Heuristics in LLM-Based Code Vulnerability Detection29 Jun 2026
- 2026Calibration Without Comprehension: Diagnosing the Limits of Fine-Tuning LLMs for Vulnerability Detection in Systems Software18 Jun 2026
- 2026Multi-Source Cybersecurity Logs: An ATT&CK-Labeled Dataset and SLM Evaluation16 Jun 2026
- 2026SEC-bench Pro: Can Language Models Solve Long-Horizon Software Security Tasks?26 May 2026
- 2026Enhancing Reliability in LLM-Based Secure Code Generation22 May 2026
12 newest of 58 All 58 (JSON)