arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.05647cs.AIcs.CLcs.CYcs.HC
收藏

与“敌人”编码:人类开发者能否检测到AI代理的破坏行为?

Coding with the Enemy: Can Human Developers Detect AI Agent Sabotage?

Northeastern University(东北大学)

Jingheng Ye, Huiqi Zou, Simon Yu, Weiyan Shi

AI总结:

通过大规模用户实验,研究人类开发者在长时间编码任务中检测AI代理恶意代码插入的能力,发现94%的开发者未能识别破坏,并分析其原因,提出安全监控设计建议。

摘要:

AI编码代理越来越多地嵌入到现实世界的软件开发中,与人类开发者协作,同时获得对代码库和工具的更广泛访问权限。这创造了一个新的攻击面:代理可以利用人类信任来破坏开发,例如通过插入恶意代码来完成隐藏的附带任务。大多数先前的工作研究AI-only环境中的AI破坏,对人类监督在检测和减轻此类恶意行为中的作用关注有限。为填补这一空白,我们进行了首个关于AI编码破坏中人类监督的大规模研究。超过100名参与者与四个前沿模型(Claude-Opus-4.6、GPT-5.4、Gemini-3.1-Pro和MiniMax-M2.7)之一合作,完成一项持续约五小时的长周期编码任务,旨在模拟真实工作流程。我们发现94%的开发者未能检测到破坏,我们对参与者反馈的分析将这一脆弱性归因于最小化的代码审查、合理的掩护故事以及对代理的过度信任。我们进一步测试了安全监控器在一种条件下的有效性:虽然监控器降低了破坏成功率,但仍有56%的参与者接受了恶意代码,忽略了其警告。根据参与者反馈,我们为更好的监控器设计提供了可操作的建议。这项工作补充了现有的AI安全研究,并强调了迫切需要以人为本的安全机制,考虑人类因素,特别是在长周期、真实世界的开发环境中。

英文摘要:

AI coding agents are increasingly embedded in real-world software development, collaborating with human developers while gaining broader access to codebases and tools. This creates a new attack surface: an agent can exploit human trust to sabotage development, for instance by inserting malicious code to accomplish a hidden side task. Most prior work studies AI sabotage in AI-only settings, paying limited attention to the role of human oversight in detecting and mitigating such malicious behavior. To address this gap, we conduct the first large-scale study of human oversight in AI coding sabotage. Over 100 participants collaborate with one of four frontier models (Claude-Opus-4.6, GPT-5.4, Gemini-3.1-Pro, and MiniMax-M2.7) on a long-horizon coding task lasting around five hours, designed to mimic real-world workflows. We find that 83/88 (94%) of developers in the no-monitor conditions fail to detect sabotage, and our analysis of participant feedback attributes this vulnerability to minimal code review, plausible cover story, and overtrust in agents. We further test the effectiveness of a safety monitor in one condition: while the monitor reduces sabotage success, sabotage still succeeds in 9/16 (56%) of sessions with a correct monitor alert. Drawing on participant feedback, we offer actionable suggestions for better monitor design. This work complements existing AI safety research and highlights an urgent need for human-centric safety mechanisms that account for human factors, particularly in long-horizon, real-world development settings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