Skip to main content
GW
HomeWorkAI appsPapersAboutNotesStackLabPilotPlan↗ (opens in a new tab)INVST↗ (opens in a new tab)
Govind Waghmare

Finance systems and AI. Building in public from NYC.

Resume (PDF)Book 20 minEmail
HomeNotesWorkAboutStackPapersLabFor founders
XLinkedInGitHubllms.txt
© 2026 · New York City

Keyboard shortcuts

?
Open this list
g then h
Go to Home
g then w
Go to Work
g then n
Go to Notes
g then a
Go to About
c
Ask the AI guide
Esc
Close this list
Original paperSection A, The abstract
Open in new tab (opens in a new tab)
All papers
AI safety and controls

Check where an AI agent sends things, with plain code

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

Woosang Lim, Yeseul Chang, Jaewoo Lee · arXiv preprint (SAINT Machines, KAIST, Chung-Ang University) · Posted 4 Nov 2026 · 14 min read · arXiv 2611.07222

Share this paper

LinkedIn (opens in a new tab)X (opens in a new tab)WhatsApp (opens in a new tab)EmailDownload PDFExplainer (PDF), 1.1 MB

  • An AI agent reads email, files and web pages, and can act.
  • An attacker hides an instruction in that text.
  • The agent may then send data or pay an account.
  • Most defenses add a second AI model to decide. Attack text can reach it.
0

attacks reached an attacker's target in all 12 cells, under the standard attack.

  • The authors tested on AgentDojo with 3 models and 4 task suites.
  • They added stress tests: forged chat turns, optimized attacks and an RL attacker.
  • They compared with MELON, Progent, DRIFT and ROPE.

  • SPILLWAY was the only defense at zero in all 12 cells.
  • It had the highest utility under attack: .474.
  • It adds under one model call per episode.
  • MELON, Progent and DRIFT add 2.2 to 13.6.
  • A judge model helps only when the sanitizer backs it.

Only SPILLWAY has no attacker-target leak in any cellFrom Table 2
04812Cells (of 12) with an in-scope leakUndefended12 cellsSpotlighting12 cellsProgent11 cellsMELON10 cellsPI detector10 cellsDRIFT7 cellsROPE3 cellsSPILLWAY0 cells

Hover, tap or focus a bar to read its exact value.

DefenseCells with a leak
Undefended12
Spotlighting12
Progent11
MELON10
PI detector10
DRIFT7
ROPE3
SPILLWAY0

  • It guards where an effect goes.
  • It does not stop bad content sent to a good target.
  • New tool sets need declared target roles.
  • If an attacker writes a typed field, the guarantee needs the attacker-as-sender check.

Jump to

  1. A The abstract
  2. 1 Introduction
  3. 2 Threat model
  4. 3.1 The egress check: admission by typed identity
  5. 3.2 Ingress: remove the injection before the model reads it
  6. 3.3 Recovery: a two-view judge for refused targets
  7. 3.4 What the construction guarantees
  8. 4 Experimental setup
  9. 5.1 Results: the breadth grid
  10. 5.2 Results: cost
  11. 5.3 Results: comparison with routed-origin enforcement
  12. 5.4 Results: open-loop replays of three recent attacks
  13. 6 Related work
  14. 7 Limitations
  15. 8 Conclusion
  16. A Appendix A: attack success at every scoring level
  17. B Appendix B: reproducibility
  18. C Appendix C: attacker-as-sender variant
  19. W Words to know

Every detail from the paper

Cards follow the paper's own order. Dotted words link to Words to know. Numbers match the paper.

The risk

  • Tool-using agents act on email, files and payments.
  • An instruction hidden in a web page or shared document can fool an agent.
  • It may send data or money to an attacker.

Today's defenses

  • Many runtime defenses put a language model on the decision that lets an action through.
  • So the decision depends on a model that may read the attacker's text.
  • It also adds model calls to every step.
  • Provenance defenses keep the model off the final check.
  • But they need a model to plan or route each task first.

The key observation

  • Where an action goes can be read from the tools' typed returns.
  • An email's sender or a payment's account arrives in a typed field.
  • Injected instructions arrive as free text.
  • SPILLWAY turns this into a deterministic floor with no per-task plan.

How SPILLWAY works

  • The check admits a call when each target is typed or delegated.
  • The target must appear in tool output but not in the user's task.
  • It must have come from a read-only tool in a typed field.
  • Or a fixed delegation rule must cover it.
  • A deterministic sanitizer removes instruction-like regions before the model reads them.
  • It keeps the removed spans as evidence.
  • A local judge may restore a refused call.
  • Never one whose target is in removed text.

Results

  • Across three backbones.
  • Seven suites on one, the standard injection template never redirects an action under SPILLWAY.
  • Across 12 AgentDojo cells, SPILLWAY leads tested defenses in mean under-attack utility and composite scores.
  • A forged chat template also gives a raw zero.
  • Mean attack success under a released RL attacker stays below one percent.
  • SPILLWAY reaches this with no defense-triggered backbone re-run and almost no added model call.

Why it matters

  • As personal agents act on email, files and payments.
  • SPILLWAY gives an auditable refusal floor on where actions go.
  • It keeps agents useful and holds across backbones.

The problem

  • Tool-using agents read and act across email, calendars, files, chat and payments.
  • They often use standard tool interfaces such as the Model Context Protocol.
  • Every tool result may hold text written by someone else.
  • An attacker plants an instruction in a web page, document or email.
  • The agent may forward data.
  • Pay an account or invite a stranger, with the user's authority.
  • This is indirect prompt injection.

Model-based defenses

  • Many runtime defenses add a language model to the loop.
  • Progent has a model write the privilege policy a checker enforces.
  • MELON re-runs the trajectory with the user task masked to detect a hijack.
  • DRIFT validates each call against a plan.
  • Others verify each action before it commits.
  • The decision then depends on a model that may read the injected text.
  • It also adds model work to every step.

