CyberGuardAI 安全情报工作区
AI 安全知识情报
LJH 管理员
返回首页 学术论文

LLM安全代码审查的上下文偏置利用

Georgios Alexopoulos、Nikolaos Alexopoulos、Diomidis Spinellis、Dimitris Mitropoulos

摘要与解读

研究LLM代码审查的框架效应,精炼攻击在32/33例成功。

六维情报分析

6 个维度 · 原文可溯源

影响范围

  • 来源报告指出,基于LLM的自动代码审查(ACR)流水线存在被上下文偏差影响的安全判断风险,影响对象包括使用Claude Code与CodeRabbit这两类真实ACR流水线的开发流程,以及依赖其漏洞检测结论的代码合并与安全审查环节。触发前提是攻击者能够影响PR元数据等上下文,使ACR的安全判断发生偏移;信任边界落在“贡献者提交内容—ACR判断—人工复核”之间,后果是安全审查结论被系统性带偏,进而削弱对供应链代码变更的把关。

    原文依据 · 2
    extual-bias injection (crafting PR metadata to bias ACR security judgments) as a supply-chain attack vector against real-world ACR pipelines. To this end, we first conduct a large-scale exploratory study across 6 LLMs under five framing conditions, establishing the framing effect as a systematic and widespread phenomenon in LLM-based vulnerability detection. We then design a realistic and controlled experimental environment, evaluating 33 CVEs across 20 real-world projects and two popular ACR pipelines (Claude Code and CodeRabbit), to assess the susceptibility of real-world ACR pipelines to
    查看原文 · v1
    template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions. Our refinement attack, on the other hand, is successful in 32/33 (97%) cases, exploiting a fundamental asymmetry: attackers can iteratively refine attacks against a local clone of the review pipeline, while defenders have only one chance to detect them. Overall, our findings highlight the dangers of over-relying on ACR and stress the importance of human oversight and contributor trust in the development process.
    查看原文 · v1

关联资产

  • 原文明确关联的产品与组件包括Claude Code和CodeRabbit两条ACR流水线、6个LLM、PR元数据,以及作为评估对象的20个真实项目中的33个CVE。适用前提是组织使用LLM辅助的安全代码审查,且审查判断会受PR元数据等上下文影响;未提供本地资产清单,尚不能确认这些资产与本地环境的对应关系。

    原文依据 · 2
    extual-bias injection (crafting PR metadata to bias ACR security judgments) as a supply-chain attack vector against real-world ACR pipelines. To this end, we first conduct a large-scale exploratory study across 6 LLMs under five framing conditions, establishing the framing effect as a systematic and widespread phenomenon in LLM-based vulnerability detection. We then design a realistic and controlled experimental environment, evaluating 33 CVEs across 20 real-world projects and two popular ACR pipelines (Claude Code and CodeRabbit), to assess the susceptibility of real-world ACR pipelines to
    查看原文 · v1
    template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions. Our refinement attack, on the other hand, is successful in 32/33 (97%) cases, exploiting a fundamental asymmetry: attackers can iteratively refine attacks against a local clone of the review pipeline, while defenders have only one chance to detect them. Overall, our findings highlight the dangers of over-relying on ACR and stress the importance of human oversight and contributor trust in the development process.
    查看原文 · v1

风险评估

  • 已报道的风险机制是contextual-bias injection:通过构造PR元数据影响ACR的安全判断,属于针对真实ACR流水线的供应链攻击向量。来源给出的关键触发条件是攻击者可对审查流水线的本地克隆反复迭代优化攻击,而防守方只有一次检测机会,形成不对称;模板式攻击无效甚至适得其反,因为直接偏置会引发怀疑,而refinement攻击在32/33(97%)案例中成功。防护优先级应放在降低对ACR的过度依赖、强化人工监督与贡献者信任管理上。

    原文依据 · 2
    extual-bias injection (crafting PR metadata to bias ACR security judgments) as a supply-chain attack vector against real-world ACR pipelines. To this end, we first conduct a large-scale exploratory study across 6 LLMs under five framing conditions, establishing the framing effect as a systematic and widespread phenomenon in LLM-based vulnerability detection. We then design a realistic and controlled experimental environment, evaluating 33 CVEs across 20 real-world projects and two popular ACR pipelines (Claude Code and CodeRabbit), to assess the susceptibility of real-world ACR pipelines to
    查看原文 · v1
    template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions. Our refinement attack, on the other hand, is successful in 32/33 (97%) cases, exploiting a fundamental asymmetry: attackers can iteratively refine attacks against a local clone of the review pipeline, while defenders have only one chance to detect them. Overall, our findings highlight the dangers of over-relying on ACR and stress the importance of human oversight and contributor trust in the development process.
    查看原文 · v1

