Execution-based study questions whether LLM vulnerability detectors truly understand code
Researchers tested LLM vulnerability detectors against program execution facts, finding benchmark scores may overstate how well these models understand the flaws they report.
In plain words
Security teams increasingly use large language models to flag vulnerable code, and good benchmark scores are often read as proof the models understand the bugs. This study checked that assumption by grounding tests in actual program runs. It found the models' understanding is mixed: some commercial models beat simple rules on several tasks, but open-weight models often performed no better than chance.
What was announced
The authors built a five-level ladder of tests grounded in execution. For 515 C and C++ functions from the BigVul and PrimeVul datasets where they could reproduce the vulnerability with a proof of concept, they identified the faulting line and the statements the faulty run depended on. Tests ranged from distinguishing a vulnerable function from its fixed version to predicting whether a concrete run faults. Each test was paired with a baseline requiring no understanding, and the study was repeated on 195 vulnerabilities published after the models' training cutoffs.
The results were mixed. Open-weight models separated vulnerable and fixed functions no better than chance, though five showed weak sensitivity to fixes, and commercial models still labeled many screened fixed versions as vulnerable. Commercial models did locate faults beyond a keyword rule and predicted run outcomes better than a rule looking for added checks, with predictions following the input. However, on newer vulnerabilities the outcome-prediction advantage disappeared and the strongest model's lead narrowed, though fault localization persisted. The team released the framework, per-function evidence, and a counterfactual benchmark.
What it does not show
- The findings come from the paper's abstract only; the full article was not reviewed, so methodological details and caveats beyond the summary are unverified.
- The study covers 515 C and C++ functions from two datasets, so results may not generalize to other languages, codebases, or detector designs.
- No independent party has replicated these results.
For security and IT teams
- Scope
- The study examined C and C++ functions from the BigVul and PrimeVul datasets and included 195 vulnerabilities published after the tested models' training cutoffs.
Sources
Source-support review completed 2 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 2 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.