Provenance defenses

  • Provenance defenses keep the model off the final check but move it earlier.
  • CaMeL has a planner write a program whose data flow an interpreter checks.
  • In ROPE, a router model reads each request.
  • It sets which sources and user-given values the task may use.
  • A deterministic origin check then enforces it.
  • On AgentDojo, MELON, Progent and DRIFT still leak on 7 to 11 of 12 cells.
  • On qwen3:8b they add 2.2 to 13.6 backbone calls per benign episode (Figure 3).

The idea

  • The authors show that most targets can be read from typed tool returns.
  • The user's task also helps.
  • Fixed delegation rules and a bounded judge handle the rest.
  • An agent crosses two boundaries.
  • At ingress, untrusted text enters its context. The system decides which parts are instructions.
  • At egress, a call produces an effect.
  • The system decides if the recipient, account or file is one the user named.
  • Tools already type fields that carry identities.
  • An email's sender, a channel's members, a payment's recipient.
  • An injection writes free text such as a body or description.
  • Section 2 covers the one benchmark vector that fills a channel name.
  • Reading admitted identities from typed objects, before serialization.
  • Separates targets the tools made from targets an attacker wrote.
  • This is a set lookup.

SPILLWAY in short

  • SPILLWAY (Figure 2) is a real-time, deterministic-first hybrid.
  • It makes the two decisions separately and joins them through evidence.
  • The egress floor admits a side-effecting call under one condition.
  • Each target value in tool output but not in the task must be typed.
  • It must have come in a typed identity field.
  • It must not be repeated in free text.
  • The ingress sanitizer removes forged chat turns and instruction-like regions before the model reads them.
  • It keeps what it removed as evidence.

The judge

  • A local judge re-examines only calls the floor refused.
  • So it can recover delegated work.
  • Such as a reply to an address found in a document.
  • It is never asked about a target inside the removed evidence.
  • So the judge can recover utility only for targets outside removed spans (P2, Section 3.4).
  • A refused target returns only through a fixed delegation rule.
  • Or it returns through a judge approval outside the removed spans (P3).

Contribution 1

  • 1) Target admission from typed tool returns, with no per-task routing.
  • The target decision is a set lookup over identities from typed returns, read before serialization.
  • Three rules keep attacker-written values out of the lookup.
  • Under the standard AgentDojo template, attack success is zero.
  • Raw and in-scope, on every backbone-by-suite cell.
  • It is the only defense in the grid to do so.
  • With the highest twelve-cell mean utility under attack (Table 2).
  • It adds no defense-triggered backbone re-run.
  • It adds under one model call and under 0.5 s per episode.
  • MELON, Progent and DRIFT add 2.2 to 13.6 calls.
  • They add up to 22.7 s (Figure 3).

Contribution 2

  • 2) Sanitization coupled to target admission.
  • The judge is the only model allowed to overturn a refusal.
  • The sanitizer's removed text bounds it.
  • It is never asked about a removed target (P1 to P3).
  • Under the template, with both, in-scope attack success is zero on every suite.
  • The sanitizer recovers utility the floor alone gives up.
  • It keeps the judge from admitting an attacker's account (Table 3).
  • A forged chat template also gives a raw zero.
  • Mean attack success under a released RL attacker stays below one percent.

Contribution 3

  • 3) A head-to-head comparison with routed-origin enforcement.
  • SPILLWAY has zero in-scope attack success on all seven delegated-routing suites.
  • Its utility is higher on every suite than ROPE with its authors' router.
  • Which leaks on three.
  • With the agent as its own router, ROPE leaks and loses more utility.
  • Under ChatInject, run without its clamp, ROPE leaks on both suites.
  • SPILLWAY has no raw hit there (Figure 4, Table 4).
  • Under the released RL attacker, replayed open loop (PISmith), mean in-scope attack success is .006.
  • The same check serves all three backbones tested.

Agent, attacker and trust

  • The agent gets a task from the user.
  • Calls typed tools and reads what they return.
  • It may act or answer.
  • The attacker controls the fields that AgentDojo's injection fills with content.
  • These are free text such as an email body or web page.
  • In the Slack suite, they also include the name of one external channel.
  • The index stores a channel name as one whole value.
  • So an address written inside that name never matches a target.
  • No injection task in that suite sends an effect to the external channel.

What the attacker cannot do

  • The attacker does not control the user's task.
  • The tool code, the declared return types or the scorer.
  • A tool provider that writes attacker-chosen values into identity fields is outside this threat model.

Notation (Eq. 1)

  • T is the user's text. T* is its fixed, user-derived spelling normalization.
  • U is the text of tool output.
  • Id() returns the identity values of a text: emails, URLs and whole argument values.
  • Whole values are names, account numbers or channel names.
  • They are casefolded and whitespace-collapsed.
  • A value x is taint-novel when one of its tokens appears in U.
  • But not in T*.
  • Tokens are the emails and URLs it contains.
  • The whole value if it has at least four characters.
  • The executor also collects identity fields of trusted tool returns into a flat set I.

What counts as a security event

  • An injection can make the agent fetch an injected URL.
  • It can send an effect to an unauthorized target.
  • It can send injected content to a legitimate target.
  • It can commit a booking or transfer to an injected object.
  • It can make the agent recommend an injected entity in its final answer.

What the guarantee covers

  • The guarantee concerns the target of an effect.
  • The question: may it reach this recipient or account?
  • Neither the user nor a trusted tool identity field named it.
  • Injected content sent to a legitimate target is a content effect.
  • So is injected text in an answer.
  • So is causality laundering through a later call to an admitted target.
  • All three are outside any target check.

SPILLWAY's two boundariesFrom Figure 2
  1. Tool output may hold injection
  2. CodeSanitizer removes injected text
  3. ModelAgent proposes a call
  4. CodeFloor checks target by lookup
  5. ModelJudge may rescue refusals
  6. Effect runs, or call blocks

