LIVE · cybersecurity feed
Live wire
aihigh

Researcher shows how Claude Code can be tricked simply by asking it to summarize a website

A security researcher has demonstrated a method to trick Anthropic's Claude Code, specifically the Opus 5 model running in Auto Mode, into executing arbitrary code by simply asking it to summarize a malicious website. The attack, detailed by Johann Rehberger, also known as wunderwuzzi, reportedly has a success rate of up to 80 percent.

ZeroDay News ·

Source: The Register — Security

A security researcher has demonstrated a method to trick Anthropic's Claude Code, specifically the Opus 5 model running in Auto Mode, into executing arbitrary code by simply asking it to summarize a malicious website. The attack, detailed by Johann Rehberger, also known as wunderwuzzi, reportedly has a success rate of up to 80 percent.

The exploit begins when the agentic coding model is instructed to summarize a website designed to appear as an archive of notebook records. The core of the technique involves subtly manipulating Claude to use the `curl` command-line tool instead of its built-in `WebFetch` utility to retrieve the website's content, without explicitly commanding it to do so.

Initially, the `WebFetch` request fails, returning a "415 Unsupported Media Type" error. This failure prompts Claude to independently decide to access the website directly using a Bash tool call with `curl`. The malicious website then issues a "303 See Other" redirect, leading Claude to download a ZIP archive.

This archive contains several seemingly innocuous files, including catalog metadata, a README, seven Base85/zlib-encoded JSON notebook records, and a macOS decoder binary. Crucially, it also includes a poisoned Python file named `struct.py`. Claude's internal safety guardrails prevent it from executing the provided decoder binary. Ironically, this safety measure becomes part of the exploit path, as the AI then attempts to write its own decoder.

The newly generated decoder imports the `base64` module. The attack then leverages a Python module shadowing technique, where the malicious `struct.py` file, sharing a name with a standard Python library module, is loaded instead of the legitimate one. The standard `base64` module typically imports the legitimate `struct` module, but in this scenario, the malicious local file takes precedence.

Rehberger states that he used ChatGPT to obfuscate the malicious `struct.py` code to bypass Claude's safety controls. This successfully launched a separate Python process to download and execute a remote payload, demonstrated as a command-and-control callback that opened the Calculator application.

In an alternative attack scenario, the malicious `struct.py` launched a second, headless Claude Code instance via `claude -p`. This indicates that the prompt injection can not only facilitate remote code execution but also create new, nested AI agents. The nested Claude instance was observed performing basic reconnaissance commands like `whoami`, `uname`, and `id`, opening Calculator, and writing to local files within the home directory.

Across three different attack variants, each tested five times, Rehberger reported success rates ranging from 60 percent to 80 percent. He noted that while these were small sample sizes, the results are indicative of a motivated attack.

Anthropic reportedly informed Rehberger that the model's "behavior is working as designed," explaining that Auto Mode is a convenience feature backed by a "best-effort classifier" rather than a security guarantee. According to Rehberger's paraphrase of Anthropic's response, the classifier is not designed to stop sophisticated prompt-injection chains composed of individually benign-looking steps. The ultimate security boundary, they suggested, lies in OS isolation and network egress control.

Rehberger's key takeaway is the importance of running coding agents like Claude in a sandboxed environment. He emphasized that the solution to such vulnerabilities, which has been discussed for years, is to avoid trusting the model's output.

aiprompt injectionvulnerabilitycode executionanthropic
ShareXLinkedInWhatsAppFacebook

More News

view all →
breach

Criminal IP Introduces AITEM as the Next Evolution of Attack Surface Management

AI SPERA, the company behind the cyber threat intelligence platform Criminal IP, has announced AITEM (AI-Powered Threat Exposure Management), an expansion of its Attack Surface Management (ASM) offerings. AITEM aims to move beyond traditional asset discovery to provide a more comprehensive approach to understanding, prioritizing, and responding to security exposures. The platform is scheduled…

ai

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly deploying artificial intelligence to disrupt scammers by engaging them with lifelike bots, which the criminals mistake for genuine victims. This strategy aims to waste scammers' time and resources while gathering intelligence on their operations.

ai

The Third-Party Agent Problem: Why Security Built for AI You Chose Misses the Agents You Didn't

A new report highlights a significant blind spot in enterprise security architectures concerning the proliferation of third-party AI agents. The forthcoming 2026 State of Agent Security Report indicates that current security models, often designed to protect AI systems directly chosen and deployed by an organization, frequently fail to account for AI capabilities embedded within third-party…

security

Canadian cybersecurity executive arrested in federal extortion case

A Canadian cybersecurity executive was arrested in Pennsylvania on Thursday, facing federal charges of conspiracy to commit extortion. Edward Dubrovsky, 54, a co-founder and former Chief Operating Officer of CYPFER, a firm specializing in ransomware negotiation, is charged with conspiring to threaten the confidentiality of information for extortion and conspiring to commit Hobbs Act extortion,…

ransomware

FBI Arrests Ransomware Negotiation Firm Co-Founder in ShinyHunters Probe

The Federal Bureau of Investigation (FBI) has reportedly arrested Edward Dubrovsky, a co-founder of the ransomware negotiation firm Cypfer and currently associated with CyberSteward. The arrest is said to be part of the ongoing ShinyHunters investigation, specifically in connection with an incident involving FBI job applicant data.

security

Insider Cyber Extortion Plot Against Industrial Firm Lands Engineer in Prison

A former core infrastructure engineer has been sentenced to prison for an attempted cyber extortion plot against an industrial firm. The engineer reportedly deleted administrative accounts and reset hundreds of user passwords, subsequently demanding a ransom of 20 Bitcoin to prevent further disruption to the company's servers.