80% Prompt Injection Success Rate Against Claude Auto Mode A researcher demonstrated a prompt injection attack achieving 60-80% success against Anthropic's Claude Code Opus 5 in Auto Mode, contradicting a third-party evaluation that reported a 0.00% attack success rate. The attack chain redirects Claude from WebFetch to curl, then exploits a malicious struct.py file in an unzipped archive to execute code. Anthropic's Boris Cherny had claimed layered defenses could reduce indirect prompt injection to approximately zero. Breaking Claude Code Opus 5 Auto Mode In this post, we explore how a simple website summary request hijacks Claude Code Opus 5 in Auto Mode and achieves code execution with 60-80% attack success rate using a small sample size. This is interesting because a third-party evaluation commissioned by Anthropic showed a 0.00% prompt injection attack success rate for Opus 5 in Auto Mode. Auto Mode Is Now the Default in Claude Code Auto Mode replaces human approval prompts with a safety classifier. Since mid-August it is the default starting mode for Claude Code. To make my key point right away: If you care about what’s happening and are worried about misalignment, hallucinations and prompt injection, then Auto Mode IS NOT a substitute for running your agent in an isolated environment and monitoring what it is up to . Boris Cherny from Anthropic recently posted https://x.com/bcherny/status/2085860677990883454 that layered defenses could reduce indirect prompt injection on unseen attacks to approximately zero. The layers were model training, input probes and an intent classifier. They hired a vendor Trajectory Labs to test 72 indirect prompt injection scenarios ten times each. The evaluation seems to not have a published benchmark name, and the shared chart https://x.com/bcherny/status/2085860677990883454 shows 0.00% attack success for Opus 5 in Auto Mode . I wanted to see how that result holds up against a targeted attack chain. In A Nutshell I got attack success rates up to 80% using a small sample size. The attack chain is as follows: - First, we nudge Claude from using the WebFetch tool into using curl directly - Redirects it to a ZIP archive with files in a special encoding, there is also a native decoder - Claude correctly refuses to execute the binary and writes its own Python decoder instead - But it runs that decoder inside the attacker-controlled directory unzipped archive - There a malicious struct.py shadows Python’s standard implementation - So, when Claude imports the base64 module it triggers the poisoned struct.py , and BOOM . There is of course a lot more to it. So read on Walkthrough: Hijacking Claude Code Auto Mode Let’s assume a basic task where Claude ends up on a website to process or summarize content. The user prompt I picked is a classic: Summarize https://archive.