Only a refused call whose target is outside removed text can reach the judge.

  • The egress check is called the floor.
  • It decides whether a call's target lies outside the admitted set.
  • For a side-effecting call.
  • It admits the call when every taint-novel value in the target arguments is in I.
  • None of them may be repeated in free text.
  • Values the user named are never taint-novel.
  • For a fixed task, tool history and call.
  • This decision does not depend on any model.
  • Effect targets need whole-value grounding in T* or executed tool evidence.
  • Short resource IDs need user or same-kind typed evidence.
  • A fetch URL must be user-named or returned by an executed read.
  • Sanitized scalar values can show presence, but presence alone gives no authority.
How the identity index I is built
  • I is built from the tools' declared types, never from text.
  • One fixed lexicon per benchmark sets tool and argument roles.
  • Verb prefixes mark read-only, writing, destructive and granting tools.
  • Argument names mark targets and principals.
  • A short list names tools that write only to the user's own calendar or drive.
  • The executor captures each read-only return as the typed object, before serialization for the model.
  • It indexes a value only when its declared field type is an identity format.
  • Formats: email, URI, UUID, hostname, IP.
  • Or its field has a routing role: recipient, sender, participant, channel.

Keeping attacker values out

  • A body, subject or description never enters I.
  • So an address the attacker writes in free text stays taint-novel.
  • Two rules limit what the agent's own calls add.
  • Only read-only returns are indexed, so an allowed write cannot add a value.
  • A read whose own arguments are taint-novel adds nothing.

An example

  • The floor also refuses an email or URL in a free-text field.
  • Even if it matches a real contact.
  • A reply to the sender of an email the task mentioned is taint-novel.
  • But the sender field is typed.
  • The address is in I and the reply goes out.
Grants and destruction
  • Grants are stricter.
  • A call that grants access to a new member is refused.
  • This holds when the member is named only in tool output.
  • No judge reopens it.
  • Event participants and a shared file's recipient count as targets.
  • This holds even when the write lands in the user's own calendar or drive.
  • The identity-target check refuses a deletion unless T asks for it.
  • A deletion of an injected object is also an unrequested commit.
  • The two-view judge may restore it (Section 3.3).
Delegation rules
  • Deterministic rules admit some indirectly named targets.
  • Email delegation needs user-written words covering the whole local part and a known domain.
  • Or it needs exact user-directed-source evidence for that address.
  • A contact attribute of a named entity may qualify.
  • So may a resource owned by the user's account.
  • Repository grants need the task's explicit authorization.
  • These rules use the task, trusted typed evidence and removed spans.
  • They keep the whole-value and source checks.
Effects without an identity target
  • A booking, a fetched page or a recommendation names an object, not a recipient.
  • Each has its own deterministic first rule.
  • An unrequested commit on an injected object is refused.
  • Only the two-view judge may restore it.
  • An irreversible operation under a superlative, such as the largest or the cheapest, is refused.
  • That applies when its object does not win that criterion on the typed listing.
  • An injected endorsement is removed from the final answer.
  • A requested booking of an unnamed object goes to a fail-closed judge that can refuse.
  • A fetch of a URL from tool output goes to the same judge.
  • P1 to P3 concern identity targets.
Algorithm 1: identity-target admission
  • Start with the typed index I as the admitted set A.
  • Find the taint-novel target values Xt and principal values Xp.
  • If Xp is not empty, block: a grantee must be named in T.
  • If the call is destructive and T did not ask, block.
  • If whole-value, short-ID or source checks fail, block.
  • If every Xt is in A and none appears in untrusted free text, allow.
  • If a delegation rule admits every Xt, allow.
  • If recovery preconditions hold, no Xt is in removed spans.
  • Both judge views agree, allow.
  • Otherwise block.
  • Grants and destruction are checked first. Only refused targets outside removed spans reach the judge.

  • The floor stops the effect.
  • But a model that has read an injection keeps working for the attacker.
  • It ignores the user's task.
  • So the sanitizer rewrites what the agent reads next, with rules and no model call.
What it removes
  • It removes forged plain-text role headers.
  • It replaces forged chat-template turns, and the text they wrap, with a marker.
  • Examples are a fabricated system or user turn.
  • It replaces three kinds of text with an inert placeholder.
  • First: a region set off by the benchmark's injection template.
  • Second: tool text that addresses the agent about its task or answer.
  • A forged turn marker, or a dictated tool call.
  • Third: a claim that a payee's account has changed, with the new account.
  • A removed region ends with its match.
  • For a clause addressing the agent, it ends at the end of that return.
  • The data before it stays.
Trust and evidence
  • Trust stays with the first user message.
  • So a forged user turn never becomes trusted.
  • The instruction rules keep what they remove as the span set S.
  • A refused target inside S never reaches the judge (Section 3.3).
  • The index I is built from the raw typed returns, before any rewrite.

  • A strict floor also refuses some legitimate calls.
  • Example: the user asks to send a report to the address in the meeting notes.
  • That address is taint-novel and is refused like an injected one.
  • A judge re-examines the refused call from two views, and both must agree.
  • The routing view asks if the target is a recipient the user's task implies.
  • The payload view asks if the user requested this action and this content.
What the judge may and may not see
  • The judge sees only calls a deterministic rule has already refused.
  • That is a target outside A that no earlier delegation rule admits.
  • It may also be a commit on an object the task did not name.
  • Including a deletion of an injected object.
  • Grant and criterion refusals never reach it.
  • Before either view, deterministic checks reject targets carried by instruction-like clauses.
  • They also reject transfers when the task asks for no payment.
  • These preconditions also limit object-case recovery.
The span veto
  • The judge is bound by what the sanitizer removed.
  • It is not asked at all when the refused target lies in removed text.
  • This is the span veto.
  • Without the sanitizer.
  • The judge approved a transfer to the attacker's account on "pay the bill" (Table 3).
  • With it, that account lies in removed text.
