信任工具:大语言模型漏洞审计器对静态分析证据的非对称顺从 Trusting the Tool: Asymmetric Deference of LLM Vulnerability Auditors to Static-Analysis Evidence 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-23
⬇️ 2 次下载
👁️ 预览文献
💡 AI 中文简介
研究让大语言模型结合静态分析工具审计C/C++代码漏洞时,模型是否会盲目相信工具给出的证据。作者构建分析器生成证明义务,在916对函数、11种模型配置上做了16572次审计。结果发现:真实证据几乎不提升准确率(仅+0.02),但虚假的“已检查”保证会让漏洞检出率最多下降19个百分点,而虚假警报却很少被采信,呈现明显非对称性。提示词指令无法可靠纠正,改为逐条验证证据可提升12个百分点。
领域软件安全 / 程序分析 与 大语言模型交叉方向
适合谁读需要一定专业背景(了解静态分析与LLM基本概念)
核心贡献首次系统测量LLM审计器对静态分析证据的方向性顺从:发现模型对“虚假保证”远比“虚假警报”更易轻信,且提示词难以纠正;提出逐条验证证据的独立调用方案可显著缓解该问题。
关键数据916对函数、4个不相交集合、11种模型配置、16572次审计;真实证据仅提升+0.02准确率;虚假保证使漏洞检出率最多降19个百分点;复制实验平均非对称性+0.16(95% CI +0.10~+0.24);逐条验证在预注册测试中提升12个百分点(p=0.002)。
推荐理由如果你以为给LLM配上静态分析工具就万事大吉,这项研究用上万次审计告诉你:模型会“选择性轻信”工具的假保证,值得一读。
关键词["大语言模型", "静态分析", "漏洞审计", "证据顺从", "人机协作", "可信AI"]

原文摘要

查看英文原文摘要

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.