Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

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…

Published Read the original
SPILLWAY: a deterministic prompt-injection defense for tool-using agents

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 read

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 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.

inscraper analysis

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.

More in Research