Back
Researcher breaks Claude Code's Auto Mode, reaching 80% success
SiTech AI Team3 წთ. საკითხავი

Researcher breaks Claude Code's Auto Mode, reaching 80% success

Johann Rehberger used a malicious website to make Claude Code Opus 5 execute attacker code in Auto Mode, with success rates of 60-80%. Anthropic says the classifier is not a security boundary.

Security researcher Johann Rehberger, who writes the Embrace The Red blog, has published a technique that makes Claude Code — Anthropic's coding agent — run attacker code while operating in Auto Mode, the permission mode that replaced human approval prompts with a safety classifier and became the default in Claude Code in mid-August 2026.

How the attack chain works

The test starts with an ordinary request: summarise a website. The page answers the first fetch with an HTTP 415 error, which nudges Claude to retry with curl in the shell instead of the WebFetch tool. The response then redirects to a ZIP archive holding plausible catalogue records encoded in Base85 and zlib, along with a manifest, a README and a native decoder binary. Claude refuses to run the supplied binary — and instead writes its own Python decoder, which it executes inside the attacker-controlled folder. That folder contains a file named struct.py, which shadows Python's standard library module of the same name. When the decoder imports base64, the poisoned struct.py executes, downloads a remote Python stage and launches a native payload that calls back to a command-and-control server; a calculator opening is the visible proof.

Success rates and a blocked cleanup

Rehberger reports attack success rates of 60% to 80% over small samples, five runs per variant. In some tests Claude later recognised the archive as booby-trapped and tried to kill the malicious process — and Auto Mode denied the cleanup command. A second variant has the poisoned module start another headless Claude Code instance through "claude -p", which performs reconnaissance such as whoami and uname, opens the calculator and writes files outside the workspace, giving the payload an agent of its own.

The dispute with the 0.00% benchmark

Anthropic had commissioned a third-party evaluation that tested 72 indirect prompt injection scenarios ten times each and reported a 0.00% attack success rate for Opus 5 in Auto Mode; Claude Code's Boris Cherny said layered defences could reduce indirect prompt injection on unseen attacks to roughly zero. The researcher's chain was not part of that fixed set, so both results can hold at once — which, he argues, is exactly why a single headline number misleads.

Anthropic closed his report as "Informative": Auto Mode is a convenience feature backed by a best-effort classifier, not a security guarantee, and the real boundary is OS isolation and network egress control. Rehberger agrees that a classifier is not a sandbox and recommends running unattended agents in containers or virtual machines, restricting network access, monitoring them, and keeping home directories, SSH keys and cloud credentials out of their reach.

SSiTech

SiTech — AI-powered web development

We build fast, modern websites and bring AI into real business workflows. Have a project or a question? We'd love to help.