最新资讯
dev.to 如何在专用 GPU 服务器上用 OpenAI 兼容 API 部署 LLM dev.to 审计 153 份 Claude Code 与 Codex 会话记录:User-Agent 与 URL 中的邮箱泄露 dev.to 你的 Agent Harness 应具备的 17 项能力 dev.to 离线 AI 记忆中 0.8 余弦阈值为何失效 dev.to Kimi K3.1 Pro 开放权重:自托管 2.8T 模型前的开发者清单 dev.to 如何通过工具调用引导模型以提升 Harness 质量 dev.to AI Agent 审计轨迹不等于对话记录 dev.to 精简 MCP server 工具数量:更少工具、更小影响面,双重收益 dev.to 为什么 git checkout 无法撤销 AI 编码 agent 的改动? wechat AI短剧门槛降降降!实测即梦短剧工作室:剧本分镜预演一条龙,伙伴计划长期护航 dev.to 让模型改写文档前,先量化事实保真度 dev.to 回放 153 个 Claude Code 与 Codex 会话,审计 Agent 的生产影响范围
多元动态
登录 注册
AI编码 arxiv.org ·

衡量并利用 LLM 辅助安全代码审查中的上下文偏差

原文 我的收藏

论文研究 LLM 辅助自动代码审查(ACR)中的 framing effect,即信息呈现方式压过语义内容影响漏洞判断。作者先在 6 个 LLM、5 种 framing 条件下做大规模探索,确认该偏差普遍存在;随后在 20 个真实项目、33 个 CVE 上评估 Claude Code 和 CodeRabbit 两条 ACR 流水线,测试漏洞重新引入攻击。结果显示模板式攻击无效甚至引发怀疑,而新提出的 LLM 辅助 refinement 攻击成功率达 32/33(97%),利用攻击者可反复迭代、防御者仅有一次检测机会的不对称性。作者据此强调不应过度依赖 ACR,需保留人工监督与贡献者信任机制。

AI推荐理由 arXiv 论文(v3,2026-09-12 修订),作者来自软件工程与安全领域,方法明确:跨 6 个 LLM、5 种 framing 条件的大规模探索性研究,并在 20 个真实项目、33 个 CVE 上评估 Claude Code 与 CodeRabbit 两条 ACR 流水线。核心新信息是提出 LLM 辅助的 refinement 攻击,在 32/33(97%)案例中成功,而模板式攻击无效甚至反噬,并指出攻防不对称(攻击者可对本地克隆迭代优化,防御者只有一次检测机会)。对 Agent 安全、CI/CD 供应链风险与代码审查落地有直接参考价值。局限:结论基于特定流水线与 CVE 样本,未提供跨模型泛化与真实生产部署的验证。

82

正文

Computer Science > Software Engineering arXiv:2603.18740 (cs) [Submitted on 19 Mar 2026 (v1), last revised 12 Sep 2026 (this version, v3)] Title:Measuring and Exploiting Contextual Bias in LLM-Assisted Security Code Review Authors:Dimitris Mitropoulos, Nikolaos Alexopoulos, Georgios Alexopoulos, Diomidis Spinellis View a PDF of the paper titled Measuring and Exploiting Contextual Bias in LLM-Assisted Security Code Review, by Dimitris Mitropoulos and 3 other authors View PDF HTML (experimental) Abstract: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. Subjects: Software Engineering (cs.SE); Artificial Intelligence (cs.AI); Cryptography and Security (cs.CR) Cite as: arXiv:2603.18740 [cs.SE] (or arXiv:2603.18740v3 [cs.SE] for this version) https://doi.org/10.48550/arXiv.2603.18740 Focus to learn more arXiv-issued DOI via DataCite Submission history From: Georgios Alexopoulos [view email] [v1] Thu, 19 Mar 2026 10:40:27 UTC (350 KB) [v2] Thu, 23 Apr 2026 15:04:19 UTC (466 KB) [v3] Sat, 12 Sep 2026 16:58:07 UTC (513 KB) Full-text links: Access Paper: View a PDF of the paper titled Measuring and Exploiting Contextual Bias in LLM-Assisted Security Code Review, by Dimitris Mitropoulos and 3 other authors View PDF HTML (experimental) TeX Source view license Current browse context: cs.SE new | recent | 2026-03 Change to browse by: cs cs.AI cs.CR References & Citations NASA ADS Google Scholar Semantic Scholar export BibTeX citation Loading... BibTeX formatted citation × loading... Data provided by: Bookmark Bibliographic Tools Bibliographic and Citation Tools Bibliographic Explorer Toggle Bibliographic Explorer (What is the Explorer?) Connected Papers Toggle Connected Papers (What is Connected Papers?) Litmaps Toggle Litmaps (What is Litmaps?) scite.ai Toggle scite Smart Citations (What are Smart Citations?) Code, Data, Media Code, Data and Media Associated with this Article alphaXiv Toggle alphaXiv (What is alphaXiv?) Links to Code Toggle CatalyzeX Code Finder for Papers (What is CatalyzeX?) DagsHub Toggle DagsHub (What is DagsHub?) GotitPub Toggle Gotit.pub (What is GotitPub?) Huggingface Toggle Hugging Face (What is Huggingface?) ScienceCast Toggle ScienceCast (What is ScienceCast?) Demos Demos Replicate Toggle Replicate (What is Replicate?) Spaces Toggle Hugging Face Spaces (What is Spaces?) Spaces Toggle TXYZ.AI (What is TXYZ.AI?) Related Papers Recommenders and Search Tools Link to Influence Flower Influence Flower (What are Influence Flowers?) Core recommender toggle CORE Recommender (What is CORE?) Author Venue Institution Topic About arXivLabs arXivLabs: experimental projects with community collaborators arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website. Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them. Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs. Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

来源报道 · 1 篇 · 以下链接均前往原始媒体

← 返回精选动态 原文

更多内容