← Lab /AI/ML

Most correct LLM vulnerability verdicts contain fabricated reasoning

Around 60% of correct vulnerability decisions are accompanied by unverifiable claims, and VERA catches 87% of reasoning errors missed by free-form judges

AI/ML arXiv 5 Oct 2026 Method Prototype evidence

Published as “Correct Verdicts, Flawed Reasoning: Structured Auditing of LLM-based Vulnerability Reasoning”

Why it matters

Security analysts can automatically detect when an LLM’s vulnerability verdict is based on flawed or hallucinated reasoning, reducing false confidence and focusing manual review on truly suspicious explanations.

Summary

VERA can automatically audit LLM-generated vulnerability explanations by requiring a Structured Reasoning Record (SRR) and checking it with a multi-stage hybrid judge, exposing reasoning flaws even when the final verdict is correct. The authors report that reasoning mistakes appear as often in correct verdicts as in incorrect ones, and that existing free-form CoT models achieve only 46-60% binary accuracy while rarely identifying the correct CWE type (3-16% recall). VERA’s judge detects these errors via deterministic AST checks and targeted LLM calls, and mutation testing shows it outperforms a holistic LLM-as-judge. The paper does not provide detailed quantitative results (e.g., precision/recall of the judge) for the real-world evaluation, so the strength of the evidence is limited to the described methodology and qualitative observations.

What they found 2

  1. Reasoning flaws occur as frequently in correct verdicts as in incorrect ones, making audit necessary.

    “Our experiments using VERA reveal three critical insights. First, reasoning flaws occur in correct verdicts just as frequently as incorrect ones, models are right for the wrong reasons as often as they are simply wrong, making reasoning audit necessary.”

  2. Free-form CoT models achieve moderate binary accuracy (46-60%) but have very low CWE recall (3-16%) and often label both vulnerable and patched versions as vulnerable.

    “First, despite achieving moderate binary accuracy (46-60%), models rarely identify the correct vulnerability type (true CWE recall is only 3-16%) and label both vulnerable and patched versions as VULNERABLE in up to 80% of pairs.”

Caveats 2

  • First, implicit operations introduced through type casts, struct field accesses, or opaque callees require type-system reasoning beyond AST-level pattern matching. Consequently, the completeness check in S1 is scoped to statically verifiable operations - explicit calls to known C/C++ memory functions (e.g., malloc, free, realloc); implicit operations are conservatively treated as warnings rather than hard failures.
  • Second, checks that fundamentally require whole-program compilation, such as precise dead-code detection, alias resolution beyond direct pointer assignment, and formal path reachability, are currently outside VERA’s current scope.

What’s new here 4

  • Introduces a Structured Reasoning Record (SRR) that forces LLMs to emit machine-readable, checkable reasoning steps.
  • Presents a multi-stage hybrid judge that combines deterministic static analysis with targeted LLM checks to audit the SRR.
  • Enables ground-truth-free mutation testing of reasoning judges by injecting controlled faults into SRRs.
  • Operates on uncompiled code slices, making the approach language-agnostic and scalable without build environments.