mlsanityData to 24 Nov 2026

Right Verdict, Right Reason? An Execution-Grounded Study of Whether LLM Vulnerability Detectors Understand Vulnerabilities

arXiv 2611.28584 ↗Submitted 21 Nov 2026Announced 24 Nov 2026cs.SE cs.AI cs.CRcited by 0

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Large language models (LLMs) are increasingly used to detect vulnerabilities, and their benchmark scores are often read as evidence that they understand the vulnerabilities they report. We test this reading against program execution. For 515 C and C++ functions from BigVul and PrimeVul whose vulnerability we reproduce with a proof of concept, we identify the line at which the fault occurs and the statements on which the faulting run depended. These facts ground a ladder of five tests, from telling a vulnerable function from its fixed version, through locating the fault and reacting to its removal, to judging execution-confirmed edits and predicting the outcome of a concrete run. Each test is paired with a baseline that needs no understanding, such as a rule that picks lines with risky calls, and we repeat the study on 195 vulnerabilities published after the training cutoffs of the models. Four findings emerge. First, telling a vulnerable function from its fixed version is hard. The open-weight models separate no more pairs than chance, although five of them show a weak sensitivity to the fix, and the commercial models still label many screened fixed versions vulnerable. Second, the commercial models locate the fault beyond a keyword rule, while removing that evidence changes the verdicts of the strongest model only on the newer vulnerabilities. Third, given the program input, the commercial models predict whether a run faults better than a rule that looks for added checks, and the prediction follows the input. Fourth, on the newer vulnerabilities this advantage disappears and the lead of the strongest model narrows, while localization persists. We release the framework, the per-function evidence, and an execution-confirmed counterfactual benchmark.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 30 of its 52 references that are in the map. Submitted 21 Nov 2026, announced 24 Nov 2026.

Builds on

30 of 52 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024To Err is Machine: Vulnerability Detection Challenges LLM Reasoning25 Mar

Other references · 29

  1. 2025Qwen3 Technical Reportcited by 9,994
  2. 2017Axiomatic Attribution for Deep Networkscited by 3,508
  3. 2013Visualizing and Understanding Convolutional Networkscited by 2,330
  4. 2020Extracting Training Data from Large Language Modelscited by 2,267
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,242
  6. 2020Shortcut Learning in Deep Neural Networkscited by 2,138
  7. 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,324
  8. 2019Attention is not Explanationcited by 991
  9. 2020Towards Faithfully Interpretable NLP Systems: How should we define and evaluate faithfulness?cited by 651
  10. 2019ERASER: A Benchmark to Evaluate Rationalized NLP Modelscited by 573
  11. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 287
  12. 2024Vulnerability Detection with Code Language Models: How Far Are We?cited by 162
17 more
  1. 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 152
  2. 2020Dos and Don'ts of Machine Learning in Computer Securitycited by 119
  3. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 111
  4. 2023LLMs Cannot Reliably Identify and Reason About Security Vulnerabilities (Yet?): A Comprehensive Evaluation, Framework, and Benchmarkscited by 103
  5. 2023Understanding the Effectiveness of Large Language Models in Detecting Security Vulnerabilitiescited by 65
  6. 2023Data Quality for Software Vulnerability Datasetscited by 55
  7. 2024Large Language Model for Vulnerability Detection: Emerging Results and Future Directionscited by 48
  8. 2020On the Generalizability of Neural Program Models with respect to Semantic-Preserving Program Transformationscited by 45
  9. 2019Evaluating Explanation Methods for Deep Learning in Securitycited by 40
  10. 2023Uncovering the Limits of Machine Learning for Automatic Vulnerability Detectioncited by 38
  11. 2023Unveiling Memorization in Code Modelscited by 32
  12. 2022Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability Detectioncited by 22
  13. 2026ARVO: Atlas of Reproducible Vulnerabilities for Open-Source Softwarecited by 13
  14. 2018VulDeePecker: A Deep Learning-Based System for Vulnerability Detectioncited by 11
  15. 2026Satisfiability Solving with LLMs: A Matched-Pair Evaluation of Reasoning Capabilitycited by 3
  16. 2024Beyond Fidelity: Explaining Vulnerability Localization of Learning-based Detectorscited by 1
  17. 2026VulValidate: Auditing Function-Level Vulnerability Labels with Executable Evidencecited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specifications
  2. 2026Do Fine-Tuned LLMs Understand Vulnerabilities? An Investigation into the Semantic Trap
  3. 2025SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysis
  4. 2026Representation Matters: An Empirical Study of Program Representations for LLM Vulnerability Reasoning
  5. 2025Reasoning with LLMs for Zero-Shot Vulnerability Detection
  6. 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning
  7. 2026Correct Verdicts, Flawed Reasoning: Structured Auditing of LLM-based Vulnerability Reasoning
  8. 2026Syntax- and Compilation-Preserving Evasion of LLM Vulnerability Detectors