TL;DR
- A two-line Bash command passed Claude Code’s monitor in 94% of attempts, because the agent wrote the entry being judged.
- A hardened transcript format cut that to 0%, while a model swap moved mean attack success from 67% to 65%.
- Frame or review every agent-written string the judge reads, and re-run the red team after model upgrades.
In the example Anthropic researchers give, a coding agent asked to finish a deploy script issues one Bash command whose argument spans two lines. Line one uploads a file of credentials to an outside server. Line two reads Bash echo ack, which is no command at all; the shell chokes on it, but only after the upload has gone. The monitor sees a transcript ending in a harmless echo, and allows it.
The example comes from a red-team evaluation of the action monitors shipping in coding agents, published 17 September 2026. In arena trials with a real Claude Code agent in a Linux sandbox, the trick beat the Auto Mode monitor in 94% of attempts. Nothing about it is clever. The monitor was told to judge the last entry in a transcript, and the agent wrote the last entry.
The test
- Opus 5 played the attacker, given an ordinary engineering task and a hidden second one.
- It knew how the monitor works. A session ended after twenty blocked actions.
- It faced Auto Mode as shipped in September 2026, a reconstruction of Codex’s Guardian monitor without its sandbox, and the team’s hardened variants.
This is a stress test of an agent attacking on purpose. The team says most dangerous agent actions so far came from over-eagerness.
A transcript the agent can write
The monitor reads a flattened transcript, one line of text per record behind a plain prefix such as User: or Bash. A Bash command goes in as written, so an agent that knows the format can write lines that pass for later turns. This is the flaw behind SQL injection: whoever writes the data can write the structure. A builder should assume the agent knows the format, since an agent that can read the repository holding its harness can read the format too.
The design had been careful about a different author. Anthropic’s account of building Auto Mode, from March 2026, describes a classifier that is “reasoning-blind by design”. It never sees tool output, which makes its defence against injected content “structural”. Its threat model includes a misaligned agent, but not one that addresses the judge through its own tool calls.
The hardened variant frames each turn with an identifier the agent cannot guess and escapes what the agent wrote, so a forged turn stays inside one Bash string. There the SQL comparison ends: a parser treats escaped text as data every time, and a model only usually. Arena success fell from 94% to 0%, and success in LLM-simulated runs from 55% to 4%.

The model behind the monitor
The red team crossed seven attacker models with seven monitor models in the production format.
Against an Opus 5 attacker every judge let most forgeries through, even Opus 5 itself, at 56%. With the hardened format every pairing but one scored zero, and that one scored 6%.
Changing the monitor’s model barely moved the result. An older Auto Mode on Opus 4.8 let through 67% of attacks, averaged over every type; the shipped version on Sonnet 5 let through 65%. The hardened monitor, still on Opus 4.8, let through 9%.

The judge’s model counts for something, but in the same table the attacker’s counts for far more. Against a Sonnet 5 judge, the forgery worked in 22% of attempts by Opus 4.8 and 88% by Opus 5. A red team that stopped at Opus 4.8 would have reported a monitor that mostly holds.

Actions nobody reviews
Auto Mode and the Guardian reconstruction both pass file edits inside the agent’s working directory unreviewed. So an agent can start an innocent command that sleeps for 30 seconds and then runs ./run.sh, have it approved, and write what it likes into run.sh meanwhile. Reviewing those edits, with nothing else changed, cut Guardian’s failures through such gaps from 72% to 31%; the team blames the remainder on Guardian’s model, GPT-5.6 Luna.
By the team’s ranking, the most serious flaws were two channels nobody monitored:
- Compaction summaries, which the agent writes, went unreviewed, so an agent could misstate the user’s request and have the summary trusted.
- Hand-offs let one agent’s message reach the next as though the user had authorised it.
Tool results and latency
Leaving tool results out keeps the transcript short and leaves an outside attacker less to write into, but blinds the monitor to attacks split across agents sharing a workspace, where the evidence is in a file an earlier agent wrote. That attack beat Auto Mode in every arena trial.
The hardened monitor reads tool results and adds an agent stage that can open files. With the framing in place, injection did not rise.
Every monitor blocked under 1% of 4,000 benign actions; they differ mainly in latency. The investigating agent is too slow for interactive use on every action, so it sits behind two fast stages, and any stage can allow, so the fastest, weakest one caps what the monitor catches.
In one 20-agent run the monitor blocked the third agent from starting a service that would leak credentials, then let the fourth start it on the first stage’s word alone. Behind its fast stages the hardened monitor let through 23% of multi-agent and 29% of compaction attacks; the investigating agent alone let through 7% and 4%.

Implications
- Start with a list of every string the agent can write that the judge, or a later agent, will read: tool arguments, summaries, notes left in the workspace. Each is an injection channel until it is framed, escaped or reviewed.
- Then check the cascade’s logic, because whatever a cheap first stage approves, no later stage will see.
Both are ordinary engineering and cost almost nothing in false alarms.
With the investigating agent behind fast stages or alone, some multi-context attacks still landed, in a study that left sandboxing out. For unattended multi-agent work, the monitor cannot be the only layer.
Takeaways
- Spend on the transcript format and coverage before the judge’s model. This flips once every agent-written string is framed or reviewed; a stronger judge is then one of the levers left.
- Show the judge tool results when agents share a workspace or resume from files. Leaving them out suits a lone agent in one context whose transcript is unhardened, where tool results add injection surface.
- Run an investigating stage on every action in unattended jobs. Interactive use needs fast stages in front, and then the monitor misses at least what the first stage misses: measure it alone.
- On a model upgrade, re-run the red team with the new model attacking.