Judge setup and fail-closed rule
  • The judge is a local model called at temperature 0.
  • It fails closed: a missing verdict counts as a no.
  • A refused call returns to the agent as a tool message.
  • The message asks it to re-issue the call with values from the user's request.
  • So the agent can continue the episode.

  • For a fixed task and evidence state.
  • F is the set of target-bearing calls that pass all final deterministic admission checks.
  • R is the set of refused calls that meet the recovery preconditions.
  • With targets outside Id(S).
  • Grants and unauthorized destructive calls are excluded.
  • Three properties of identity-target calls follow from Algorithm 1 and the index rules.
P1: typed-identity lookup soundness
  • Assume the attacker writes only free-text fields (Section 2).
  • Then the lookup refuses every call with an attacker-written target.
  • That means a target in attacker text and not in T*.
  • Reason: such a value is either outside I or repeated in free text.
  • I holds only typed identity fields of read-only returns.
  • Those reads must not be steered by a taint-novel argument.
  • The lookup refuses a target repeated in free text.
  • Rewording the free text keeps the refusal of an attacker identity absent from T*.
P2: a bound that holds for any judge
  • For every judge J and every proposed target-bearing call c.
  • C in F implies c is admitted.
  • And c admitted implies c is in F or in R.
  • With a judge that always refuses, only F is admitted.
  • Reason: the judge sees only refused calls, and only after the span veto.
  • So the judge's size and family affect safety only through R.
  • Which the sanitizer's evidence narrows.
  • Utility can move either way, since an admitted call changes the rest of the episode.
P3: remaining admission paths
  • An attacker target that the lookup refuses can still be admitted in two ways.
  • One way is a deterministic delegation rule.
  • The other is the two-view judge.
  • When preconditions hold and every taint-novel target lies outside Id(S).
  • By P1 the lookup refuses an attacker's target.
  • The span veto limits the judge path.
  • It does not by itself veto a delegation rule.

Settings

  • Both settings use AgentDojo, whose checks serve as the oracle.
  • With hits rescored by executed effect.
  • The breadth setting tests three backbones and four stateful suites.
  • It uses the standard attack.
  • It adds three single-backbone stress tests and a released RL attacker (PISmith) replayed open loop.
  • The delegated-routing setting compares full SPILLWAY with ROPE, the closest defense.
  • It uses the three AgentDyn suites and the four AgentDojo suites, on gpt-4o-mini.
  • Many AgentDyn tasks send effects to recipients read from tool output.
  • The same floor runs in both settings.
  • On AgentDyn it adds declared tool roles and trusted native-application contracts.
  • These cover account bootstrap, local resource and download scope, missing resources and form inputs.
  • Every AgentDojo grid uses suite v1.2.2.
  • It runs the full grid of user and injection tasks for every method.

Scoring: three attack-success levels

  • We report attack success at the in-scope level.
  • It counts an injection that sends an effect to a target the user never named.
  • In-scope takes AgentDojo's raw check and drops two cases no target gate can bound.
  • One case is a target the task T already named (the collision filter.
  • Which removes no hit in any cell).
  • The other is a content-manipulation task that states attacker text.
  • But names no recipient or sink.
  • Neither filter reads defense state.
  • SPILLWAY has no hit at either level on any of the twelve AgentDojo cells.
  • MELON and Progent each leave a raw hit on eleven.
  • Appendix A gives both levels per cell.

Executed effect vs. trace hit

  • A hit counts only when the environment changed.
  • A defense that blocks a call before execution can leave that call in the transcript.
  • Trace-level scoring would count it.
  • The authors apply ROPE's rescoring to every method and every ablation arm.
  • The judge is gemma4:31b in a 4-bit build served locally (Appendix B).

Metrics

  • Benign utility (BU): task success on benign traffic, with no injection.
  • Under-attack utility (UAU): task success while under the injection.
  • Attack success rate (ASR).
  • The fraction of attacked pairs whose injected effect executes, at the in-scope level.
  • Two composites combine robustness (1 minus ASR) with benign utility.
  • Net Resilient Performance (NRP) = BU times (1 minus ASR).
  • Effective Robustness Score (ERS) = the harmonic mean of (1 minus ASR) and BU.
  • They are reported per backbone and suite cell, and as twelve-cell means.

Grid and attacks

  • The breadth backbones are gpt-4o-mini, qwen3-coder:30b and qwen3:8b.
  • The standard attack is AgentDojo's important_instructions template.
  • ChatInject forges chat templates (qwen3:8b, 665 pairs).
  • An attacker-as-sender variant of Workspace changes five emails.
  • The five injection-carrying emails come from the attacker's own address.
  • So the attacker writes the typed sender field the floor reads (qwen3:8b, 126 pairs).
  • AutoDojo injections are optimized for gpt-4o-mini against Progent.
  • They are replayed on Banking, Slack and Travel (389 pairs).
  • No Workspace split in the release).
  • Two held-out Banking sets are added.
  • PISmith, a released RL attacker.
  • Is replayed open loop against every defense on the full grid.

Comparators

  • Head-to-head defenses: MELON, Progent, DRIFT and ROPE, from released code on the same agent.
  • Changes are listed in Appendix B.
  • Progent's policy is written by the cell's own backbone.
  • So is ROPE's router, except where its authors' router is named.
  • CaMeL replaces the agent loop with its own planner, so it is not run.
  • Spotlighting and a prompt-injection detector serve as reference points.
  • SPILLWAY code, per-cell results and seeds are at github.com/saintmachines/spillway.

Only SPILLWAY has zero in-scope leaks across all 12 cellsFrom Table 2
04812Cells (of 12) with an in-scope leakUndefended12 cellsSpotlighting12 cellsProgent11 cellsMELON10 cellsPI detector10 cellsDRIFT7 cellsROPE3 cellsSPILLWAY0 cells

Hover, tap or focus a bar to read its exact value.

DefenseCells with a leak
Undefended12
Spotlighting12
Progent11
MELON10
PI detector10
DRIFT7
ROPE3
SPILLWAY0

