SPILLWAY: a deterministic prompt-injection defense for tool-using agents
SPILLWAY defends tool-using agents against prompt injection by admitting an action's target (an email recipient, a payment account) only if it came from the user's task or a typed field returned by a read-only tool. A deterministic sanitizer also strips…
Why it matters
It gives builders of agents that touch email, files or payments an auditable defense that does not rely on another model's judgment.
What happened
1 min readSPILLWAY defends tool-using agents against prompt injection by admitting an action's target (an email recipient, a payment account) only if it came from the user's task or a typed field returned by a read-only tool. A deterministic sanitizer also strips instruction-like text before the model reads it. Across three backbones and seven task suites, no standard templated injection redirected an action to an attacker, with almost no extra model calls.
Our analysis
Relying on typed fields rather than free text is simple and practical, and it avoids defenses that depend on an LLM that may itself read the attack. Evaluation is mostly against templated injections plus one released RL attacker, so stronger adaptive attacks could change the picture. It controls where actions go, not what they contain. Worth trying in any serious agent project.