MOSAIC-Bench:衡量编码智能体中的组合性漏洞诱导
MOSAIC-Bench: Measuring Compositional Vulnerability Induction in Coding Agents
AI总结:
MOSAIC-Bench通过199条三阶段攻击链衡量编码智能体在分解任务中的漏洞诱导,发现生产智能体端到端攻击成功率达53%-86%,并验证了将审查者重构为渗透测试者可显著降低规避率。
摘要:
编码智能体常常能通过逐提示的安全审查,但当其任务被分解为常规工程工单时,却会交付可利用的代码。这一挑战是结构性的:现有的安全对齐仅孤立地评估显式请求,使得模型对通过顺序遵从看似无害的请求而涌现出的恶意最终状态视而不见。我们提出了MOSAIC-Bench(恶意目标按无害遵从排序),这是一个包含199条三阶段攻击链的基准,配有在已部署软件基底(10个Web应用基底、31个CWE类别、5种编程语言)上的确定性利用预言机,该基准将利用真实性和下游审查者协议均作为一级评估轴。在此基准上,来自Anthropic、OpenAI、Google、Moonshot、智谱和Minimax的九个生产编码智能体以53%-86%的端到端攻击成功率组合无害工单,且在所有分阶段运行中仅有两次拒绝。在针对四个前沿Claude/Codex智能体的匹配直接提示实验中,易受攻击输出率降至0-20.4%:Claude主要拒绝,而Codex主要加固而非发出易受攻击的实现——工单分阶段同时压制了这两种防御模式。在下游,代码审查智能体将25.8%的这些已确认易受攻击的累积差异作为常规PR批准,而全上下文实现协议仅缩小了50%的分阶段/直接差距,排除了上下文碎片化作为唯一解释。作为一种可部署但非自适应的缓解措施,将审查者重新框定为对抗性渗透测试者可在所评估的审查者子集上降低规避率;渗透测试框架下的规避率范围为3.0%至17.6%,且在此框架下,一个开放权重的Gemma-4-E4B-it审查者在608个真实世界GitHub PR上以4.6%的假阳性率检测到数据集中88.4%的攻击。
英文摘要:
Coding agents often pass per-prompt safety review yet ship exploitable code when their tasks are decomposed into routine engineering tickets. The challenge is structural: existing safety alignment evaluates overt requests in isolation, leaving models blind to malicious end-states that emerge from sequenced compliance with innocuous-looking requests. We introduce MOSAIC-Bench (Malicious Objectives Sequenced As Innocuous Compliance), a benchmark of 199 three-stage attack chains paired with deterministic exploit oracles on deployed software substrates (10 web-application substrates, 31 CWE classes, 5 programming languages) that treats both exploit ground truth and downstream reviewer protocol as first-class evaluation axes. On this benchmark, nine production coding agents from Anthropic, OpenAI, Google, Moonshot, Zhipu, and Minimax compose innocuous tickets at 53-86% end-to-end ASR with only two refusals across all staged runs. In a matched direct-prompt experiment over four frontier Claude/Codex agents, vulnerable-output rates fall to 0-20.4%: Claude primarily refuses, while Codex primarily hardens rather than emitting the vulnerable implementation - ticket staging silences both defense modes simultaneously. Downstream, code reviewer agents approve 25.8% of these confirmed-vulnerable cumulative diffs as routine PRs, and a full-context implementation protocol closes only 50% of the staged/direct gap, ruling out context fragmentation as the sole explanation. As a deployable but non-adaptive mitigation, reframing the reviewer as an adversarial pentester reduces evasion across the evaluated reviewer subset; pentester framed evasion ranges from 3.0% to 17.6%, and an open-weight Gemma-4-E4B-it reviewer under this framing detects 88.4% of attacks on the dataset with a 4.6% false-positive rate measured on 608 real-world GitHub PRs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。