A weekly paper and daily brief on artificial intelligence
ქართული

← Back to the issue of 21 November 2026

Science & technology · Our full summary

Agents that check where their actions go

A defence that admits an agent’s email or payment only if the recipient came from a trusted field stopped every templated prompt injection in a standard test, without slowing the agent

The problem

Tool-using agents act on email, files and payments, so an instruction hidden in a web page or shared document (a prompt injection) can make an agent send data or money to an attacker. Many runtime defences put a language model on the decision that lets an action through, so that decision depends on a model that may read the attacker’s text, and they add model calls to every step. Provenance defences keep the model off the final check but need a model to plan or route each task first.

The method

Observation: where an action goes can be read from the tools’ typed returns. An email’s sender, a channel’s members or a transaction’s recipient arrive in typed fields, but injected instructions arrive as free text such as a body or a description.

Egress floor: a side-effecting call is admitted only if every new target value was returned by a read-only tool in a typed identity field, or is covered by a fixed delegation rule. A new target is one that appears in tool output but not in the user’s task, and it must not also be repeated in free text. The check is a set lookup with no model call, so its refusals are the same under every backbone.

Ingress sanitiser: deterministic rules remove forged chat-template turns and instruction-like regions before the model reads them, and keep the removed spans as evidence.

Two-view recovery: a local judge model, the only model call the defence adds, may restore a refused call to recover delegated work, but never one whose target lies inside the removed text.

Evaluation runs on AgentDojo (v1.2.2, with the Banking, Slack, Travel and Workspace suites) with three backbones (gpt-4o-mini, qwen3-coder:30b, qwen3:8b), plus a delegated-routing setting on AgentDyn, the ChatInject forged-template attack, optimiser-generated AutoDojo injections and a released reinforcement-learning attacker, PISmith, replayed open-loop. The baselines are MELON, Progent, DRIFT, ROPE, Spotlighting and a prompt-injection detector.

Key results

  • Standard AgentDojo attack, twelve-cell means (benign utility / utility under attack / in-scope attack success): undefended 0.540/0.417/0.305; SPILLWAY 0.539/0.489/0.000; MELON 0.526/0.314/0.094; Progent 0.437/0.371/0.031; DRIFT 0.460/0.453/0.016; ROPE 0.395/0.345/0.005.
  • SPILLWAY is the only defence in the grid with zero in-scope attack success on every backbone-by-suite cell, at the highest utility under attack. MELON, Progent and DRIFT leak on 7 to 11 of the 12 cells and on qwen3:8b add 2.2 to 13.6 backbone calls per benign episode.
  • A forged chat template (ChatInject) also produces zero attack success; zero on all seven delegated-routing suites, at higher utility than routed-origin enforcement (ROPE) on every suite.
  • Against PISmith, a released reinforcement-learning attacker, mean in-scope attack success is 0.005.
  • Without the sanitiser the judge admits an attacker’s account; with both parts attack success is zero and the sanitiser recovers utility the floor alone gives up.

Limitations

  • The guarantee covers identity targets only. An injection that steers an effect to a legitimate identity, such as an existing contact or a payee in a bill the user asked to pay, is left to the sanitiser and the judge. A target that never appears verbatim in tool output falls outside the guarantee.
  • An attacker who can write a typed field, for example by sending the email, puts its own address among the admitted identities.
  • Target roles come from a lexicon written once per benchmark, so a new tool set needs its roles declared.
  • The judge, the delegation rules and the lexicon are the surface an adaptive attacker would target; evaluation is on AgentDojo and AgentDyn with small and mid-sized backbones, and content-manipulation tasks are excluded because no target check bounds them.

Why it matters

Banks, shops and messaging apps are refusing or disclaiming AI agents because an injected instruction can redirect an agent’s payment or email. A deterministic check on where an action goes, which an attacker cannot talk round, gives agents an auditable floor without the cost of extra model calls at every step.