Axiom Indirect Prompt Injection Against Claude Code
Score: 7/10

Axiom Indirect Prompt Injection Against Claude Code

An attacker uses indirect prompt injection in a benign-looking repository to trick the Claude Code agent into executing a reverse shell fetched via DNS TXT records.

Executive Summary

Researchers have demonstrated a critical supply-chain attack vector targeting agentic coding tools like Claude Code through indirect prompt injection. By exploiting the autonomous capabilities of AI agents to resolve errors and execute setup scripts, an attacker can achieve full system compromise without including any malicious code directly in the repository. The attack leverages the 'Axiom' deployment platform as a decoy, utilizing legitimate-looking error messages to steer the agent toward executing a malicious setup script.

The attack chain is uniquely stealthy because the final payload is never stored on disk or committed to the codebase; instead, it is retrieved at runtime from a DNS TXT record. This bypasses traditional static analysis (SAST) and manual code review. Once executed, the agent inadvertently establishes a reverse shell, granting the attacker interactive access to the developer's environment, including sensitive credentials such as AWS and Anthropic API keys.

This highlights a significant shift in the threat landscape where the trust placed in AI agents to manage project environments creates a new attack surface. Organizations must implement stricter controls over what commands AI agents are permitted to execute autonomously, particularly when interacting with untrusted or third-party repositories.

Key Details

Threat Name

Claude Code Indirect Prompt Injection

Affects

—

Adversary

—

MITRE Techniques

Malware/Tools

Axiom

Report Score

7out of 10
Quality Score
Good
IOC Quality6
TTP Details9
Detection Guidance4
Enterprise Relevance8
Clarity & Structure9
Technical Depth8

Sources