VERA: Structured audit finds about 60% of correct vulnerability determinations are accompanied by confabulated reasoningCorrect Verdicts, Flawed Reasoning: Structured Auditing of LLM-based Vulnerability Reasoning
VERA audits LLM vulnerability explanations with structured reasoning records; B1 has a false negative rate of 86.8% for deterministic stage errors flagged by VERA.
- Security analysis needs explanations of where and why vulnerabilities exist, not just binary classification. Free CoT can smuggle fabricated paths and unverifiable assumptions under correct rulings, and holistic LLM judges also miss these errors.
- VERA writes vulnerabilities as state sequences, requires detection models to output SRR containing scope, path states, property checks, and verdicts, then an eight-stage judge verifies; semantic steps call LLMs, and mutation testing evaluates the judge.
- On SVEN's 64 CWE-416 pairs, the four models' CWE recall is 3%–16%. In the main experiment, the difference in stage error rates between correct and incorrect rulings does not exceed 0.05; B1 has a false negative rate of 86.8% for VERA's deterministic stage errors.
- The authors note that the evaluation is limited to five C/C++ memory and resource lifecycle CWEs, slice-internal auditing does not do full interprocedural analysis, and sparse SRRs may underreport errors. The authors plan to extend to semantic defect classes and improve alias recall.
- Evaluated models
- GPT-5.5GPT-5.6-solGemma-4-26bSonnet-5llama-4-mavericknemotron-3-nanoglm-5.3-flashqwen-3.8-27b
- Benchmarks
- SVENPrimeVulnewly collected paired functions
- Metrics
- binary accuracyCWE recallFPBoth V%stage failure ratemutation recalloff-target FPSRR success rate
Researchers propose the VERA framework to audit the reasoning process of large language models in software vulnerability analysis. Human audit found that about 60% of correct vulnerability determinations are accompanied by confabulated or unverifiable claims, while free-form explanations let reasoning errors escape LLM-as-a-judge evaluation. VERA requires models to output structured reasoning records (SRR), encoding pointer tracking, memory operations, and state transitions in machine-readable fields, and a multi-stage reviewer then performs deterministic checks against eight reasoning failure modes, calling the LLM only for semantic interpretation. This standardized pattern also supports automated mutation testing, enabling large-scale reviewer evaluation without human annotation. Evaluation shows that reasoning defects occur at similar rates in correct and incorrect determinations, and VERA can expose 87% of reasoning errors that free-form LLM-as-a-judge systematically misses.
Related events and news
1 events · 0 news mentions
- This event's paper
VERA框架审计LLM漏洞推理
Paper analysis
What problem does this paper attempt to solve?
Free CoT often includes reasoning that is hard to verify even under correct vulnerability rulings; VERA uses structured records to audit it.
LLMs can give correct vulnerability verdicts while attaching hard-to-verify erroneous reasoning.
- Scenario: The authors state LLMs have been used for automated vulnerability detection, but triage and patching require knowing where and why the vulnerability exists; in security-critical settings, trust depends on the final verdict and underlying reasoning, not just binary classification.
- Existing shortcomings: The standard approach is unconstrained Chain-of-Thought. The authors state free text has no parseable intermediate steps, and logical jumps, fabricated execution steps, and internal contradictions can hide behind fluent text. The example in Fig. 1 is: the model determines a free based on an outdated comment, points the UAF to the wrong location, and the holistic LLM judge is also misled by that comment.
- Numbers: The abstract states about 60% of correct verdicts are accompanied by fabricated or unverifiable claims. Table 1 (SVEN, 64 CWE-416 pairs) directly gives binary classification accuracy 46%–60%, CWE recall 3%–16%, vague claims 19%–34%, Both V% 33%–58%. The text also writes external knowledge factual errors 55%–61%, and up to 80% of paired samples flagged as vulnerable; these two sentences do not align with the table, defer to the table.
- Observation and approach: The authors believe checkable steps correspond to program state transitions, and a class of vulnerabilities can be written as state sequences reaching a bad state. To this end, they propose VERA: use Structured Reasoning Record (SRR) to record pointers, memory operations, and state transitions, then perform multi-stage auditing against eight failure modes; most stages are deterministic syntactic checks, and mutation testing measures the judge.
Audit target (the paper is not written in terms of attacker threat models):
- Input: Vulnerability reasoning on a given project slice (e.g., key function definitions). The authors state this avoids needing a fully compilable environment.
- Code adherence: Whether claims are syntactically and semantically supported by the slice, e.g., whether names in the trace actually have declarations.
- Internal consistency: Whether intermediate steps are coherent and strictly support the final verdict.
- What it does not do: Neither check requires ground-truth reasoning annotations; the authors state this is not the same goal as confirming whether the vulnerability exists or can be triggered at runtime.
What related research exists?
Detection and verification work asks whether the vulnerability holds; VERA audits whether the explanation is code-grounded and internally consistent.
The introduction and Sec. 6 divide related work into detection, report verification, reasoning inspection, and judge evaluation.
LLM vulnerability detection
- From neural network detectors on program representations, to large models fine-tuned on code, to knowledge retrieval (Vul-RAG), code property graph guidance (LLMxCPG), and taint inference (IRIS). The authors state these systems optimize detection accuracy; VERA is not a detector but audits the reasoning in SRRs.
- The introduction states that benchmark studies only look at final detection metrics and treat reasoning as a black box; traditional static tools do rule-based detection, often overwhelming triage with high false positives and not explaining root causes. Dynamic methods (fuzzing, sanitizers) and LLM vulnerability verification aim to confirm whether a defect exists or can be executed, not to audit explanations.
Verifying whether LLM-reported vulnerabilities are real
- LLift uses rules to recheck answers; LLMSAN discards reports that fail data flow checks; LLMDFA uses SMT to check path feasibility, and RepoAudit has models find contradictions among path conditions.
- BugScope uses LLM-as-a-judge to check feasibility and whether assumptions are supported by code; VulInstruct and DAGVul use LLM-as-a-judge against ground truth. The authors state these methods ask whether the vulnerability is real, while VERA asks whether the explanation holds; they are complementary.
Inspecting reasoning and LLM judging
- The authors state that free CoT has been noted to be not always faithful in general tasks and code reasoning; LLM judging is used for code generation and software engineering outputs but can be influenced by surface cues.
- VulInstruct and DAGVul also inspect reasoning, but against patches or human annotations and using holistic LLM-as-a-judge. The authors state that VERA directly checks scope, state transitions, and assumptions against slices, requires no reasoning ground truth, and can deterministically check a portion of failures.
Evaluating reasoning judges
- The authors state that reasoning quality lacks the labeled ground truth that detectors have. FBI mutates natural language output quality, and Delcourt et al. inject structural defects into UML diagrams. The authors state this cannot be directly transferred to code reasoning: mutations must localize specific claims, confirm they are wrong relative to the source, and attach a failure class, while free CoT lacks these anchors.
Baselines and benchmarks
- Baselines are B1 (free CoT + holistic LLM judge), B2 (free CoT + staged LLM judge by eight failure classes), B3 (SRR + the same staged LLM judge). Data are SVEN, PrimeVul, and newly collected vulnerable/patched function pairs covering CWE-416, 476, 401, 415, 772.
The authors position this paper as auditing whether explanations stick to the code and are self-consistent, rather than making another detector or reconfirming whether vulnerabilities can be triggered.
How does the paper address this problem?
VERA requires outputting SRR in the form of state transitions, then uses eight-stage hybrid judging to audit eight types of failures.
VERA first writes vulnerabilities as state sequences, then forces detection models to output checkable SRR, and finally uses an eight-stage judge to verify code adherence and internal consistency.
State Specification and Failure Classification
- State specification: The text writes heap memory resource states as NULL, ALLOC, FREED. Allocation enters ALLOC, free enters FREED, aliases share the resource's state. CWE-416 is access on FREED, CWE-415 is double free on FREED, CWE-401 is becoming unreachable while still ALLOC. The authors state the same notation can generalize to toggle-type resources; pointer validity, file descriptors, etc., are defined in supplementary materials. The CWE-476 and CWE-772 specifications used in evaluation are not printed in the main text.
- Eight failure types: F1 scope error, F2 unsupported external assumption, F3 state transition error, F4 alias error, F5 incomplete tracing, F6 path fabrication, F7 reliance on dead code, F8 verdict inconsistency (Table 2). F1, F2, F3, F5, F6, F7 check code adherence; F4, F8 check internal consistency.
- Correspondence with records: Checking Blocks 1–2 against source code yields lexical and evidence issues and alias identification; Block 2 checks states and paths; comparing Blocks 2–4 checks whether the verdict is self-consistent.
Four Blocks of SRR
- Block 1 Scope: variables, assumed initial states, observed operations, alias equivalence sets.
- Block 2 Trace: on which path, in what order, what state changes occur. Fig. 2 writes "cache_remove frees e" as explicit fields for later stages to check.
- Block 3 Properties: whether violations are asserted per CWE, making the basis for judgment inspectable.
- Block 4 Conclusion: VULNERABLE or SAFE, and the cited violation_condition. The authors state separating the conclusion from the first three blocks allows checking whether the verdict is consistent with the model's own intermediate claims.
Eight-Stage Judging
The stage order is S1–S2 define scope, S3–S4 check paths, S5–S6 check transitions, S7 check aliases, S8 check verdict.
- S1 (deterministic, F1): Use Tree-Sitter to extract CWE-related variables and state-changing operations from the AST, check whether Block 1 is fabricated or missing. Operations in callees outside the slice are marked MISSING_CONTEXT. Local variables written as allocated or freed before the corresponding operation appears count as scope errors; when callers are missing, parameter initial states only warn, not error.
- S2 (LLM, F2): Targeted LLM calls on Block 1–2 claims to see if reasons rely only on evidence in the record and slice. The authors state implicit natural language assumptions cannot be resolved by deterministic parsing.
- S3–S5 (deterministic): S3 checks whether Path IDs referenced in the trace are declared (F6). S4 only flags syntactically non-executable dead code, e.g., if (0), while (false) (F7); the authors state more accurate dead code detection requires a control flow graph, left for future work. S5 only for variables being traced, checks whether operations declared in Block 1 are skipped in the trace (F5).
- S6–S8: S6 checks each transition against the state specification and source order; CWE-401 and CWE-772 additionally check whether resources remain unreleased at function end. S7 uses LLM to check aliases and whether states propagate to co-referenced pointers; the authors state aliases may come from pointer arithmetic, fields, type punning, or opaque return values. S8 first checks whether the violation claim has a corresponding transition, then uses LLM to check Block 3's reasons against Block 2, and finally deterministically checks Block 4 against Block 3: if any CWE is asserted, it is vulnerable, otherwise safe.
Outcomes and Mutation Testing
- Four outcomes: NO_ERROR for no hard failures; MINOR_ERRORS for only warnings, e.g., unverifiable callee context or unconfirmed aliases; MAJOR_ERRORS for at least one hard failure in a stage, reporting the stage and corresponding claim; INCOMPLETE_RECORD for unparseable, not entering reasoning quality evaluation, marked for recheck. The authors state correct binary classification can co-occur with MAJOR_ERRORS.
- Mutation testing: 13 operators correspond to F1–F8 (Table 3), including adding/removing variables or operations, wrong initial states, injecting unsupported assumptions, reversing transitions or inserting extra frees, adding/removing alias steps, adding/removing trace steps, vague or undeclared paths, wrapping evidence in dead code, flipping verdicts or flipping CWE states simultaneously. The authors state not every operator applies to every SRR. Recall is the proportion of mutants hitting the target stage; FP is the proportion of mutants from other stages incorrectly labeled to that stage.
- Implementation boundaries: The judge directly processes uncompiled slices. S1's completeness check is limited to explicit calls to known C/C++ memory functions, e.g., malloc, free, realloc; implicit operations are warnings, not hard failures. The authors state this avoids false positives for structural checks, at the cost of moderate recall for S1 and S5. Whole-program dead code, aliases beyond direct assignment, and formal reachability are out of current scope.
What experiments did the paper conduct?
Stage error rates for correct and incorrect verdicts are close; holistic LLM judging misses most deterministic errors flagged by VERA.
Experimental Setup
- Detection models: Main experiments used sonnet-5, gemma-4-26b, llama-4-maverick, nemotron-3-nano, glm-5.3-flash, qwen-3.8-27b. In Sec. 2, two security experts manually audited GPT-5.5, GPT-5.6-sol, Gemma-4-26b, Sonnet-5.
- Judge models: GPT-4.1, Mistral-Large-2512, DeepSeek-V3. The authors state they are from different providers than the detection models.
- Data: C/C++ vulnerability and patch function pairs. CWE-416: 184 pairs (SVEN 64, PrimeVul 100, newly collected 20), CWE-476: 277 pairs (77, 100, 100), CWE-401: 200 pairs (100, 100), CWE-415: 110 pairs (65, 45), CWE-772: 80 pairs (76, 4).
- Configurations: B1 is free CoT with holistic LLM judging; B2 is free CoT with eight-stage LLM judging; B3 is SRR with the same staged LLM judging; VERA is SRR with hybrid judging. The authors state that only a subset is in the main text, the rest in supplementary materials.
- Metrics: Mutation recall is the proportion of mutants labeled to the target stage; FP is the proportion of mutants from other stages incorrectly labeled to that stage. RQ3 additionally reports stage failure rates, SRR parseability, and false negatives relative to VERA.
- Sampling: RQ1 used 10 combinations of at least 50 functions each, 50 per combination, six models, totaling 3000 natural SRRs. RQ2 used 20 per dataset per CWE, prioritizing no errors, otherwise minor errors; Table 5 drafts are all Sonnet-5, errors present before injection not counted. The paper does not report number of repetitions or inter-annotator agreement for the two experts.
Main Results
Table 6e shows stage failure rates for each detection model. The paper does not break down cells by dataset or CWE in that table. S4's six rows are all 0.00 and not listed. Row names follow that table; Sec. 5.1's full names are not written row-by-row in the table. Nemotron's unparseable records are excluded (Sec. 5.4).
Swipe horizontally to read the table
Model S1 S3 S5 S6 S8 Sonnet-5 0.59 0.18 0.22 0.43 0.66 Gemma 0.48 0.34 0.33 0.23 0.50 GLM 0.51 0.19 0.27 0.42 0.69 Llama 0.48 0.26 0.26 0.44 0.54 Nemotron 0.47 0.21 0.11 0.32 0.51 Qwen 0.48 0.13 0.16 0.47 0.67 - In the table, S8 is higher than S3 and S5 for the same model. The authors state that aligning reasoning with the final verdict is a common weakness across models, and diagnosis should be by failed stage, not just binary classification.
- In Table 6d, the absolute difference in stage error rates between correct and incorrect verdicts does not exceed 0.05; true vulnerabilities and true safe cases are similarly close. The authors state that correct verdicts are equally often accompanied by reasoning flaws.
- The levels of path-type stages and state-transition stages are not consistent: in Table 6e, Gemma's S6 is 0.23, lower than Sonnet-5's 0.43 and Qwen's 0.47, but its S3 and S5 are higher.
Human Audit and Classification Coverage
Table 1 is free CoT, SVEN, 64 CWE-416 pairs. External knowledge Wrong% is only given for Sonnet-5.
Swipe horizontally to read the table
Model Acc CWE recall FP Both V% Vague% GPT-5.5 60% 16% 49% 44% 19% GPT-5.6-sol 59% 13% 38% 33% 28% Gemma-4-26b 46% 3% 74% 58% 22% Sonnet-5 59% 13% 46% 42% 34% - Sonnet-5's external knowledge Seen is 44%, Wrong% is 61%; the rest have Seen 0% or 2%, Wrong% is —, and the table note says n<3。正文的55%–61%和“最高80%”与此表对不齐,以表为准。
- RQ1用三个评判模型对3000条未注入SRR做开放式列错,得到324个标签、41365次出现。313个标签映射到F1–F8;未映射21次(<0.05%),八类覆盖>99.95% (per Table 4). The authors state that Mistral flagged F2, F4, F8 more than GPT-4.1 or DeepSeek.
Comparison with Free-Text Judging
- False negatives: The authors report that B1 has a false negative rate of 86.8% for records where VERA has already flagged deterministic stage errors (Sec. 5.4). The abstract and conclusion write 87%.
- Stage-wise flagging rates (Table 6b): On S8, VERA is 65%, B1 for all three judges is 0%, B2 is 0%, 5%, 2%. On S1, VERA is 59%, B1 all 4%; B2's GPT is 29%, lower than VERA, DeepSeek and Mistral are 64% and 51%. On S5, VERA is 26%, B2 is 76%, 76%, 97%. The authors state that B2 over-flags on almost all stages but misses S8; GPT's S1 is the exception in the table.
- Agreement (Table 6c, only deterministic stages): VERA vs B1 disagreement is 61%, 72%, 55% (GPT, DeepSeek, Mistral); VERA vs B2 is 20%, 9%, 8%; B1 vs B2 is 58%, 76%, 57%. The authors state that the same free text changes verdict when the prompt changes. In the disk_seqf_stop example, SRR writes pointer as NULL then dereferences, yet still marks CWE-476 as satisfied; VERA's S8 flags the contradiction, B1 judges no error.
Judge Mutation Testing
Table 5 merges datasets by CWE, all drafts are Sonnet-5. Mutant counts: CWE-416: 711, CWE-476: 1006, CWE-415: 332, CWE-401: 541, CWE-772: 178.
- VERA's deterministic stages: S3 recall 1.00, FP 0.00. S6 recall 1.00, FP 0.01–0.05. S8 recall 1.00, only CWE-401 FP 0.02. S1 recall 0.53–0.68, FP 0.00. S5 recall 0.59–0.71, FP 0.00. S4 recall 0.44–0.91, FP 0.00, CWE-772 0.44, CWE-401 0.58. The authors state S3, S6, S8 FP is 0.00, which does not match CWE-401 for S6 and S8; also state S5 VERA is 91.5%, B3 72.8%, which does not match the table's 0.59–0.71. Both places defer to the table.
- B3 comparison: The three judge models differ greatly in the same cell. For CWE-416 S6, B3's GPT-4.1 recall is 0.00 (FP 0.09), DeepSeek 0.62 (FP 0.26), Mistral 1.00 (FP 0.00). The authors cite SMB2_read in SVEN CWE-416: GPT-4.1's B3 fabricated a non-existent state transition in a chain the authors call error-free, VERA judged pass.
- S2 and S7: Table notes mark them as LLM-dependent. On S2, VERA's GPT column recall is about 0.20–0.47, Mistral column about 0.90–1.00. The authors state S2 recall is 0.20–0.47, which does not match the Mistral column. S7's GPT column is mostly 0.17–0.33; CWE-772 has no S7 mutants. The authors believe differences between VERA and B3 on these two stages come from LLM variance.
Correct Verdicts, Paired Functions, and CWE-772
- Decoupled from binary classification: Table 6d's absolute differences do not exceed 0.05. The authors state models often get correct binary classifications for wrong reasons, and surface accuracy hides these contradictions.
- Consistent false positives: Among 1468 functions evaluated by all six models, 103 safe functions were all flagged as vulnerable, and 37 true vulnerabilities were all missed. The authors state VERA flags reasoning errors on 98% of these over-flagged safe functions, with S8 accounting for 82%. In 777 pairs, same-stage failure is 51.1% for S1, 27.7% for S6, 56.9% for S8, and 32.3% of pairs share exactly the same error across all stages. Table 6d's Both Same Err column is 0.44, 0.23, 0.50 (S1, S6, S8), which is not the same column as these percentages.
- CWE-772: The authors state models flag 75% of true leaks while mislabeling 73% of safe functions; S5 failure rate 30.8% (CWE-476 17.6%), S6 58.2% (vs 38.6%). Their explanation is that free points may be outside the slice, and models fill in lifecycle operations not present in the slice.
Other Ablations and Analyses
- SRR parseability (Table 6a): Sonnet-5 97.2% (46 incomplete out of 1649), Gemma and GLM both 99.6%, Llama 97.8%, Qwen 98.5%, Nemotron 74.6% (398 out of 1564).
- On real SRRs, S4 failure rate is 0% (Tables 6b, 6d, 6e), which is not the same measurement as the 0.44–0.91 recall on mutation injection.
- S5 failure samples relative to error-free samples: loops 1.66x, null pointer checks 1.52x, allocation calls 0.49x (all p<0.01,Mann-Whitney U)。S6与循环、分支、free调用的p>0.05. S8: null pointer checks 1.61x, allocation calls 0.63x, explicit NULL assignment 0.54x (all p<0.001) (Sec. 5.4).
- The authors state that rechecking with additional CVE data after the training date showed no difference in reasoning error rates, and they conclude that contamination alone cannot explain these failures (Sec. 5.5; the paper does not provide tests or p-values for that comparison).
- The authors state Mistral approaches full recall on several stages but FP up to 0.26; DeepSeek is more conservative, FP up to 0.38 (see corresponding cells in Table 5). VERA's programmatic stages do not change across these three judge models; variance only in S2 and S7.
What are some points that can be further explored?
The authors note that the scope stops at five C/C++ vulnerability classes and specify the boundaries of slice auditing and sparse SRRs.
Limitations and future directions noted by the authors
- Build-free slicing boundaries: For cross-language, large-scale deployment, the judge directly processes uncompiled slices without full program construction. Implicit operations introduced by type conversions, struct fields, or opaque callees are beyond AST matching; S1 completeness checks are limited to explicit calls to known C/C++ memory functions, and implicit operations are recorded as warnings rather than hard failures. The authors state this is a deliberate trade-off: avoiding false positives in structural checks at the cost of moderate recall for S1 and S5 (Sec. 4 Scope and Limitations).
- Interprocedural analysis is out of scope: Precise dead code, aliasing beyond direct pointer assignments, and formal path reachability require full program compilation and are not currently done. The authors state that integration with whole-program control flow and points-to solvers is a future direction (Sec. 4).
- Training data contamination: Public benchmarks may have been seen during pretraining. The authors mitigate with additional CVE data collected after the training date, state that reasoning error rates show no difference, and argue that contamination alone cannot explain the observed failures (Sec. 5.5).
- CWE scope: The evaluation covers five C/C++ memory and resource lifecycle CWEs. The authors state that extending to other CWEs is left for future work (Sec. 5.5). Sec. 7 further writes about expanding beyond C/C++ memory vulnerabilities to semantic defect classes.
- Can only check what is written: Sparse or underspecified SRRs give VERA fewer checkable claims, potentially inflating the no-error proportion. The authors state they have seen this on smaller open-source models; the five frontier models evaluated can follow the pattern (Sec. 5.5). The paper does not name which five these are.
- Whether mutations are biased toward deterministic checks: The authors acknowledge that operators may be biased toward VERA's deterministic checks and state that RQ1's open labeling shows M1–M8 correspond to F1–F8 in real unmutated reasoning, so they are not constructed to favor VERA (Sec. 5.5). Sec. 7 also plans to use interprocedural analysis to improve pointer alias recall and use staged diagnosis as a fine-grained training signal for alignment.
Experimental coverage
- In the main experiment, detection models are sonnet-5, gemma-4-26b, llama-4-maverick, nemotron-3-nano, glm-5.3-flash, qwen-3.8-27b; judge models are GPT-4.1, Mistral-Large-2512, DeepSeek-V3 (Sec. 5.1). The human audit in Sec. 2 targets GPT-5.5, GPT-5.6-sol, Gemma-4-26b, Sonnet-5.
- Data are C/C++ paired functions: CWE-416 184 pairs, CWE-476 277 pairs, CWE-401 200 pairs, CWE-415 110 pairs, CWE-772 80 pairs, from SVEN, PrimeVul, and newly collected samples (Sec. 5.1).
- Comparison configurations are B1, B2, B3, and VERA. Mutation testing has 13 operators; RQ2 samples 20 SRRs per dataset per CWE, and all Table 5 drafts are generated by Sonnet-5 (Sec. 5.1–5.3).
- RQ1 covers 10 dataset–CWE combinations with at least 50 functions each, 50 per combination, 3000 total across six models, with three judge models openly listing errors (Sec. 5.2).
- The paper does not report the agreement of the two experts in Sec. 2, nor the number of main experiment repetitions; the authors state that due to page limits, only partial results are in the main text, with the rest in supplementary materials (Sec. 5.1).
Summarize the main content of the paper
VERA uses SRR to audit vulnerability explanations; the difference in stage error rates between correct and incorrect verdicts does not exceed 0.05.
VERA audits whether LLM vulnerability explanations on source code slices stick to the code and are self-consistent, rather than training another detector.
- Problem: Free CoT can include fabricated paths, external knowledge, and unverifiable assumptions under correct binary classifications, and holistic LLM judges also miss them. The abstract states about 60% of correct vulnerability verdicts are accompanied by such claims. Table 1 on SVEN's 64 CWE-416 pairs gives another set of numbers: binary classification accuracy 46%–60%, CWE recall 3%–16%, vague claims 19%–34%.
- Approach: Write memory-type vulnerabilities as state transitions, require models to output SRR containing scope, state changes along paths, CWE property checks, and final verdicts, then an eight-stage judge verifies. S1, S3–S6, and S8 are mostly deterministic checks; S2, S7, and part of S8 call LLMs. 13 mutation operators are used to evaluate the judge without ground-truth reasoning.
- Separating verdict and reasoning: In Table 6d, the difference in stage error rates between correct and incorrect verdicts does not exceed 0.05, and true vulnerabilities vs true safe are also close. The authors state models often get correct binary classifications for wrong reasons.
- Relative to free-text judging: In Sec. 5.4, B1 has a false negative rate of 86.8% for deterministic stage errors already flagged by VERA (abstract and conclusion write 87%). In Table 6b, on S8 VERA is 65%, B1 for all three judge models is 0%. Among 103 safe functions consistently flagged by all six models, the authors state 98% are flagged by VERA for reasoning errors.
- Authors' conclusion: Reasoning quality is separate from binary classification correctness; stage-wise results can localize failures to scope, tracing, or verdict consistency. The authors state analysts can filter out fabricated reports before trusting, and developers can do targeted diagnosis by stage. Future work includes semantic-type defects, interprocedural alias analysis, and using stage diagnosis as training signal.