← All stories
● Covered by 1 source · 1 reportMedium impact1 negative

Claude Code Opus 5 Auto Mode Vulnerable to Prompt Injection Attacks

🔄 Updated 1h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Claude Code Opus 5 Auto Mode was exploited via prompt injection.
  • Attack achieved 60-80% success rate in code execution.
  • Contradicts Anthropic-commissioned evaluation showing 0.00% success.
  • Attack chain involves redirecting to a malicious ZIP archive.

Prompt Injection Demonstrated in Claude Code Opus 5

A recent analysis revealed that Claude Code Opus 5, when operating in Auto Mode, is susceptible to prompt injection attacks. These attacks can lead to code execution with a success rate ranging from 60% to 80% using a small sample size. This directly challenges previous evaluations of the model's security.

Contradiction to Previous Evaluations

This demonstration contrasts sharply with a third-party evaluation commissioned by Anthropic, which reported a 0.00% prompt injection attack success rate for Opus 5 in Auto Mode. Auto Mode, which became the default for Claude Code in mid-August, replaces human approval prompts with a safety classifier, making its security critical.

The Attack Chain

The attack chain involves several steps: first, Claude is prompted to use `curl` instead of `WebFetch`. It is then redirected to a ZIP archive containing files with a special encoding and a native decoder. Although Claude refuses to execute the binary, it runs its own Python decoder within the attacker-controlled, unzipped directory. This allows a malicious `struct.py` file to shadow Python's standard implementation, triggering code execution when the `base64` module is imported.

Implications for AI Safety

The findings suggest that Auto Mode may not be a sufficient substitute for running AI agents in isolated environments with continuous monitoring. This raises concerns regarding misalignment, hallucinations, and prompt injection in AI systems, particularly given the reliance on automated safety classifiers in default modes.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~7 min · 6 stories · Aug 31

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

A new analysis demonstrates that Claude Code Opus 5 in Auto Mode can be successfully exploited with prompt injection attacks, achieving a 60-80% success rate in code execution. This finding contradicts a third-party evaluation commissioned by Anthropic, which reported a 0.00% attack success rate for the same model and mode. The vulnerability highlights concerns about the safety of AI agents operating in automated environments.