相关研究

  • 研究方法分两步:先在6个LLM、五种framing条件下开展大规模探索性研究,确认framing effect在基于LLM的漏洞检测中是系统且普遍的现象;再构建贴近真实且受控的实验环境,覆盖20个真实项目中的33个CVE,并在Claude Code与CodeRabbit两条流行ACR流水线上评估其易感性。贡献在于把上下文偏差从模型层现象推进到真实ACR流水线的供应链攻击面,并提出refinement攻击以利用攻防迭代不对称。

    原文依据 · 2
    extual-bias injection (crafting PR metadata to bias ACR security judgments) as a supply-chain attack vector against real-world ACR pipelines. To this end, we first conduct a large-scale exploratory study across 6 LLMs under five framing conditions, establishing the framing effect as a systematic and widespread phenomenon in LLM-based vulnerability detection. We then design a realistic and controlled experimental environment, evaluating 33 CVEs across 20 real-world projects and two popular ACR pipelines (Claude Code and CodeRabbit), to assess the susceptibility of real-world ACR pipelines to
    查看原文 · v1
    template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions. Our refinement attack, on the other hand, is successful in 32/33 (97%) cases, exploiting a fundamental asymmetry: attackers can iteratively refine attacks against a local clone of the review pipeline, while defenders have only one chance to detect them. Overall, our findings highlight the dangers of over-relying on ACR and stress the importance of human oversight and contributor trust in the development process.
    查看原文 · v1

验证资料

  • 来源报告的实验数据为:6个LLM、五种framing条件;33个CVE、20个真实项目、两条ACR流水线(Claude Code、CodeRabbit);refinement攻击成功32/33(97%),模板式攻击无效并可能反噬。适用条件是受控实验环境下的真实项目CVE。防御性核查可围绕ACR流水线版本与配置、PR元数据来源与可信度、审查结论与人工复核记录的一致性展开,并观察同一变更在元数据变动前后的判断差异作为日志指标。

    原文依据 · 2
    extual-bias injection (crafting PR metadata to bias ACR security judgments) as a supply-chain attack vector against real-world ACR pipelines. To this end, we first conduct a large-scale exploratory study across 6 LLMs under five framing conditions, establishing the framing effect as a systematic and widespread phenomenon in LLM-based vulnerability detection. We then design a realistic and controlled experimental environment, evaluating 33 CVEs across 20 real-world projects and two popular ACR pipelines (Claude Code and CodeRabbit), to assess the susceptibility of real-world ACR pipelines to
    查看原文 · v1
    template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions. Our refinement attack, on the other hand, is successful in 32/33 (97%) cases, exploiting a fundamental asymmetry: attackers can iteratively refine attacks against a local clone of the review pipeline, while defenders have only one chance to detect them. Overall, our findings highlight the dangers of over-relying on ACR and stress the importance of human oversight and contributor trust in the development process.
    查看原文 · v1

处置建议

  • 建议按序推进:一是梳理所用ACR流水线(如Claude Code、CodeRabbit)及其版本配置,明确PR元数据进入审查上下文的路径;二是对安全敏感变更保留人工复核,降低对ACR结论的单一依赖,对应来源强调的human oversight;三是监测同一变更在元数据调整前后的判断漂移,作为上下文偏差的观察指标;四是回归验证时关注模板式偏置是否引发怀疑、refinement式迭代是否改变结论,以检验防护有效性。

    原文依据 · 2
    extual-bias injection (crafting PR metadata to bias ACR security judgments) as a supply-chain attack vector against real-world ACR pipelines. To this end, we first conduct a large-scale exploratory study across 6 LLMs under five framing conditions, establishing the framing effect as a systematic and widespread phenomenon in LLM-based vulnerability detection. We then design a realistic and controlled experimental environment, evaluating 33 CVEs across 20 real-world projects and two popular ACR pipelines (Claude Code and CodeRabbit), to assess the susceptibility of real-world ACR pipelines to
    查看原文 · v1
    template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions. Our refinement attack, on the other hand, is successful in 32/33 (97%) cases, exploiting a fundamental asymmetry: attackers can iteratively refine attacks against a local clone of the review pipeline, while defenders have only one chance to detect them. Overall, our findings highlight the dangers of over-relying on ACR and stress the importance of human oversight and contributor trust in the development process.
    查看原文 · v1
