Right Verdict, Right Reason? An Execution-Grounded Study of Whether LLM Vulnerability Detectors Understand Vulnerabilities
Source
arxiv.org
Author
Leizhen Zhang, Sheng Chen
Date
Why it matters
High vulnerability-detection benchmark scores may not reflect understanding. This study checks fault location and execution outcomes against simple baselines, so you can judge how far to trust Large language modelA model trained on large amounts of data to process and generate language.Full definition → security review.
Key takeaways · AI-distilled
The study tests 515 C and C++ vulnerabilities from BigVul and PrimeVul reproduced with a proof of concept, groundingTying a model's answers to checkable sources — retrieved documents, live data, tool results — instead of letting it answer from memory alone.Full definition → five tests in the actual faulting line and the statements the faulting run depended on, plus 195 vulnerabilities published after model training cutoffs.
Telling a vulnerable FunctionA named block of instructions that takes inputs, called arguments, and hands back a result, called its return value.Full definition → from its fixed version proved hard: Open weightsA model whose learned parameter values have been made available to download, under terms the publisher sets.Full definition → models separated no more pairs than chance, and commercial models still labeled many fixed versions vulnerable.
Given a concrete input, commercial models predicted whether a run would fault better than a rule that looks for added checks, but that advantage disappeared on vulnerabilities published after their training cutoffs.
Terms in this piece · Glossary
Large language model — A model trained on large amounts of data to process and generate language.
grounding — Tying a model's answers to checkable sources — retrieved documents, live data, tool results — instead of letting it answer from memory alone.
Function — A named block of instructions that takes inputs, called arguments, and hands back a result, called its return value.
Open weights — A model whose learned parameter values have been made available to download, under terms the publisher sets.