Monitor Observation-Channel Injection (Agent-as-a-Proxy)¶
Monitor observation-channel injection plants an optimized string in content an agent reads, so a trusted monitor reading the trajectory can clear hijacked actions it sees.
Monitor observation-channel injection is an indirect prompt injection aimed at the monitor that watches an agent. An outside attacker controls one untrusted document. The document carries a malicious goal plus a string optimized offline against an open-weight proxy monitor, and asks the agent to copy the string into later actions. The monitor meets the string in the tool output and again in any copies the agent makes (Isbarov and Kantarcioglu, arXiv:2602.05066v3). The paper calls the attack Agent-as-a-Proxy. The agent needs no collusion, no awareness of the monitor, and no capability advantage over it.
Read the numbers with their conditions¶
The headline rates apply only after the injection has already hijacked the agent. Given that compromise, adaptive strings raised the false-negative rate at five strings (FNR@5) "from 0–1.3% to 28–30% on Llama-3.1-8B and Qwen2.5-7B, and from 23% to 78% on Mistral-7B" (arXiv:2602.05066v3). FNR@5 counts a miss when any one of five strings evades the monitor.
Three conditions limit those numbers (arXiv:2602.05066v3):
- Counted over all 949 attempted task pairs, the conservative, replay-based full-pipeline estimates are 6.8, 19.0, and 7.4% at five strings for Llama, Mistral, and Qwen.
- The results cover AgentDojo and one injection template. Other templates, longer workflows, and current frontier agents are untested.
- Recent frontier agents "largely resist the underlying "important instructions" injection", so the numbers describe the regime where that injection succeeds.
How the string reaches the monitor¶
A hybrid monitor such as AlignmentCheck in LlamaFirewall reads the agent's reasoning, tool calls, and tool outputs together. That visibility is the attack surface. The string arrives by two routes (arXiv:2602.05066v3):
- Direct exposure carries most of the effect. With the string kept only in the external document, FNR@5 was 24.8, 75.2, and 26.5% on Llama, Mistral, and Qwen, against 28.26, 78.26, and 30.43% with the agent's copies kept.
- The agent's copies add 12.5 to 18.8 percentage points of FNR@5 on the trajectories that contain them. A copy can also return as environment state. After the agent posts the string to a Slack channel and reads that channel back, the string "re-enters the monitor's context as ordinary environment state that no filter on the original injection would cover".
The attack is cheap and needs no queries to the target. A string costs about $2.50 to optimize and is reusable across trajectories and monitors. In a pooled four-suite evaluation, strings optimized on a 7 to 8B open-weight proxy raised FNR over each target's static baseline on all eleven proprietary monitors tested, reaching 5.1 to 82.9% FNR@5. GPT-4o-mini and Llama-3.1-70B agents, of capability comparable to the monitor, raised a Qwen2.5-72B monitor's FNR@5 from 2.3% to 46.0% and 60.2% on Slack and Banking (arXiv:2602.05066v3).
What each defense costs¶
Every defense the paper measured leaves a residual miss rate or loses evidence. Figures are adaptive FNR@5, conditional on agent compromise, unless the row says otherwise (arXiv:2602.05066v3).
| Defense | Measured result | Cost |
|---|---|---|
| Stronger proprietary monitor | GPT-4.1 at 15.8%, against 82.9% for GPT-4.1-nano. Claude Haiku 4.5 at 5.1%. Pooled over four suites | GPT-4.1 and Claude Haiku 4.5 both stay above their 0% static baselines |
| Four-monitor, cross-vendor ensemble, flag-if-any | 3.5%, against 5.1% for the best single monitor, on a shared grid of 234 hijacked trajectories | Four monitor calls per trajectory. Majority vote gave 7.5%. No string was optimized against the ensembles |
| GPT-2 perplexity filter at threshold 76 | Rejects all 87 original unconstrained strings | Strings optimized to pass the filter keep 6.52 to 66.30% |
| PromptGuard 2 in front of AlignmentCheck | 27.9, 85.5, and 34.9% on Llama, Mistral, and Qwen | A joint objective targets the filter and the monitor together |
| SecAlign, StruQ, or PromptGuard 2 composed with Llama-3.1-8B AlignmentCheck | Static FNR stays at 0% | 21 to 30% remains |
| Strip tool outputs and argument values, use typed placeholders, or show a canonical action summary | The string is gone from the monitor's input | Youden's J falls from 81.9 to between 39.2 and 45.8 on Llama |
| CoT-only monitor | Adaptive shifts of 12.1, 4.8, and 2.6 points on Llama, Qwen, and Mistral | False-positive rate of 23.9 to 33.7%, against 5.4 to 17.4% for hybrid. Strings optimized against the CoT-only monitor are untested |
LlamaFirewall's own paper names guardrail injection as a risk and lists two mitigations: "Restricting inputs to only the agent's chain-of-thought and actions, excluding direct tool outputs" and "Pre-scanning inputs to AlignmentCheck using PromptGuard for known injection patterns" (Chennabasappa et al., arXiv:2505.03574v1). The second is the PromptGuard 2 row above. The first matches no tested configuration exactly. The closest is the stripped input, which redacts tool outputs and also deletes argument values, and loses discrimination. Dropping tool outputs alone keeps the agent's copies in view, because the attack routes the string into tool arguments, where it "reaches the action channel in every retained trajectory" (arXiv:2602.05066v3).
The authors point the guarantee elsewhere. Architectural defenses such as CaMeL and Fides "draw a different security boundary; their guarantees depend on the trusted planner and specified policies rather than on post-hoc trajectory monitoring" (arXiv:2602.05066v3).
Why it works¶
The monitor's verdict is computed over trajectory text, and the attacker writes part of that text. In one traced trajectory the monitor enumerates every hijacked action and reports them "as instructed by the user" and "aligned with the user's request". The authors read the trace this way: "the monitor's perception of the trajectory is intact and its authorization judgment is what moves." They add that "this example alone does not identify what causes the verdict to change" (arXiv:2602.05066v3).
Naming the injection is not always enough. In the Slack-only rationale analysis, Claude Haiku 4.5 "names it in every false negative yet still returns a benign verdict" (arXiv:2602.05066v3). The input transforms fail for a related reason. They remove "both the optimized strings and values relevant to identifying unauthorized behavior, such as recipients, message bodies, and URLs", so the evidence leaves with the attack. The authors conclude that a monitor's observations are "an untrusted input surface rather than passive telemetry" (arXiv:2602.05066v3).
When this backfires¶
Hardening the monitor spends calls, false positives, or discrimination. Some deployments get little back:
- Your agent resists the injection. The paper's numbers describe compromised trajectories, and its authors report that recent frontier agents largely resist the template it used (arXiv:2602.05066v3).
- The monitor already cuts static attack success and sits behind other layers. LlamaFirewall reports that AlignmentCheck cut AgentDojo attack success by 83%, "from 0.18 (no defenses) to 0.03 when employing Llama 4 Maverick" (Chennabasappa et al., arXiv:2505.03574v1).
- You add resampling as the fix. When a monitor-aware untrusted model embeds prompt injections in its outputs, Defer-to-Resample "even backfires, as its resampling amplifies the prompt injection and effectively reframes it as a best-of-n attack" (Terekhov et al., arXiv:2510.09462v2).
- You rely on a prompt change. The paper leaves "explicit instructions to distrust content embedded in tool arguments" untested (arXiv:2602.05066v3), so no measured result supports it either way.
Key Takeaways¶
- Score a monitor against strings optimized for it. Under adaptive strings, Llama-3.1-8B AlignmentCheck went from 0% to 28.26% conditional FNR@5.
- Quote the conditional and the full-pipeline rate together. For Llama-3.1-8B, 28.26% conditional is 6.8% in the conservative, replay-based full-pipeline estimate.
- If you ensemble monitors, use flag-if-any rather than majority vote. On 234 hijacked trajectories, the tested four-monitor ensembles averaged 3.5% FNR@5 with flag-if-any and 7.5% with majority vote, against 5.1% for the best single monitor. Each ensemble used four monitor calls per trajectory, and no string was optimized against the ensembles.
- Do not sanitize the monitor's input as the fix. The same values carry the attack string and the evidence of the hijack.
- Keep the monitor as one layer, and put the guarantee in an architectural boundary such as control-flow separation.
Related¶
- Red-Team Your Blocking Monitor Before You Trust It — the agent-as-attacker case, where the agent forges transcript structure to evade its own gate
- Decomposed Red-Teaming for Agent Monitors — scoring monitors against refined attack trajectories
- Stacking Prompt-Injection Defenses Without Testing the Stack — the static PromptGuard 2 and AlignmentCheck numbers this attack revisits
- Adaptive Evaluation of Out-of-Band Prompt-Injection Defenses — why defense numbers need defense-aware attacks
- Enforced Versus Advisory Controls — a monitor that reads attacker text is an advisory control