模型与引文记录
模型
deepseek-flash
生成时间
记录编号
REQ-653d50f1c54647d7bf7aa537a4984329
分析原文
查看原文 · v1

资料档案

文献来源与参考链接

当前保存的来源版本 · v1

作者
Georgios Alexopoulos、Nikolaos Alexopoulos、Diomidis Spinellis、Dimitris Mitropoulos
文献与标准标识
arxiv:2603.18740
主题分类
cs.SE、cs.AI、cs.CR
来源版本
v4
来源更新时间
2026-09-23T12:12:39+00:00
日期依据
来源明确给出发表日期
原始标题与分类记录

Measuring and Exploiting Contextual Bias in LLM-Assisted Security Code Review

研究方向
攻击方法、防御技术
影响维度
完整性
风险类型
供应链风险
相关技术
LLM

当前为离线关键词规则模式。

分类规则与原始字段
攻击方法 · attack
data to bias ACR security judgments) as a supply-chain attack vector against real-world ACR pipelines. To this end, we first conduct a large-scale exploratory st
防御技术 · detection
s. In this paper, we study how LLM-based vulnerability detection in ACR is affected by the framing effect: the tendency to let the presentation of information overr
供应链风险 · vulnerability
CI/CD pipelines. In this paper, we study how LLM-based vulnerability detection in ACR is affected by the framing effect: the tendency to let the presentation of informa
完整性 · injection
r adversaries can exploit this through contextual-bias injection (crafting PR metadata to bias ACR security judgments) as a supply-chain attack vector against real-
LLM · llm
Measuring and Exploiting Contextual Bias in LLM-Assisted Security Code Review Automated Code Review (ACR) systems integrating Large Language Models
{
  "ai_relevance": {
    "evidence": [
      {
        "end_offset": 47,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 44
      },
      {
        "end_offset": 147,
        "location": "title_and_content",
        "quote": "Large Language Models",
        "rule": "ai_term",
        "start_offset": 126
      },
      {
        "end_offset": 153,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 149
      },
      {
        "end_offset": 323,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 320
      },
      {
        "end_offset": 777,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 773
      },
      {
        "end_offset": 889,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 886
      },
      {
        "end_offset": 1303,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 1300
      }
    ],
    "matches": [
      {
        "end_offset": 47,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 44
      },
      {
        "end_offset": 147,
        "location": "title_and_content",
        "quote": "Large Language Models",
        "rule": "ai_term",
        "start_offset": 126
      },
      {
        "end_offset": 153,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 149
      },
      {
        "end_offset": 323,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 320
      },
      {
        "end_offset": 777,
        "location": "title_and_content",
        "quote": "LLMs",
        "rule": "ai_term",
        "start_offset": 773
      },
      {
        "end_offset": 889,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 886
      },
      {
        "end_offset": 1303,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 1300
      }
    ],
    "method": "explainable_keyword_rules",
    "reason": "Matched AI topic or component evidence",
    "relevant": true
  },
  "entity_ids": [],
  "facts": [],
  "method": "source_grounded_extraction",
  "unknown_fields": [
    "affected_products",
    "affected_versions",
    "fixed_versions",
    "cvss",
    "mitigations",
    "references",
    "papers",
    "poc"
  ]
}
原始采集文本
Automated Code Review (ACR) systems integrating Large Language Models (LLMs) are increasingly adopted in software development workflows, ranging from interactive assistants to autonomous agents in CI/CD pipelines. In this paper, we study how LLM-based vulnerability detection in ACR is affected by the framing effect: the tendency to let the presentation of information override its semantic content in forming judgments. We examine whether adversaries can exploit this through contextual-bias injection (crafting PR metadata to bias ACR security judgments) as a supply-chain attack vector against real-world ACR pipelines. To this end, we first conduct a large-scale exploratory study across 6 LLMs under five framing conditions, establishing the framing effect as a systematic and widespread phenomenon in LLM-based vulnerability detection.
  We then design a realistic and controlled experimental environment, evaluating 33 CVEs across 20 real-world projects and two popular ACR pipelines (Claude Code and CodeRabbit), to assess the susceptibility of real-world ACR pipelines to vulnerability re-introduction attacks. We employ two attack strategies: a template-based attack inspired by prior related work, and a novel LLM-assisted refinement attack. We find that template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions. Our refinement attack, on the other hand, is successful in 32/33 (97%) cases, exploiting a fundamental asymmetry: attackers can iteratively refine attacks against a local clone of the review pipeline, while defenders have only one chance to detect them. Overall, our findings highlight the dangers of over-relying on ACR and stress the importance of human oversight and contributor trust in the development process.
