MediumNewsLLM-specific
Breaking Claude Code Opus 5 Auto Mode
- Published
- Record updated
Summary
Johann Rehberger reported an attack against Claude Code's auto mode, which Anthropic made the default to guard against prompt injection. He says the attack works 80% of the time by tricking the agent into downloading and unzipping an archive, then running code that imports base64 and so executes a local struct.py file. In some runs, auto mode denied Claude's attempt to terminate the malware process after it detected the compromise.
Mitigation
Run unattended coding agents in a container, VM or OS sandbox. Restrict network egress. Monitor your agents. Do not expose home directories, SSH keys, cloud credentials to the agent runtime.
Related items
- InfoPrompting AI to be ‘thorough’ can drive sandbox escapes, Anthropic saysSame vendor · CSO Online
- InfoDespite doom and gloom headlines, AI attacks are thin on the groundSame vendor · CSO Online
- InfoDrupal Flaw Found by Anthropic Scanner Exploited in AttacksSame vendor · SecurityWeek
- InfoCrowdStrike Accelerates the Shift to the Agentic SOCSame vendor · CrowdStrike Blog
- InfoThree LLM inflection points in twelve monthsSame vendor · Simon Willison's Weblog