SPILLWAY stops prompt injection with a set lookup: 0% ASR on 12 cells, almost no extra model calls

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

Woosang Lim, Yeseul Chang, Jaewoo Lee

KAIST / Chung-Ang University

NeurIPS 2026)

cs.CR, cs.AI

2026-11-05

A deterministic set lookup over typed tool returns replaces model-based checks: zero attack success on 12 AgentDojo cells, top utility under attack, under one judge call per episode.

What problem this solves

Tool-using agents already act on real email, calendars, files, and payments. Anyone can plant an instruction in a web page, shared document, or email body, and the agent will execute it with the user's authority: forward data, pay an account, invite a stranger. That is indirect prompt injection.

Most runtime defenses put a language model on the decision that lets an action through. Progent has a model write the privilege policy, MELON re-runs the trajectory with the user task masked to detect hijacks, DRIFT validates each call against a plan. Two problems follow: the deciding model has itself read the injected text, and every step pays extra model calls. On AgentDojo these three still leak on 7 to 11 of 12 backbone-by-suite cells, and on qwen3:8b they add 2.2 to 13.6 backbone calls per benign episode. Provenance defenses such as CaMeL and ROPE keep the model off the final check, but each task first needs a planner or router model.

SPILLWAY starts from a structural observation: where an action goes is already written in the tools' typed returns. A sender or a payment account arrives in a typed field; an injected instruction can only live in free text like a body or description. Separate the two and the last gate needs no model at all.

Method

SPILLWAY guards two boundaries plus a bounded judge.

The coupling matters. In the ablation, the judge without the sanitizer approves the attacker's account on a pay-the-bill task, the system's only executed leaks (.028 on Banking). The sanitizer without the judge lifts Slack and Travel utility by .105 and .100. With both, all four suites on qwen3:8b hold zero at mean utility .370 versus .300 for the floor alone.

Results

Main grid: AgentDojo v1.2.2, three backbones (gpt-4o-mini, qwen3-coder:30b, qwen3:8b) across four suites, twelve-cell means:

Methodin-scope ASR ↓Utility under attack ↑Benign utility ↑Leaking cells
Undefended.305.417.54012/12
SPILLWAY.000.489.5390/12
ROPE.005.345.3953/12
DRIFT.016.453.4607/12
Progent.031.371.43711/12
MELON.094.314.52610/12

SPILLWAY is the only defense in the grid with zero across all twelve cells, at the highest under-attack utility and the best composite scores (NRP .539, ERS .700), while keeping 99.8% of the undefended agent's benign utility. With zero hits over 2,847 attacked pairs, the pooled one-sided 95% Clopper-Pearson upper bound is 0.1%. Cost on qwen3:8b benign traffic: at most about 0.4 added model calls per episode and under 0.5 s of extra wall-clock, against 3.25 to 9.91 added calls and 1.6 to 22.7 s for MELON, Progent, and DRIFT.

It holds under stronger attacks. ChatInject's forged chat template produces zero raw hits over 665 pairs and recovers utility the hijack destroys (Slack .095 to .286, Workspace .052 to .396). AutoDojo's optimizer-built injections leave zero executed effects over 389 pairs, though two rules were written on the four pairs the earlier build failed, so that panel is descriptive; two held-out Banking sets come in at .007 and .000. The released RL attacker PISmith breaks the undefended agent at .568 and five of six baselines at .025 to .489; SPILLWAY averages .005 with utility .257, ahead of the closest ROPE (.007 at .173). An attacker-as-sender variant that dirties the typed sender field also lands zero over 126 pairs. Head-to-head against ROPE with its authors' Opus 4.8 router on seven delegated-routing suites, SPILLWAY is zero everywhere with higher utility on every suite (.550 vs .468 mean), while ROPE leaks on three.

Why it matters

For teams building agent products this is a deployable engineering pattern: a deterministic layer in front of the agent, no backbone re-runs, negligible latency, open code, and an SDK on PyPI (spillway-guard 1.0.0). It takes the admit decision away from models, which removes both the failure mode where the judge is itself injected and the per-step bill. The prerequisite is explicit: tools must return typed schemas with identity fields, and each new tool set needs its role lexicon written once (here 11/22/10/11 verb prefixes plus 19 target-argument names). Standardized interfaces such as MCP supply exactly that prerequisite.

Limitations

The authors scope the guarantee to identity targets. An injection that steers an effect to a legitimate identity, such as an existing contact or the payee of a bill the user asked to pay, is left to the sanitizer and judge; injected content sent to a legitimate target or into the final answer is a content effect no target check bounds. An attacker who writes a typed field, by sending the email itself, puts its own address into the index; the test passed only because the injected body repeats the address in free text, and an instruction naming the attacker only by role was not tested. The role lexicon is hand-written per benchmark. The judge, the delegation rules, and the lexicon are the surface an adaptive attacker would target.

Two more points from reading the paper: each main-grid cell runs once (seed 42), though 27 seed-replication runs of SPILLWAY stayed at zero with per-suite utility standard deviation at most .041; and in-scope ASR is a scoring level the paper defines itself (it drops one content-manipulation task, and its collision filter removed no hit anywhere). SPILLWAY is zero at the raw level too, so the custom level flatters nothing, but cross-paper comparisons should mind the definition.

Terms

Source

Related papers

All paper explainers