采集信息与校验
完整来源元数据
{
  "authors": [
    "Georgios Alexopoulos",
    "Nikolaos Alexopoulos",
    "Diomidis Spinellis",
    "Dimitris Mitropoulos"
  ],
  "content_level": "abstract",
  "date_basis": "explicit_published",
  "date_evidence": {
    "published": "2026-03-19T10:40:27Z",
    "updated": "2026-09-23T12:12:39Z"
  },
  "identifiers": [
    "arxiv:2603.18740"
  ],
  "source_updated_at": "2026-09-23T12:12:39+00:00",
  "subjects": [
    "cs.SE",
    "cs.AI",
    "cs.CR"
  ],
  "version_label": "v4"
}
原文版本历史与校验
版本入库更新时间来源发布日期校验标识
v1 · 正在查看2026-10-12 06:05 UTC2026-03-19 10:40 UTC05825036bffa9250cac2d9d506c3f23680b0afde147476700df71c840837f9bb
可引用分片 · 2 段

CHK-423d784567c3a01b2e2278aa

Automated Code Review (ACR) systems integrating Large Language Models (LLMs) are increasingly adopted in software development workflows, ranging from interactive assistants to autonomous agents in CI/CD pipelines. In this paper, we study how LLM-based vulnerability detection in ACR is affected by the framing effect: the tendency to let the presentation of information override its semantic content in forming judgments. We examine whether adversaries can exploit this through contextual-bias injection (crafting PR metadata to bias ACR security judgments) as a supply-chain attack vector against real-world ACR pipelines. To this end, we first conduct a large-scale exploratory study across 6 LLMs under five framing conditions, establishing the framing effect as a systematic and widespread phenomenon in LLM-based vulnerability detection.
  We then design a realistic and controlled experimental environment, evaluating 33 CVEs across 20 real-world projects and two popular ACR pipelines (Claude Code and CodeRabbit), to assess the susceptibility of real-world ACR pipelines to vulnerability re-introduction attacks. We employ two attack strategies: a template-based attack inspired by prior related work, and a novel LLM-assisted refinement attack. We find that template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions.

CHK-bdceeb5201d50ae06e4fb2c4

 a novel LLM-assisted refinement attack. We find that template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions. Our refinement attack, on the other hand, is successful in 32/33 (97%) cases, exploiting a fundamental asymmetry: attackers can iteratively refine attacks against a local clone of the review pipeline, while defenders have only one chance to detect them. Overall, our findings highlight the dangers of over-relying on ACR and stress the importance of human oversight and contributor trust in the development process.
处理记录
补充资料

中文译文

正文译文暂缺,以下仅为中文摘要。

中文摘要

研究LLM代码审查的框架效应,精炼攻击在32/33例成功。

已采集原文

访问来源网页

Automated Code Review (ACR) systems integrating Large Language Models (LLMs) are increasingly adopted in software development workflows, ranging from interactive assistants to autonomous agents in CI/CD pipelines. In this paper, we study how LLM-based vulnerability detection in ACR is affected by the framing effect: the tendency to let the presentation of information override its semantic content in forming judgments. We examine whether adversaries can exploit this through contextual-bias injection (crafting PR metadata to bias ACR security judgments) as a supply-chain attack vector against real-world ACR pipelines. To this end, we first conduct a large-scale exploratory study across 6 LLMs under five framing conditions, establishing the framing effect as a systematic and widespread phenomenon in LLM-based vulnerability detection. We then design a realistic and controlled experimental environment, evaluating 33 CVEs across 20 real-world projects and two popular ACR pipelines (Claude Code and CodeRabbit), to assess the susceptibility of real-world ACR pipelines to vulnerability re-introduction attacks. We employ two attack strategies: a template-based attack inspired by prior related work, and a novel LLM-assisted refinement attack. We find that template-based attacks are ineffective and may even backfire, as direct biasing attempts raise suspicions. Our refinement attack, on the other hand, is successful in 32/33 (97%) cases, exploiting a fundamental asymmetry: attackers can iteratively refine attacks against a local clone of the review pipeline, while defenders have only one chance to detect them. Overall, our findings highlight the dangers of over-relying on ACR and stress the importance of human oversight and contributor trust in the development process.

原文依据