# SPILLWAY checks where an AI agent’s next action will go

An assistant that can read a mailbox and send a message has two very different jobs. It must understand what it reads, and it must decide whether it is allowed to contact the recipient it has chosen. If a document or message contains instructions written by someone else, combining those jobs in a single model decision can turn reading into an unintended external action. SPILLWAY separates the two checks. It filters the text the model will read and checks the destination again at the point where the tool would execute. [Paper, introduction and Figure 2](https://arxiv.org/pdf/2611.07222v2#page=2)

## What the defense is designed to protect {#threat-model}

The experiments assume that the user's request and the implementations and declared return types of tools are trustworthy. External text a tool reads is untrusted. The defense focuses on an identity that receives an action, such as an email recipient or an account receiving a transfer. Content sent to a legitimate destination and misleading content in a final answer are separate problems. A tool provider that can fill trusted identity fields with attacker-chosen values falls outside the main assumption. The authors test one alteration to this assumption in Appendix C. [Paper, §2 and Appendix C](https://arxiv.org/pdf/2611.07222v2#page=3)

Equation 1 defines the set of candidate target values with evidence in tool output and no corresponding occurrence in the user's text, after normalization. The authors call these values *taint-novel*. A value absent from the user's text can still be legitimate, for instance the verified sender of a message the user wants to answer. The origin of that value, as well as whether the user named it, matters to the next step. [Paper, Equation 1, p. 3](https://arxiv.org/pdf/2611.07222v2#page=3)

## Two checks, joined by a record of removed text {#defense}

On the way out, Algorithm 1 checks targets against an index of identities from structured fields in eligible read-only results. The tool interface declares which fields carry identities. The index is built before results are rendered as prose, and the presence of a value in untrusted free text can defeat an otherwise matching index entry. Granting access and deleting resources have stricter checks tied to the user's instruction. Fixed delegation rules cover some indirect references, such as the contact information of a person specified in the request. Irreversible object operations, such as booking something, receive separate checks. The formal statements in the paper concern identity targets. [Paper, Algorithm 1 and §3.1](https://arxiv.org/pdf/2611.07222v2#page=4)

On the way in, rule-based sanitization removes matched instruction-like passages before the main model reads the result. The removed text remains evidence for the executor. When the deterministic check declines a call, some requests can go to a local judge. The judge asks two questions: whether the destination follows from the user’s request, and whether the request implies the proposed action and its content. Both views must approve. Missing verdicts count as refusal, and a target that appears in removed text cannot reach the judge. The refusal limit constrains that judge path. The paper separately accounts for fixed rules that can admit a call before judgment. [Paper, Figure 2 and §§3.2–3.4](https://arxiv.org/pdf/2611.07222v2#page=5)

## How to read the reported zero {#evaluation}

AgentDojo v1.2.2 supplied four suites covering banking, Slack, travel, and workspace tasks across three model backbones. The evaluation distinguishes a proposed action in a trace from an effect that actually changed the environment. The in-scope attack success rate excludes content-only manipulation and targets the user already named. The last exclusion removed no hits in the breadth grid. Benign utility measures task completion without injection, while under-attack utility measures task completion while an injection is present. The two composite scores combine benign utility with one minus the attack success rate, using a product for NRP and a harmonic mean for ERS. [Paper, §4 and Appendix A](https://arxiv.org/pdf/2611.07222v2#page=6)

| Condition | Benign utility | Under-attack utility | In-scope attack success |
| --- | --- | --- | --- |
| No defense | 54.0% | 41.7% | 30.5% |
| SPILLWAY | 53.9% | 48.9% | 0% |
| ROPE with the agent as router | 39.5% | 34.5% | 0.5% |
| DRIFT | 46.0% | 45.3% | 1.6% |

These are means across 12 model-by-suite cells. Neither the executed-effect score nor its in-scope subset recorded a SPILLWAY hit on that standard test. Assuming the 2,847 attacked pairs are independent, the authors calculate a one-sided 95% upper bound of about 0.1% when pooled, or 2.8% in the smallest cell of 105 pairs. The independence assumption matters when several pairs reuse a common task or injection. In a separate seven-suite comparison combining AgentDojo and AgentDyn, SPILLWAY averaged 55.0% utility under attack and zero in-scope successes, compared with 46.8% and 1.5% for ROPE using its authors’ router. [Paper, Tables 1–2 and 8](https://arxiv.org/pdf/2611.07222v2#page=7)

## What happens when a component is removed {#components}

Table 3 tests the components with qwen3:8b. Its floor arm disables judge recovery for identity targets while retaining delegation rules and the judge for object cases. It had zero observed in-scope successes in all four suites and a mean under-attack utility of 30.0%. Adding identity-target recovery without sanitization raised banking utility from 33.3% to 37.5% while allowing 2.8% in-scope attack success in that suite. The full defense had a mean utility of 37.0% and zero successes. Removing only the record-based veto changed no attack result on this grid, because the model did not propose removed targets when the sanitizer was enabled. This last test does not independently measure the veto’s benefit in a workload where such proposals still occur. [Paper, Table 3 and §5](https://arxiv.org/pdf/2611.07222v2#page=9)

The rare judgment step also changes the cost profile. On benign qwen3:8b traffic, the local judge averaged 0.43 calls per Slack episode and 0.05 per Workspace episode. The authors report wall-clock differences within half a second of the undefended agent on their RTX PRO 6000 setup for those two suites. These are measured serving results, and another model, action mix, or GPU can change the overhead. [Paper, Figure 3 and Appendix B](https://arxiv.org/pdf/2611.07222v2#page=8)

## Stress tests and the limits of the result {#stress-tests}

One forged-chat benchmark recorded zero executed hits in 665 pairs. On AutoDojo, the authors revised rules using four earlier failures, then reported zero on those 389 development pairs. In two separate held-out banking sets of 144 pairs each, they report rates of 1.4% and zero after accounting for a transfer that the benchmark checker missed. On released PISmith variants, replayed without adapting to the live defense and scored only on the first variant for each pair, SPILLWAY averaged a 0.5% in-scope attack success rate and 25.7% under-attack utility. The undefended agent scored 56.8% and 12.8%, respectively. A sender-field variant resulted in zero successful attacks for SPILLWAY over 126 pairs, and the authors describe an untested sender-related condition. [Paper, Table 4 and Appendices A–C](https://arxiv.org/pdf/2611.07222v2#page=9)

The design is related to information-flow control and to defenses such as ROPE that build a routing policy before checking execution. Its distinctive choice is to rely on tool schemas and a fixed vocabulary of roles for the fast path. That vocabulary must be declared for each new tool set. Even a valid destination can receive unwanted content, and the structured check by itself cannot establish the user's full intent. The study's claims apply to the scored target events in the stated trust model and the tested configurations. The paper reports that generative AI assisted with implementation and writing and that the authors verified the results. [Paper, §§6–8 and disclosure](https://arxiv.org/pdf/2611.07222v2#page=10)

## What to measure in a deployment {#implications}

A product team can use the division of responsibility to organize a defensive review. Identify which tools change external state, define the trusted fields they use to derive destinations, and measure completed user tasks alongside executed unauthorized actions. Run a separate policy check for the content of a legitimate action, and keep stronger approval requirements for irreversible changes. This is a deployment implication of the paper, not a measured production outcome. Benchmark scores can help evaluate a policy once the team has verified that its tools meet the underlying trust assumptions. [Paper, §§2–3 and 7](https://arxiv.org/pdf/2611.07222v2#page=3)
