arXiv(opens in a new tab)cs.SEOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.32876

Trusting the Tool: Asymmetric Deference of LLM Vulnerability Auditors to Static-Analysis Evidence

ZhiHong Liu, Shuyao Gao

Abstract

Pipelines that combine large language models (LLMs) with static analysis let the model consume the analyser's output as evidence, but whether the model distinguishes true from false evidence, and whether its scrutiny depends on what the evidence claims, has not been measured. We built an intraprocedural analyser for C/C++ that produces proof obligations and audited vulnerable and patched functions from PrimeVul under six evidence conditions that differ only in the notes, including fabricated assurances that a missing check exists and fabricated alarms that an added check is missing. The study covers 916 pairs in four disjoint sets, eleven model configurations from four vendors and 16,572 audits; no model is trained or fine-tuned. True evidence barely improved accuracy (+0.02). False evidence acted asymmetrically: relative to true notes about the same operations, false assurances lowered the detection of real vulnerabilities by up to 19 points, whereas false alarms never significantly lowered accuracy and were disputed far more often. An internally registered replication on seven new models confirmed that false assurances move verdicts towards their claim more than false alarms do (mean asymmetry +0.16, 95% CI +0.10 to +0.24). Instructions in the audit prompt did not reliably reduce deference; the best one failed to replicate. Verifying each claim in a separate call and showing the refuted claims raised accuracy under false assurances by 12 points in a pre-specified test (p = 0.002) without loss under true evidence; for a second model the gain was smaller and not significant. Pipelines should therefore verify a tool's guarantees before the model relies on them, and studies should measure deference in a direction-aware way.

Keywords: Automation bias, empirical study, human–AI interaction, large language models, static analysis, vulnerability detection.

1 Introduction

Large language models (LLMs) are increasingly used to audit code for vulnerabilities, and a natural way to make them more reliable is to give them the output of program analysis. Systems that combine LLMs with static analysis let the analyser enumerate candidate defects and ask the model to judge them [1,2], or let the model triage the analyser's warnings [3,4]. In all of these designs the

*Corresponding author. E-mail: gaoshuyao.mk@gmail.com

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

model consumes evidence produced by a tool, and the value of the combination depends on how the model treats that evidence: whether it uses true evidence, and whether it notices when the evidence is wrong. Static analysers are wrong often enough that developers cite false positives as a main reason not to use them [5], and the same analysers can also be wrong in the other direction, reporting that a guard exists or that a path is safe when it is not.

How people treat the output of automated aids has been studied for decades under the name of automation bias: people over-rely on automation, accept its errors of commission, and miss what it fails to flag [6, 7]. Recent work in human–AI interaction shows the same pattern with AI assistants, where explanations can increase rather than reduce over-reliance [8] and fluent assistance can create confidence without competence [9]. LLMs that consume tool output are in the position of the human user. Work on knowledge conflicts shows that LLMs can be highly receptive to external evidence that contradicts what they know [10–12], and work on sycophancy shows that they tend to agree with the views put to them [13]. Concurrent work has begun to show that context outside the code, such as prior verdicts, pull-request metadata and comments, shifts the verdicts of LLM security reviewers [14–16]. These studies vary cues that are not tied to the truth of a specific claim, or study only claims that the code is safe. The closest, ALIBI [16], already embeds fabricated tool reports in code comments to evade LLM detectors, but it studies only claims of safety and does not compare a false claim with a true claim about the same operation. Our study adds three things: true and false evidence matched on the same operations, false claims in both directions, and mitigations evaluated on held-out data. Whether LLM auditors distinguish true from false analysis evidence about the same operations, and whether their scrutiny depends on the direction of the claim, has not been measured.