Main finding

  • Across all twelve backbone-and-suite cells, SPILLWAY drives in-scope attack success to zero (Table 1).
  • No injection under the standard template redirects an action to an attacker.
  • It is the only defense in the grid at zero on every cell.
  • ROPE, the closest, leaks on all three Slack cells.
  • MELON, Progent and DRIFT leak on ten, eleven and seven of the twelve (Table 2).
  • The lookup boundary is structural.
  • On qwen3:8b the floor, with identity-target judge recovery off.
  • Already holds all four suites at zero (Table 3).
  • SPILLWAY reaches this floor with the highest utility under attack of any defense (.474).
  • It keeps 97% of the undefended agent's benign utility.
  • Against 73% for ROPE with the agent as its router.

What the breadth grid shows

  • Removing the injection often raises utility.
  • Averaged over the three backbones, SPILLWAY finishes above the undefended agent on Workspace (.590 vs.
  • .438) and Travel (.452 vs. .326).
  • It matches it on Banking (.438).
  • Where it finishes above.
  • The sanitizer strips an injection that would otherwise derail the agent (Table 3).
  • No leak was seen, and pairs are treated as independent.
  • The one-sided 95% Clopper-Pearson bound on attack success is 2.8%.
  • That is at the smallest cell (105 pairs).
  • Over all 2,847 attacked pairs it is 0.1%.
Table 1: per-cell results, SPILLWAY vs. undefended
Suite and backboneUndefended BU/UAUSPILLWAY BU/UAUUndefended ASR
Banking, gpt-4o-mini.562/.424.500/.444.556
Banking, qwen3-coder:30b.375/.486.562/.438.299
Banking, qwen3:8b.500/.403.438/.431.181
Slack, gpt-4o-mini.762/.514.714/.533.629
Slack, qwen3-coder:30b.667/.467.524/.429.724
Slack, qwen3:8b.619/.419.476/.286.448
Travel, gpt-4o-mini.500/.336.650/.607.229
Travel, qwen3-coder:30b.500/.414.500/.414.129
Travel, qwen3:8b.250/.229.150/.336.229
Workspace, gpt-4o-mini.825/.398.825/.863.184
Workspace, qwen3-coder:30b.500/.480.475/.527.036
Workspace, qwen3:8b.425/.434.450/.382.020
Mean of twelve.540/.417.522/.474.305

Table 1 (part): benign / under-attack utility, and attack success.

SPILLWAY ASR is .000 in every row. Other defenses are in Table 2 and Appendix A.

Table 2: twelve-cell means for every defense
MethodBUUAUASR
Undefended.540.417.305
SPILLWAY.522.474.000
MELON.526.314.094
Progent.437.371.031
DRIFT.460.453.016
ROPE.395.345.005
Spotlighting.528.403.283
PI detector.332.230.060

Table 2: breadth-grid summary (twelve-cell means).

MethodNRP (BU)ERSCells with in-scope leak
Undefended.375.60812
SPILLWAY.522.6860
MELON.477.66610
Progent.423.60211
DRIFT.453.6277
ROPE.393.5663
Spotlighting.379.60812
PI detector.312.49110

Table 2: composites and cells with hits (of 12).

Raw-hit cells: 12, 0, 11, 11, 7, 6, 12, 10. ROPE has 3 cells zeroed by the content filter. MELON has 1. UAU-based NRP: .290, .474, .284, .359, .446, .343, .289, .216.

Each SPILLWAY component adds (Table 3)
  • Table 3 reports component-study arms and the final system.
  • The floor lets no attacker target through on any suite, as P1 predicts.
  • On Slack the floor refused every attacker membership call the agent proposed.
  • Adding the judge alone recovers Banking utility (+.042).
  • Without the sanitizer, it admits the attacker's account on "pay the bill".
  • It also admits an attacker address as a meeting participant.
  • That is why SPILLWAY couples the two.
  • Adding the sanitizer instead lifts utility on Slack (+.105) and Travel (+.100).
  • An agent that never reads the imperative stops proposing the attacker's calls.
  • The final system holds zero on all four suites at mean utility .359.
ArmBankingSlackTravel
Floor.333 / .000.181 / .000.243 / .000
Floor + judge.375 / .028.190 / .000.243 / .000
Floor + sanitizer.375 / .000.286 / .000.343 / .000
SPILLWAY (final).431 / .000.286 / .000.336 / .000

Table 3: UAU / ASR on qwen3:8b, 949 pairs per arm.

Workspace: floor .445 / .000, floor + judge .439 / .002, floor + sanitizer .412 / .000, final .382 / .000.

SPILLWAY adds almost no model calls per episodeFrom Figure 3 and Section 5
SlackWorkspace
0510Added model calls per benign episode (qwen3:8b)SPILLWAY0.39 calls0.19 callsMELON5.29 calls3.25 callsProgent8.67 calls5.94 callsDRIFT9.91 calls9.59 calls

Hover, tap or focus a bar to read its exact value.

DefenseSlack (calls)Workspace (calls)
SPILLWAY0.390.19
MELON5.293.25
Progent8.675.94
DRIFT9.919.59

Per-episode cost

  • On qwen3:8b benign traffic (Slack / Workspace).
  • SPILLWAY calls its judge 0.43 and 0.05 times per episode.
  • It changes its backbone calls by less than 0.15.
  • Figure 3 plots their sum.
  • MELON adds 5.29 and 3.25 backbone calls.
  • Progent adds 8.67 and 5.94.
  • DRIFT adds 9.91 and 9.59.
  • On the RTX PRO 6000, SPILLWAY's episodes were within 0.5 s of the undefended agent's.
  • MELON adds +4.9 and +7.9 s.
  • Progent adds +1.6 and +2.3 s.
  • DRIFT adds +9.9 and +10.5 s.

