arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.38799cs.CRcs.SE
收藏

CARI:编码智能体工作流中的跨边界对抗运行时注入

CARI: Cross-Boundary Adversarial Runtime Injection in Coding-Agent Workflows

Stevens Institute of Technology(史蒂文斯理工学院);University of Connecticut(康涅狄格大学);Cisco Research(思科研究)

Jie Fu, Shuang Wu, Ashish Kundu, Wendy Hui Wang, Yuan Hong

AI总结:

该研究提出CARI跨边界对抗运行时注入方法,利用编码智能体工作流中组件的权限不匹配,在运行时反馈中嵌入恶意指令,在多语言、多模型及产品级智能体上攻击成功率高,而提示级防御存在安全效用权衡。

摘要:

编码智能体越来越多地开发、测试和集成由不同开发者、团队或服务拥有组件的软件,这暴露了一个独特的攻击面:恶意或被攻陷的对等开发角色可操纵正在开发的软件的实时组件(例如后端服务、测试工具、CI作业或部署服务),并影响另一角色的编码智能体完成任务所需处理的运行时反馈。尽管此类组件具有报告自身状态的合法诊断权限,但它对受害者的本地文件、凭证、shell或开发环境无操作权限。我们提出跨边界对抗运行时注入(Cross-Boundary Adversarial Runtime Injection,CARI),这是一种利用该权限不匹配的直接运行时反馈注入场景。攻击者并非明确攻陷受害者的提示、模型、工具或本地环境,而是在对等控制的开发组件产生的与任务相关的运行时反馈中秘密嵌入恶意指令。受害者会将该反馈解读为正常调试或恢复的一部分,可能将诊断指导转化为受害者侧的未授权操作。我们基于CARI实例化了10种不同的攻击,涵盖资源耗尽、信息泄露和开发状态操纵。在4种编程语言和5种具备代码能力的模型上,CARI在2845/3000(94.8%)次试验中成功。此外,CARI可有效迁移至产品级编码智能体,在Codex上实现61.3%的攻击成功率,在Claude Code上实现58.7%的攻击成功率。相比之下,提示级防御存在安全-效用权衡:通用警告无效,而明确策略虽能抑制攻击,但会过度拒绝合法操作。

英文摘要:

Coding agents increasingly develop, test, and integrate software whose components are owned by different developers, teams, or services. This exposes a distinct attack surface: a malicious or compromised peer development role can manipulate a live component of the software under development (e.g., a backend service, test harness, CI job, or deployment service) and influence the runtime feedback that another role's coding agent must process to complete its task. Although such a component has legitimate diagnostic authority to report its own state, it has no action authority over the victim's local files, credentials, shell, or development environment. We introduce Cross-Boundary Adversarial Runtime Injection (CARI), a direct runtime-feedback injection setting that exploits this authority mismatch. Rather than explicitly compromising the victim's prompt, model, tools, or local environment, the attacker covertly embeds malicious instructions in task-relevant runtime feedback produced by a peer-controlled development component. The victim then interprets that feedback as part of normal debugging or recovery, and may translate the diagnostic guidance into unauthorized victim-side actions. We instantiate ten different attacks based on CARI, spanning resource exhaustion, information exposure, and development-state manipulation. Across four programming languages and five code-capable models, CARI succeeds in 2,845/3,000 (94.8%) trials. Furthermore, CARI transfers effectively to product-level coding agents, achieving 61.3% attack success on Codex and 58.7% on Claude Code. By contrast, prompt-level defenses exhibit a security-utility trade-off: generic warnings are ineffective, whereas explicit policies suppress attacks but substantially over-refuse legitimate actions.

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

↑