ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsTopic · 大模型认知偏差安全2 min read·2026-10-17DisconfirmAI Editorial

IEEE S&P Paper: LLM Code Vulnerability Detection Susceptible to Cognitive Heuristics, Attack Suppresses 97% of Detections

New research confirms that large language models used for code security review are influenced by cognitive biases such as author prestige, task framing, and prior results, posing risks of exploitation via black-box attacks.

ImportanceMaterialEvidenceE2 unreplicatedWrite-upStandard

Original publication time 2026-10-16 12:00 GMT+8

Researchers from Purdue University and the University of Illinois Urbana-Champaign have found that when Large Language Models (LLMs) are deployed as automated code vulnerability detectors, their judgments are significantly influenced by non-code context, including author prestige, task description framing, and prior analysis results. This cognitive bias can lead to contradictory security verdicts on identical code.

The study presents the first systematic exploration of cognitive heuristics in LLM-driven security detection. Through controlled experiments evaluating eight mainstream LLMs across three programming languages, the team demonstrated that all tested models were susceptible. The 'framing effect' (how task objectives or consequences are described) had the highest impact, with a cross-model average susceptibility of 33.2%. This was followed by the 'anchoring effect' (influence of prior results) at 23.5%, and the 'halo effect' (influence of author identity) at 18.4%.

To highlight practical implications, the team demonstrated a proof-of-concept black-box cognitive attack. By forging commit metadata and fabricating prior scan results, the attack suppressed up to 97% of previously detected vulnerabilities in a simulated CI/CD pipeline. This suggests that enterprises relying on LLMs as security gatekeepers face significant blind spots if they do not isolate these non-code signals.

Sign in / Sign up
ReadingResearchRadarInvestment framework

The paper has been accepted at IEEE Symposium on Security and Privacy (S&P) 2027. It is currently a preprint (version 2 updated October 15, 2026). The data reflects author-run benchmarks, and independent third-party reproduction has not yet been reported.

Sources

  • 原始出处arxiv.org↗
Topic

大模型认知偏差安全

【背景】随着大语言模型(LLM)被广泛部署于代码审查和关键决策中,其安全性正受到一种非传统威胁的挑战:认知偏差。最新研究表明,LLM并非仅依据代码逻辑或事实数据做出判断,而是极易受“光环效应”、“框架效应”和“锚定效应”等人类心理启发式的影…

4 steps1 piecesUpdated 2026-10-18 13:46

How it got here

  1. 2026-06-29arXiv发布《Words Speak Louder Than Code》v1版,首次系统探索LLM在代码漏洞检测中的认知启发式影响。
  2. 2026-07-28另一项研究提出CogBias框架,证明可通过比特翻转攻击向LLM注入认知偏差,实现隐蔽的决策级劫持。
  3. 2026-10-15《Words Speak Louder Than Code》更新至v2版,确认该论文已被IEEE Symposium on Security and Privacy (S&P) 2027录用。

What is still unsettled

  • 现有的CI/CD流水线如何有效过滤或标准化非代码上下文(如作者头衔、提交信息),以防止其干扰LLM的安全判断?
  • 除了提示词层面的防御,是否有可行的模型架构改进或微调方法能从根本上降低LLM对光环、框架和锚定效应的敏感性?
  • 在商业应用中,如何量化并监控由认知偏差导致的漏报率(False Negatives),特别是在高信誉开发者提交的代码中?
Read the full topic →
Continue researching →