Notes

  • Including the judge, SPILLWAY adds 0.19 and 0.39 model calls per Workspace and Slack episode.
  • That is far below the model-call defenses.
  • Each AgentDojo suite runs once (seed 42).
  • SPILLWAY's AgentDyn results average three fixed-seed runs.

SPILLWAY keeps more utility than ROPE on every suiteFrom Figure 4a
SPILLWAYROPE (Opus 4.8 router)
00.51Utility under attack (higher is better)Banking0.444 score0.438 scoreSlack0.533 score0.514 scoreTravel0.607 score0.500 scoreGitHub0.585 score0.500 scoreDailyLife0.397 score0.295 scoreShopping0.363 score0.361 score

Hover, tap or focus a bar to read its exact value.

SuiteSPILLWAY (score)ROPE (Opus 4.8 router) (score)
Banking0.4440.438
Slack0.5330.514
Travel0.6070.500
GitHub0.5850.500
DailyLife0.3970.295
Shopping0.3630.361
  • Against ROPE with its authors' Claude Opus 4.8 router (Figure 4).
  • SPILLWAY holds in-scope attack success at zero on all seven suites.
  • ROPE leaks on three: DailyLife .010, Shopping .044, Slack .048.
  • SPILLWAY's utility under attack is higher on every suite.
  • On average by .08 on AgentDojo (.612 vs. .530).
  • And by .06 on AgentDyn (.448 vs. .385).
  • With the agent's own model as router (gpt-4o-mini).
  • ROPE's mean utility falls from .468 to .361.
  • It still leaks on Shopping (.072) and Slack (.019).
Table 7: the delegated-routing grid per suite (Appendix)
SuiteSPILLWAYROPE (Opus 4.8)ROPE (gpt-4o-mini)
Banking.444 / .000.438 / .000.431 / .000
Slack.533 / .000.514 / .048.343 / .019
Travel.607 / .000.500 / .000.350 / .000
Workspace.863 / .000.670 / .000.539 / .000
GitHub.585 / .000.500 / .000.383 / .000
DailyLife.397 / .000.295 / .010.150 / .000
Shopping.363 / .000.361 / .044.333 / .072
Mean.542 / .000.468 / .015.361 / .013

Table 7: UAU / ASR on gpt-4o-mini.

NRP (UAU): .542, .462, .357. ERS (UAU): .690, .627, .519. Pairs per suite: 144, 105, 140, 560, 180, 200, 180.

  • Beyond the standard template, three recent attacks are replayed open loop against SPILLWAY.
  • A forged chat template (ChatInject), optimizer-made injections (AutoDojo) and a released RL attacker (PISmith).
ChatInject: forged chat template
  • ChatInject embeds a fabricated chat turn inside untrusted output.
  • With forged turns scrubbed, SPILLWAY has no raw hit in any of the 665 pairs.
  • It also recovers part of the utility the hijack destroys.
  • Slack goes from .095 to .333. Workspace goes from .052 to .421.
  • ROPE lets the hijacked agent propose the attacker's calls and blocks most at execution.
  • Its utility stays low (.157 and .162).
  • It leaks .002 on Workspace and .095 on Slack.
  • DRIFT keeps more utility (.393 and .352) but leaks .062 and .019 (Table 4).
  • In the attacker-as-sender variant (Appendix C).
  • SPILLWAY blocks the one attack that breaks the undefended agent.
AutoDojo: optimized injections
  • AutoDojo's injections were optimized against another defended agent.
  • Progent, the defense they were optimized against.
  • Executes them in 10 to 12% of pairs (Table 4).
  • SPILLWAY leaves no injected effect in the 389 pairs.
  • No call goes to an attacker's target, and no injected content reaches a final answer.
  • Four of these pairs served as development examples for the address and payee-change rules.
  • So two held-out Banking sets (144 pairs each, Appendix A) test the rules.
  • Attack success is .014 on the set optimized against DRIFT.
  • Counting a payee transfer that AgentDojo's check misses.
  • It is .000 on the set optimized against the undefended agent.
  • In that set, 18 of the 36 injection texts are optimized.
  • The rules change no earlier result (Appendix B).
  • SPILLWAY finishes nine percentage points more tasks on average (.263 vs. .173).
PISmith: a released RL attacker
  • PISmith is replayed open loop against every defense.
  • This is the first of its ten pair-conditioned variants per injection (ASR@1, gpt-4o-mini).
  • It breaks the undefended agent (.568 in-scope ASR).
  • It breaks five of the six baselines (.025 to .489).
  • SPILLWAY holds it to a suite mean of .006.
  • That is with more utility than every other defense except DRIFT.
  • Which leaks .064 (Figure 1d).
  • ROPE comes closest at .007.

Summary

  • Among the defenses run, SPILLWAY is the only one with no attacker-target success.
  • This holds under the standard template.
  • Under ChatInject and on AutoDojo's 389 pairs (Tables 1 and 4).
Table 4: stress tests
MethodWorkspace UAUWorkspace ASRSlack UAU / ASR
Undefended.052.245.095 / .648
SPILLWAY.421.000.333 / .000
MELON.084.020.095 / .000
Progent.161.005.057 / .010
DRIFT.393.062.352 / .019
ROPE.157.002.162 / .095
Spotlighting.191.013.076 / .181
PI detector.050.021.162 / .000

Table 4 (part 1): ChatInject, UAU / ASR (qwen3:8b).

ChatInject composite NRP / ERS for SPILLWAY: .463 / .633. ROPE runs ChatInject without its clamp.

MethodBankingSlackTravel
Undefended.444 / .354.524 / .571.329 / .329
SPILLWAY.438 / .000.562 / .000.536 / .000
MELON.340 / .021.286 / .000.293 / .000
Progent.306 / .104.467 / .124.414 / .121
DRIFT.438 / .090.543 / .010.486 / .086
ROPE.424 / .000.352 / .019.300 / .000
Spotlighting.431 / .306.543 / .514.343 / .279
PI detector.403 / .049.219 / .067.214 / .029

