← Lab /AI/ML

AgentBouncer cuts SE agent attack success to 10.6% while preserving task performance

AgentBouncer reduces attack success rate of software engineering agents to 10.59% with negligible impact on benign tasks

AI/ML arXiv 23 Nov 2026 Defense Prototype evidence Threat model

Published as “AgentBouncer: Defending Software Engineering Agents via Dynamic System-Call Mediation”

Why it matters

AgentBouncer can be deployed as a system-level guard for SE agents, preventing environment-level attacks with only small time and cost penalties.

Summary

AgentBouncer cuts the attack success rate from 99.41% to 10.59% while keeping task success comparable to an unsupervised agent (72.94% vs 71.47%). It mediates system calls at runtime using an LLM arbiter, blocking malicious actions before they execute. Across 340 crafted attacks the defense still lets 36 attacks succeed and incurs a modest overhead of 47 s and $0.0036 per run. The evaluation compares against six prior defenses and shows a better security-utility trade-off.

What they found 2

  1. AgentBouncer reduces attack success rate from 99.41% to 10.59% across 340 attacks

    “Across all 340 attacks, AgentBouncer reduces the attack success rate (ASR) from 99.41% for an unsupervised agent to 10.59%.”

  2. Runtime overhead is modest: 47 s added time and $0.0036 LLM cost per run

    “On average, AgentBouncer adds 47 s of time and USD 0.0036 in LLM costs to an unsupervised agent”

Caveats 5

  • AgentBouncer still allows 36 of 340 attacks to succeed, yielding an ASR of 10.59%.
  • Policy cache can over-allow system calls, accounting for 2 of the 36 successful attacks.
  • The defense does not aim to prevent the misalignment or manipulation of the LLM itself, but only their harmful effects.
  • Attacks that do not use the agent at all, such as direct attacks on the HTTPS protocol stack, are out of scope.
  • We assume the OS kernel, the installed system tools, and the LLM provider to be trusted.

What’s new here 4

  • Mediates system calls at runtime rather than only inspecting the agent's prompt or tool calls.
  • Uses an LLM arbiter that reasons about necessity and safety of each system call in context.
  • Introduces a pre-seeded profile and hierarchical caching to keep LLM arbitration overhead low.
  • Provides a dataset of 340 system-call attacks covering four attacker capabilities.

Threat model stated by the source

AdversaryAttacker seeking to damage the development environment, steal or destroy user data, take control of the environment, or misuse it against third parties
CapabilityPrompt injection, malicious agent tool, poisoned environment, poisoned repository
AssumesUser is trusted to submit legitimate tasks; Agent scaffold, OS kernel, system tools, and LLM provider are trusted; Agent and its LLM may be misaligned or manipulated but are not malicious themselves