TL;DR
To catch sneaky AI agents, "hybrid" trusted monitors watch everything the agent does—its internal reasoning, its tool calls, and the outputs those tools return. This paper shows that this extra visibility creates a backdoor: an attacker can hide an optimized gibberish string inside an untrusted webpage or email, tricking the monitor into rubber-stamping a malicious action as completely safe. Worse, the attacker doesn't need a smarter agent or any special access to the monitor—just a cheap, open-weight proxy model to craft the string offline.
What Problem Does This Paper Address?
Autonomous AI agents regularly read untrusted data from the outside world—emails, websites, Slack messages—making them vulnerable to Indirect Prompt Injection (IPI), where hidden instructions hijack the agent's behavior. In the field of AI control, a common defense is to pair an untrusted agent with a cheaper trusted monitor that reviews the agent's trajectory and flags anything suspicious.
Early monitors only read the agent's Chain-of-Thought (CoT) reasoning. State-of-the-art hybrid monitors (like AlignmentCheck in LlamaFirewall) go further by also inspecting tool calls and tool outputs, catching attacks where the agent's reasoning looks innocent but its actions are malicious. The authors ask a sharp question: Does watching tool outputs turn the monitor's own observation channel into an attack surface?
Methods
The authors introduce Agent-as-a-Proxy, an attack that uses an ordinary AI agent as an unwitting vessel to deliver an adversarial payload to the monitor.
- Offline Optimization: Using Greedy Coordinate Gradient (GCG), the attacker optimizes a short adversarial string
pagainst an open-weight proxy monitor (e.g., Llama-3.1-8B, Qwen2.5-7B, or Mistral-7B) so that the monitor classifies a malicious trajectory as benign. Crafting one string costs about $2.50. - Prompt Injection & Propagation: The attacker embeds both a malicious goal (e.g., "send $100 to account XXX") and
pinto an untrusted document, instructing the agent to echopinto its later tool calls. - Monitoring: Because the hybrid monitor inspects tool outputs and tool calls,
penters the monitor's context directly from the injected document and again through any copies the agent makes.
The authors test this across three monitoring protocols—AlignmentCheck, PromptGuard 2 + AlignmentCheck (using a joint optimization objective to bypass both the input filter and the monitor), and Extract-and-Evaluate (which extracts suspicious quotes before judging them).
Datasets
Evaluations are conducted on AgentDojo (v1.2.1), a benchmark spanning four agentic task suites: banking, Slack, travel, and workspace. The authors focus on the "important instructions" injection template, using 230 compromised gpt-4o-2024-05-13 trajectories for the main monitor comparisons (plus gpt-4o-mini and Llama-3.1-70B for capability-gap tests, and 92 uninjected trajectories to measure benign false-positive rates).
Key Insights and Ideas
- No collusion or capability gap required: Prior attacks on monitors assumed a smarter, monitor-aware agent actively scheming against a weaker monitor. Here, the agent has no idea a monitor exists; even
gpt-4o-miniandLlama-3.1-70Bsuccessfully bypass a much largerQwen2.5-72Bmonitor. - Direct exposure does the heavy lifting, but echoing amplifies it: Simply having the monitor read
pin the original injected tool output accounts for most of the evasion. However, when the agent copiespinto later tool calls, it adds another 12.5–18.8 percentage points to the false-negative rate. - 7B proxies transfer to frontier black-box monitors: Without ever querying the target systems, strings optimized on 7B–8B open-weight models transfer to all eleven evaluated proprietary monitors from OpenAI, Google, and Anthropic.
- Broader visibility cuts both ways: Because the injected string reaches the action channel in 100% of trajectories—but the CoT in only 6.1%—CoT-only monitors are far less exposed to this specific attack.
Key Results
- Hybrid monitor evasion: At fixed operating points, conditional false-negative rates (FNR@5, given agent compromise) jump from 0–1.3% to 28.26% (Llama-3.1-8B) and 30.43% (Qwen2.5-7B), and from 23.04% to 78.26% on Mistral-7B.
- Proprietary transfer: Across all four suites, pooled FNR@5 ranges from 5.1% (Claude Haiku 4.5 and Gemini-3.1-flash-lite) up to 82.9% (GPT-4.1-nano).
- Bypassing composed defenses: Pairing AlignmentCheck with SecAlign, StruQ, or PromptGuard 2 still leaves 21.3–30.0% adaptive FNR@5. A GPT-2 perplexity filter blocks all unconstrained strings, but strings optimized to pass the filter still achieve 6.52% (Llama), 9.78% (Qwen), and 66.30% (Mistral) FNR@5.
- Ensembling helps, but doesn't cure: A 4-monitor cross-vendor ensemble ("flag-if-any") drops FNR@5 to 3.5% (compared to 5.1% for the best single monitor), though correlated misses persist ($\phi = 0.41$).
- Live execution: Running the attack end-to-end on Slack with Extract-and-Evaluate lowers FNR@1 by 3–11 percentage points compared to prerecorded substitution, leaving 17.5–54.6% FNR@1 intact.
Limitations and Future Work
The authors note that their evaluation relies on AgentDojo, a single injection template, and agents specifically chosen because they fall for that template (newer frontier agents largely resist it). Most AlignmentCheck experiments also use a fixed-trajectory replay approximation rather than live end-to-end execution, which was only tested on Slack for Extract-and-Evaluate. Finally, perplexity filtering and monitor-prompt variations were tested on limited setups. Future work is needed to design monitors that treat their own observation channels as untrusted input surfaces rather than passive telemetry.
Summary updated