Chiosa
AI Security & Safety

A defense stops tested agent redirects to unauthorized targets

SPILLWAY: Separating Target Admission from Sanitization to Defend Tool-Using Agents against Prompt Injection · arXiv:2611.07222

3 min
Updated

In plain words

SPILLWAY is a defense for AI agents that read emails, pages, or documents and then use tools. It checks whether a proposed destination was named by the user or came from a trusted identity field, and removes certain instruction-like text before the agent reads it.

In tests where injected text tried to redirect an action, no tested model-and-suite combination executed an unauthorized redirect. The result applies to those tests and that kind of redirection.

The research

An agent may be allowed to send a message or make a payment while attacker-written text quietly changes the destination. That makes the destination check consequential: it must catch targets the user did not authorize without treating every address found in a document as forbidden. SPILLWAY tests one way to draw that line.

SPILLWAY is a runtime defense that checks where tool actions can go and removes instruction-like text before an agent reads it.

AgentDojo tests tool-using agents with injected instructions; its in-scope rate counts attacked pairs where an injected action executes at a target the user never named. SPILLWAY faced the standard attack across three models and four suites, with results averaged over 12 model-by-suite cells.

No cell had an executed redirect. Mean task success during attacks was 0.489, the highest among evaluated defenses, supporting a joint result of blocked measured redirects and retained task completion in this grid.

The guarantee is limited to target identities under the stated threat model. It does not cover attacker-controlled typed identity fields, targets absent from tool output, or injected content sent to a legitimate target.

What the evidence shows

  • Two checks address redirection

    SPILLWAY is a runtime defense for tool-using agents facing indirect prompt injection: instructions hidden in content they read can redirect an action. It separates two checks.

    A fixed target check determines where an action may go, while rule-based sanitization removes matched instruction-like text before the agent reads it. A restricted local judge can reconsider some calls that the target check refused.

  • The standard test found no redirects

    AgentDojo tests tool-using agents on tasks with injected instructions; its in-scope attack rate counts attacked pairs where an injected effect actually executes at a target the user never named. The standard attack covered three models and four suites.

    SPILLWAY’s rate was 0.000 in all 12 model-by-suite cells, so no tested cell had an executed unauthorized redirect under this measure.

  • Task success remained comparatively high

    The same test grid measured whether agents still completed tasks during attacks. SPILLWAY’s mean task-success rate was 0.489 across the 12 cells, the highest among the evaluated defenses.

    This supports a bounded joint finding: in this grid, SPILLWAY stopped the measured unauthorized redirects while retaining task success. The mean does not describe every model-and-suite cell.

  • Sanitization constrains judge recovery

    On qwen3:8b, adding the sanitizer alongside the judge closed leaks seen when the judge could restore refused calls without it: the full system had no executed unauthorized targets across four suites. This supports the sanitizer’s role in restricting recovery in this component test.

  • One replay extends the evidence

    A separate replay tested a released attacker trained with reinforcement learning. On gpt-4o-mini across four AgentDojo suites, SPILLWAY’s mean in-scope attack rate was 0.005, compared with 0.007 for ROPE, the lowest rate among the other evaluated defenses.

    This extends the evidence to one replayed attacker setting, while leaving the guarantee tied to the paper’s stated target and threat boundaries.

Deep

Next paperA small RAG detector uses context to spot hidden attacks