Agent 与自动化 4.0 · 优秀 2026-11-23 · 论文

AgentBouncer: Defending Software Engineering Agents via Dynamic System-Call Mediation

SE Agent 既有防御只看 prompt 与调用序列,不看环境里真正执行的动作AgentBouncer 运行时仲裁 Agent 经工具调用触发的系统调用:LLM 仲裁器按必要性与安全性裁决,拒绝不安全调用;越不必要的调用,放行所需安全置信度越高;预置规则与缓存把仲裁限制在关键决策以控开销在 340 个开发环境攻击加 SWE-bench Verified 良性任务上,攻击成功率从 99.41% 降到 10.59%,比现有最优防御低 18-74 个百分点,良性工具调用失败率仅 0.25%,每任务只多 47 秒和 0.0036 美元,为最近运行时防御的 1/4.5 时间1/9.6 成本

打开原文回到归档

AgentBouncer: Defending Software Engineering Agents via Dynamic System-Call Mediation

  • ID: f12afd27
  • 原文链接: https://arxiv.org/abs/2611.30621
  • 作者: Pascal Joos, Michael Pradel
  • 日期: 2026-11-23
  • 更新: 2026-11-23
  • 分类: agents
  • 来源类型: paper
  • 标签: agent-security, runtime-defense, system-calls, sandboxing
  • 质量评分: 4/5
  • 抓取时间: 2026-11-25T04:22:30Z

中文导读

针对软件工程 agent 的运行时防御:现有轨迹分析只看初始 prompt 和工具调用序列,看不到环境里真正执行了什么。AgentBouncer 在系统调用层做动态仲裁——agent 经工具触发的每个 syscall 都经过一个 LLM arbiter,沿必要性和安全性两轴判断:不安全的拒绝,且调用越不必要,放行所需的安全置信度越高;预置策略规则和层级感知缓存把 LLM 仲裁限制在关键决策上以控制开销。在 340 个开发环境攻击(4 类向量)加 SWE-bench Verified 良性任务上,攻击成功率从无监督 agent 的 99.41% 降到 10.59%,比对比的 SOTA 防御低 18.23–73.53 个百分点;良性任务成功率不受损,仅 0.25% 良性工具调用失败;每任务只加 47 秒和 0.0036 美元 LLM 成本,而最接近的同类运行时防御要 4.5 倍时间和 9.6 倍成本。

为什么值得关注

它补的正是轨迹分析的结构盲区:动作落到 syscall 这一层才无法伪装。开销数据(每任务 47 秒 / 0.0036 美元,比同类低一个量级)说明 LLM 参与的运行时仲裁在成本上已经可部署,对要给 coding agent 加沙箱的团队是直接可对照的方案。

关键信息

  • 标题:AgentBouncer: Defending Software Engineering Agents via Dynamic System-Call Mediation
  • arXiv:2611.30621,2026-11-23,cs.CR / cs.MA / cs.SE
  • 问题:SE agent 经工具访问文件/命令/网络,prompt 注入、恶意工具、供应链攻击可让其在环境里实际执行恶意动作;轨迹分析只检查初始 prompt 与工具调用序列,看不到真实执行
  • 方法:运行时仲裁 agent 触发的系统调用;LLM arbiter 沿必要性/安全性两轴判定,必要性越低要求的安全置信度越高;预置规则与层级感知缓存减少 LLM 调用
  • 结果:340 攻击(4 向量)+ SWE-bench Verified 良性任务:攻击成功率 99.41% → 10.59%,比 SOTA 低 18.23–73.53pp;良性任务成功率保持,0.25% 良性调用失败;每任务 +47s / $0.0036,最近同类防御为 4.5× 时间、9.6× 成本

English Summary

AgentBouncer is a runtime enforcement system for software-engineering agents that mediates, and when necessary denies, the system calls agents trigger via tool calls, closing the gap left by trajectory analysis that inspects only the initial prompt and tool-call sequence but not what actually executes in the environment. An LLM arbiter judges each syscall along two axes, necessity and safety; unsafe calls are denied, and the less necessary a call appears, the more safety certainty is required to allow it. Preseeded policy rules and hierarchy-aware caching invoke the arbiter only for key decisions. On 340 attacks against the development environment across four vectors plus benign SWE-bench Verified tasks, the attack success rate drops from 99.41% (unsupervised agent) to 10.59%, 18.23-73.53 percentage points below competitive defenses, while task success is preserved (only 0.25% of benign tool calls fail), at 47 seconds and USD 0.0036 per benign task versus 4.5x the time and 9.6x the cost for the closest existing runtime defense.

Obsidian Notes

  • 元数据与摘要由 opencli arxiv paper 2611.30621 -f json 抓取(abstract 全文锚定)。
  • 中文导读、关键信息与 English Summary 锚定在摘要声明的设置与数字上(标题一致性已程序断言)。