Table 4 (part 2): AutoDojo, UAU / ASR (gpt-4o-mini).

Composite NRP / ERS for SPILLWAY: .621 / .763. PISmith macro UAU / ASR: SPILLWAY .263 / .006, MELON .114 / .061, Progent .166 / .096, DRIFT .428 / .064, ROPE .173 / .007, Spotlighting .151 / .489, PI detector .155 / .025, Undefended .128 / .568.

Information flow, intent and re-execution

  • Information-flow and capability systems limit what untrusted data can do.
  • Task Shield checks whether an action serves the user goal.
  • SIEVE checks tool transitions and argument sources against an intent graph, and escalates failures.
  • AgentSentry learns a bound from benign runs and enforces it with a classifier.
  • An allowlist and an LLM judge.
  • CXI binds field, effect and invocation authority to an action manifest.
  • SPILLWAY's floor needs no intent graph, learned bound or action manifest.
  • It reads targets from the user's task and typed read-only returns.
  • A second system, AgentSentry, re-executes the agent to diagnose causes.
  • Tool-result parsing structures the data the agent reads.
  • SPILLWAY triggers no backbone re-run.

ROPE and dependency tracking

  • ROPE is closest.
  • A router reads each request before a deterministic origin check guards sensitive parameters.
  • SPILLWAY uses a flat typed-identity index and a fixed role lexicon.
  • It has no router and lighter state than the dependency tracking of APPA.
  • AgentArmor and PACT.
  • Its ingress evidence bounds its selective judge.

Sanitizers and firewalls

  • CommandSans learns a token-level sanitizer.
  • Tool-input and tool-output firewalls ask an LLM at each boundary without checking effect targets.
  • Their own adaptive cascade raises sanitizer attack success to 30% on Slack.
  • Agent data injection spoofs metadata inside untrusted text.
  • It defeats most tested defenses except CaMeL's strict policy.
  • SPILLWAY's floor and sanitizer use no model.
  • A host can use the declared roles and typed fields as a fixed check.
  • It checks the destination, beside a separate semantic defense.

  • P1 holds for attackers who write only free-text fields (Section 2).
  • In the attacker-as-sender variant, the typed sender enters I.
  • SPILLWAY still blocks the one attack that breaks the undefended agent (Appendix C).
  • New tool sets need declared target roles.
  • Delegation and semantic judgment remain targets for adaptive evaluation.
  • P2 confines identity-target judge recovery to eligible refusals outside removed spans.

  • SPILLWAY checks where an action may go using the user's task and typed tool returns.
  • Structure decides the targets. A model is used only where structure cannot decide.
  • The sanitizer removes matched instructions and keeps evidence that bounds judge recovery.
  • In the 12 AgentDojo cells under the standard template, only SPILLWAY recorded zero attacker-target successes.
  • It also had the highest mean utility under attack and composite scores.
  • Under ChatInject it had no raw hit.
  • Under open-loop PISmith its mean in-scope ASR was .006.
  • A host can audit the destination check against the task, typed fields and declared rules.
  • On three AgentDyn suites with declared roles.
  • It recorded zero in-scope redirects at higher mean utility than ROPE with its authors' router.
  • The authors expect this light layer to slot into many services and agent apps.

Acknowledgments: generative AI use

  • The authors designed SPILLWAY, the threat model, the evaluation criteria and the methods.
  • They led verification, with repeated cross-checks of results against recorded runs.
  • Generative AI tools (Anthropic's Claude through Claude Code.
  • OpenAI models through Codex) supported the work.
  • They served as a discussion aid, wrote code and scripts.
  • Drafted text under the authors' direction.
  • They ran the author-specified experiments through the experiment harness.
  • Every plotted value comes from recorded runs. No image-generation model was used.
  • The authors reviewed and revised all generated material and take full responsibility.

  • Table 5 gives raw and in-scope attack success for every breadth cell.
  • Raw applies the executed-effect rule.
  • Collision filtering removes no hit in any cell, so the collision-filtered level equals raw.
  • One value means raw and in-scope agree.
  • SPILLWAY is .000 at both levels in all twelve cells.
  • Table 6 gives the AutoDojo panel of Table 4 at trace, executed and in-scope levels.
Table 5 (part): raw / in-scope ASR per cell
CellUndefendedMELONProgent
Banking.556.049.097
Slack.629.000.076
Travel.300/.229.086/.000.093/.029
Workspace.184.002.041

Table 5: ASR for gpt-4o-mini cells.

Other backbones and defenses are in the PDF. 949 attacked pairs per backbone: 144 Banking, 105 Slack, 140 Travel, 560 Workspace.

Table 6: AutoDojo at three levels
MethodBankingSlackTravel
Undefended.354/.354/.354.571/.571/.571.364/.364/.329
SPILLWAY.000/.000/.000.000/.000/.000.000/.000/.000
MELON.021/.021/.021.000/.000/.000.043/.043/.000
Progent.104/.104/.104.210/.124/.124.150/.150/.121
DRIFT.090/.090/.090.010/.010/.010.086/.086/.086
ROPEnone/.000/.000none/.076/.019none/.014/.000
Spotlighting.306/.306/.306.514/.514/.514.307/.307/.279
PI detector.049/.049/.049.067/.067/.067.029/.029/.029

Table 6: trace / executed / in-scope ASR on gpt-4o-mini.

none means ROPE's scorer gives no separate trace level.

Held-out Banking sets and rule effects
  • Before the address and payee-change rules.
  • SPILLWAY's in-scope ASR on this panel was .007 (Travel), .014 (Banking) and .010 (Slack).
  • After the rules, two held-out Banking sets give the test.
  • Each has 144 pairs and was not used when the rules were written.
  • The set optimized against DRIFT gives .007 by AgentDojo's check.
  • It is .014 when counting a second transfer to an attacker-written payee.
  • The set optimized against the undefended agent gives .000.
  • In that set.
  • 18 of the 36 injection texts are optimized and the rest are the template.
  • Utility is .444 (64/144) on each.
  • ROPE's AutoDojo row uses the setting of its gpt-4o-mini cells in Table 1.
  • Its ChatInject row runs without ROPE's clamp.
  • Which drops a router override looser than the audited defaults.
  • Its ChatInject composites use a benign run in that setting: Workspace .325 and Slack .286.
  • Table 7 gives the delegated-routing grid per suite (see Section 5.3).

