← All IntelIntel / article
Breaking Claude Code Opus 5 Auto Mode
- Source
- simonwillison.net
- Publisher
- Simon Willison
- Date
Context
A command-approval classifier can miss danger hidden in the environment where a command runs. In Johann Rehberger's reported test of Auto Mode, Anthropic's Claude Code refused to run a supplied executable but wrote its own decoder and ran it inside the untrusted extracted directory. A local impersonating a standard Python module then executed during an import.
The reported 80% success figure came from four successes in five trials of one variant, not a general failure rate. Simon Willison's later update describes this as a confused-environment attack rather than classic . The case illustrates why approving an apparently ordinary command and restricting what its can access are separate protections.
Terms in this piece · Glossary
- File — A named unit of stored data that keeps its contents while no program is using it.
- prompt injection — An attack that hides instructions in content an AI will read — a webpage, email, or document — tricking it into following the attacker instead of the user.
- Process — A running instance of a program, with its own working memory, open files and identity.
- Agent — A system in which a model repeatedly chooses operations, a harness carries them out, and the results return to the model to inform its next choice.
Read the source simonwillison.net
Tools in this story
Recommended reads
articleAuto mode is now the default in Claude Code for Pro, Max, and Team plansSimon Willison
videoThe Future of Claude Code: Mods, Mutable Software, & Multiplayer Agents — Thariq Shihipar, AnthropicLatent Space
videoWe recently made auto mode the default in Claude Code, which means you no longerClaudeDevs