This paper reports a controlled empirical study of that question. We built an intraprocedural analyser for C and C++ that produces proof obligations: for each sensitive operation, the guards that hold on every path to it and what the function does not guarantee. Running it on pairs of vulnerable and patched functions from PrimeVul [17], we audit the same function under six evidence conditions that vary only the notes: none, all true notes, true notes about the operations the fix touches, true notes about other operations, a fabricated assurance that the missing check exists, and a fabricated alarm that the check added by the fix is missing. Because both false conditions are compared with true notes about the same operations, differences in the verdicts can be attributed to the truth of the evidence. All models are used through their APIs for inference only; no model training or fine-tuning is performed. We ask four research questions: whether true evidence helps (RQ1), how relevance and correctness affect the verdicts (RQ2), whether the models check the evidence (RQ3), and whether the way evidence is presented can reduce deference to false evidence (RQ4).

The main findings are as follows.

  • True evidence barely helps. Showing all true notes changes accuracy by +0.02 (95% CI -0.03 to +0.07); restricting them to the relevant operations gives a small, non-significant gain (RQ1).

  • False evidence acts asymmetrically. A fabricated assurance lowers the detection of real vulnerabilities (by 0.11, p = 0.012, for deepseek-chat, and by 0.13–0.19 for four of seven further models), whereas a fabricated alarm about a fixed function never significantly lowers accuracy and often raises it, because the model goes looking for the guard and finds it (RQ2). Models dispute false alarms in the text of their answers far more often than false assurances (RQ3).

  • The asymmetry generalises. Accuracy contrasts make deference look model-dependent, because models that flag nearly every function cannot be pushed further. A direction-aware

measure reduces this confound, although its size still depends on how much room a model's leaning leaves in each direction. After deriving it on four configurations, we registered a replication internally on seven new models from four vendors, which confirmed it: false assurances move verdicts towards their claim more than false alarms do (mean asymmetry +0.16, 95% CI +0.10 to +0.24, p < 0.001).

  • Separate verification mitigates deference; instructions do not reliably. The best instruction-level strategy on the study set (reframing assurances as claims to verify, +0.18) failed to replicate on held-out data. Checking each note against the code in a separate call and showing the refuted notes (verify-show) recovered 12 points of accuracy under false assurances in a pre-specified test on 300 unseen pairs (p = 0.002) at no cost under true evidence; for a second model the gain was half as large and not significant.

For practitioners who build LLM–analysis pipelines, these findings point to a concrete risk: the input that most needs checking is the analyser’s guarantees, not its alarms, because guarantees are the evidence the models accept without looking. We return to this point in Section 7.3 and in the conclusion.

The study is designed to support these claims with appropriate rigour. It comprises 916 Prime-Vul pairs (1,832 functions) in four disjoint sets, eleven model configurations from four vendors, and 16,572 audits. All comparisons are paired on the same functions. Exploration and confirmation are separated: presentation strategies were developed on a development set, and the hypotheses of the confirmatory phases were fixed before the corresponding data were collected [18, 19]; Section 5.3 states how each was recorded. The behavioural coding is validated by two independent LLM annotators and a human check. We report every strategy we tried and every confirmatory test, including those that failed.

The main contributions of this study are:

  1. A controlled methodology for measuring how LLMs use program-analysis evidence. It consists of an obligation analyser for C/C++, six evidence conditions built from vulnerability-fixing pairs, matched contrasts that isolate the truth of the evidence, and a direction-aware measure of deference relative to true evidence about the same operations.

  2. Empirical evidence of asymmetric deference. Across eleven configurations and four vendors, LLM auditors trust false assurances and check false alarms. The asymmetry was confirmed in an internally registered replication; its size varies between models and samples, and the study is limited to C/C++ functions audited in isolation.

  3. An evaluation of evidence presentation. We evaluate eight ways of presenting evidence along five dimensions (content, framing, provenance, checking and timing), including a failed replication, and a pre-specified test showing that moving verification into a separate step reduces deference without losing the value of true evidence for one of two models.

  4. A replication package. It contains the analyser, the evidence of every condition, all model responses, the annotations, the registrations and the analysis scripts that produce every number and figure in this paper. 0^{0}

The remainder of the paper is organised as follows. Section 2 discusses related work. Section 3 reports a preliminary study that motivated the design. Section 4 describes the methodology and Section 5 the experimental setup, Section 6 the results, and Section 7 their implications and limitations. Section 8 concludes.

0^{0}https://github.com/lzh0082-cloud/CODE-DETECTION

References (71)