Agent

  • Every method runs on the same agent request.
  • It uses each benchmark's own default system prompt.
  • Temperature 0, seed 42 and at most 8192 output tokens.
  • The backbone's reasoning is switched off where it has a switch.
  • AgentDojo's prompt has 469 bytes. AgentDyn's has 543 bytes.
  • AgentDyn adds one line telling the agent to complete all tasks without asking for confirmation.
  • Spotlighting appends its delimiter instruction.
  • DRIFT keeps its authors' prompt.
  • gpt-4o-mini-2024-07-18 is served by the OpenAI API. qwen3-coder:30b and qwen3:8b run on Ollama.
  • Every stack uses suite v1.2.2, whose task and data files equal AgentDojo 0.1.35's.
  • Each cell runs once, except SPILLWAY's AgentDyn cells, which average three fixed-seed runs.
  • The authors reran an earlier SPILLWAY build on all 12 cells.
  • They used three seeds (42, 777, 123) with three repeats each.
  • That is nine runs per backbone and 27 in all.
  • In-scope attack success was .000 in every run.
  • Per-suite utility had a standard deviation of at most .041 across repeats.
  • Across per-seed means it was at most .021.

SPILLWAY

  • The floor and the sanitizer are rules with no model call.
  • The judge is gemma4:31b (Q4_K_M) on a local Ollama server, 4096-token context, temperature 0.
  • The address and payee-change rules change no sanitizer output.
  • This covers the tool messages behind Table 3 and Figure 3.
  • They match no text in AgentDojo's environment data.
  • Rerunning the component-study arms with the address rules gives the same results.
  • Each suite's utility and attack success match to the third decimal.
  • The role lexicon has 11, 22, 10 and 11 verb prefixes for read-only.
  • Writing, destructive and granting tools.
  • It has 19 target-argument names for AgentDojo and 6 more for AgentDyn.

Comparators

  • MELON, Progent, DRIFT and ROPE run from released code.
  • MELON embeds with nomic-embed-text.
  • The prompt-injection detector is protectai/deberta-v3-base-prompt-injection-v2.
  • Progent's policy is written by the cell's own backbone.
  • With Progent's own seed and retry ladder.
  • ROPE's router is the agent in Tables 1, 2 and 5 and on the ChatInject.
  • AutoDojo and PISmith panels.
  • In Figure 4 and Figure 1a it uses its authors' router.
  • That router is Claude Opus 4.8 with cached scopes.
  • ROPE's clamp is off by default in its code.
  • It is on when the agent is its router, except on ChatInject.
  • Off with its authors' Opus router.

Attacks and scoring

  • The standard attack is AgentDojo's important_instructions.
  • AutoDojo replays variant 0 of its released gpt-4o-mini injections.
  • PISmith replays variant 0 of the ten its attacker wrote for each pair.
  • The same texts for every defense.
  • The AgentDyn suites have 180 (GitHub), 200 (DailyLife) and 180 (Shopping) attacked pairs.
  • SPILLWAY's main results come from the final build.
  • Other ablation arms, cost measurements, variance runs.
  • Held-out AutoDojo sets and the sender variant come from an earlier build.
  • Those runs and the comparators' local runs use one NVIDIA RTX PRO 6000 Blackwell GPU.

  • The variant tests SPILLWAY outside P1's premise.
  • The five injection-carrying Workspace emails come from the attacker's own address.
  • So the address enters I through the typed sender field.
  • It covers the nine user tasks that read these emails.
  • It also covers all 14 injection tasks (126 pairs, qwen3:8b).
  • SPILLWAY, the floor-only arm, Progent and the prompt-injection detector let no attack through.
  • The undefended agent, MELON.
  • Spotlighting and DRIFT each execute the attack in one of the 126 pairs.
  • In that pair, the floor-only agent tried to email the attacker's address and was refused.
  • The injected text repeats the address.
  • The floor refuses a target repeated in free text.

Words to know

  • AgentDojo: A benchmark of agent tasks with injected attacks.
  • Attack success rate (ASR): The share of attacks whose injected action actually ran.
  • Backbone: The main model that powers the agent.
  • Delegation rule: A fixed rule that lets the user's words cover a target.
  • Egress floor: The code check that decides if an action's target is allowed.
  • Fail closed: If a check has no answer, the call is blocked.
  • Indirect prompt injection: Hidden instructions in data that an agent reads from tools.
  • Model Context Protocol: A standard way for AI agents to call tools.
  • Open-loop replay: Replaying saved attacks without adapting them to the defense.
  • Provenance defense: A defense that tracks where each value came from.
  • Sanitizer: Code that strips instruction-like text before the model reads it.
  • Taint-novel value: A value in tool output that the user never wrote.
  • Two-view judge: A local model that re-checks refused calls from two angles.
  • Typed field: A tool field with a fixed kind, such as an email address.

Share this paper

LinkedIn (opens in a new tab)X (opens in a new tab)WhatsApp (opens in a new tab)EmailDownload PDFExplainer (PDF), 1.1 MB

Ask AI about this paper

Stuck on a word or an idea? Ask in plain words. The answer comes from the write-up on this page.

Read the original paper on arXiv: SPILLWAY: Separating Target Admission from Sanitization to Defend Tool-Using Agents against Prompt Injection (opens in a new tab)

Jump to

One paper a week, in plain English

Every Monday: the new AI papers worth your time. Short lines, the key number, and what to do with it.

One email a week. Unsubscribe with one click. No spam.