Skip to content
AI / LLM Write-up Advanced

Claude Code: Data Exfiltration with DNS (CVE-2025-55284)

Claude Code could be hijacked through indirect prompt injection when it processed untrusted code or external data, causing it to run bash commands that leaked sensitive information such as API keys to external servers via DNS requests without user approval.

embracethered.com

Published on embracethered.com

Today we cover Claude Code and a high severity vulnerability that Anthropic fixed in early June. The vulnerability allowed an attacker to hijack Claude Code via indirect prompt injection and leak sensitive information from the developer’s machine, e.g.

The author, on embracethered.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the assistant treated untrusted content as instructions and could run bash commands without approval, with no restriction on outbound DNS lookups.

Impact

An attacker could leak sensitive information from the developer's machine, such as API keys, to external servers; the text says Anthropic fixed the issue in early June.

What the attacker needed

Claude Code processes untrusted code or data; no user approval needed for commands

The fix

It was fixed by Anthropic in early June.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Claude Code is an AI assistant that can run commands on a developer's computer. If it reads malicious text hidden in code or data, that text can trick the assistant into running commands that send secrets out. The trick here used DNS, the system that turns website names into addresses, to quietly carry data away.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.