Rust in Everything
← Papers

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

Woosang Lim, Yeseul Chang, Jaewoo Lee

2026-11-17▲ 56arXiv 2611.07222v2Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

SPILLWAY defends tool-using agents by deterministically admitting action targets from typed tool returns and sanitizing instruction-like text before the model reads it, with a bounded judge only for refused calls.

Problem

Tool-using agents read untrusted email, files, and web text, so indirect prompt injection can redirect actions to attacker targets. Many runtime defenses put a language model on the decision that lets an action through, adding model calls and relying on a model that may read attacker text. Provenance defenses keep the model off the final check but require a model to plan or route each task first.

Method

SPILLWAY separates target admission from sanitization. Its egress floor builds a typed identity index from read-only tool returns before serialization and admits a side-effecting call when every taint-novel target value is in that index and not repeated in free text, or when a fixed delegation rule covers it. Grants and unauthorized destructive calls are refused, and the judge never reopens grants. An ingress sanitizer removes forged chat-template turns and instruction-like regions matched by fixed rules, retaining removed spans as evidence. A local temperature-0 judge re-examines only refused targets outside removed text from routing and payload views and fails closed.

Results

  • Across the twelve backbone-by-suite AgentDojo cells, SPILLWAY reaches in-scope attack success of .000. §5
  • SPILLWAY has the highest utility under attack at .489 and keeps 99.8% of benign utility, versus 73% for ROPE with the agent as its router. §5
  • MELON, Progent, and DRIFT leak on ten, eleven, and seven of the twelve cells, and ROPE leaks on all three Slack cells. §5
  • Under a forged chat template in-scope attack success is .000, and under PISmith it averages .005. §6
  • In the delegated-routing grid, SPILLWAY has mean UAU/ASR .550/.000, versus .468/.015 for ROPE with an Opus 4.8 router and .361/.013 with a gpt-4o-mini router; NRP and ERS are .550/.699 versus .462/.627 and .357/.519. §A

Limitations

  • The guarantee is scoped to identity targets: an injection that steers an effect to a legitimate identity is left to the sanitizer and judge, and a target that never appears verbatim in tool output falls outside P1.
  • An attacker who writes a typed field, for example by sending an email, puts its own address into the typed identity index.
  • Target roles come from a lexicon written once per benchmark, so a new tool set needs its roles declared.
  • The judge, delegation rules, and lexicon are the surface an adaptive attacker would target; the paper says four AutoDojo pairs on the P3 path already exercise this.

Key points

  • Agents cross ingress and egress boundaries; identities arrive in typed fields while injected instructions arrive as free text. §1
  • The egress floor is a set lookup over typed identities and needs no per-task plan; its refusals are the same under every backbone. §3.1
  • Only read-only returns are indexed, and a read whose own arguments are taint-novel adds nothing. §3.1
  • The floor refuses an email or URL in free text even when it matches a real contact; typed sender fields can still admit a reply. §3.1
  • The ingress sanitizer removes forged chat-template turns and instruction-like regions with fixed rules and keeps removed spans as evidence. §3.2
  • The two-view judge sees only refused calls, is vetoed by removed spans, runs at temperature 0, and fails closed. §3.3
  • P2 says the judge affects safety only through refused calls outside removed spans; P3 leaves delegation rules or two-view judge approval as remaining admission paths. §3.4
  • SPILLWAY reports no defense-triggered backbone re-run and almost no added model call. §Abstract

Mind map

SPILLWAY
Problem
Indirect prompt injection
Model-based runtime defenses add calls
Provenance needs planner or router
Egress floor
Typed identity index from read-only returns
Taint-novel target set lookup
Grants and destructive calls stricter
Delegation rules
Ingress sanitizer
Fixed rules, no model call
Removes forged chat turns
Retains removed spans as evidence
Recovery judge
Only refused targets
Routing and payload views
Span veto
Temperature 0, fails closed
Guarantees
P1 typed-identity lookup soundness
P2 bound for any judge
P3 remaining admission paths
Evaluation
AgentDojo twelve cells
AgentDyn delegated routing
PISmith RL attacker
Forged chat template