Red-Teaming Auto Mode: Improving Blocking Classifiers Against Malign Coding Agents

Alex Remedios, Simon Storf, Fabien Roger, John Hughes
9/17/2026
2 citations
cs.CRcs.AIcs.CL

Official code: safety-research/red-teaming-auto-mode (10 stars, Python, MIT, last commit 2026-09-25).

Abstract

To keep coding agents from going off the rails, production systems now review each proposed action with a blocking monitor that can reject it before it runs (Auto Mode in Claude Code, Guardian in OpenAI's Codex). Prior evaluations of such monitors largely measure robustness to accidental harm or prompt injections from untrusted sources looking to hijack the agent.

Show full abstract

Less understood is how they hold up when the agent they monitor is persistently misaligned. To understand this risk, we task an adversarial agent with evading production blocking monitors and causing catastrophic harm, e.g. by exfiltrating its own weights. We find that when instructed with high-level attack strategies, adversarial agents can succeed through several distinct mechanisms, such as agent-generated prompt injection against the monitor, multi-agent attacks, and malicious compaction. In particular we find that in 79% of trials, the agent can use an injection attack against Auto Mode and Guardian to run arbitrary bash commands. We also find that it is possible to greatly improve Auto Mode through design changes like enhancements to tool coverage, changes in transcript formatting, and the addition of an agentic monitor stage. Even with these improvements, preventing multi-context attacks at an acceptable cost remains an open problem. By detailing our red-teaming methodology and highlighting new attack vectors, we aim to help defenders evaluate their mitigations against the possibility of persistent malign coding agents. Code is available at https://github.com/safety-research/red-teaming-auto-mode.

View on arXivView PDF

Code Implementations(1)

MIT
102Python, Jupyter NotebookSep 7, 20262 months agoMIT

Similar Papers

Cite this paper

@article{remedios2026redteaming,
  title  = {Red-Teaming Auto Mode: Improving Blocking Classifiers Against Malign Coding Agents},
  author = {Alex Remedios and Simon Storf and Fabien Roger and John Hughes},
  year   = {2026},
  eprint = {2609.19587},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.19587v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.19587.svg)](https://codeofpaper.com/paper/2609.19587)

Discussion