New GitHub Exploit Allows AI Coding Agents to Execute Malicious Payloads

New GitHub Exploit Allows AI Coding Agents to Execute Malicious Payloads

First seen 28 Jun 2026, 09:05 UTC Bleepingcomputer0din.aiJbklutseFeeds.4SysopsLetsdatascience 83% similarity 61.5
Share:

Article Content

Browse articles
ThreatCluster

Researchers from Mozilla's 0DIN have demonstrated a new attack vector that allows AI coding agents, specifically Anthropic's Claude Code, to execute malicious payloads from seemingly benign GitHub repositories. The attack exploits the agent's automated error recovery process, where it runs initialization commands without human oversight. This method involves three steps: a Python package requiring initialization, a command that runs a script, and a DNS TXT record controlled by the attacker that retrieves and executes a payload. Notably, no malicious code exists in the cloned repository, making detection by security scanners and human reviewers nearly impossible. The attack grants the attacker a shell with the developer's privileges, allowing access to sensitive data such as environment variables and API keys. Although currently a proof-of-concept, the method poses a significant risk to developers using automated coding tools. The researchers recommend treating automated initialization steps as untrusted execution and implementing explicit human approval gates. No active exploitation has been reported yet.

Key Points: • AI coding agents can be tricked into executing malware from clean GitHub repositories. • The attack exploits automated error recovery and trust in initialization commands. • No malicious code is present in the repository, evading traditional security checks.

ThreatCluster AI

Timeline

2026-06-27
0DIN researchers publish exploit demonstration
Mozilla's 0DIN showcased how Claude Code can be manipulated to execute a reverse shell from a clean GitHub repo.
0din.ai
2026-06-28
Media coverage of the exploit
Various outlets, including Let's Data Science and BleepingComputer, reported on the 0DIN findings, emphasizing the attack's implications for AI coding tools.
Letsdatascience
2026-06-28
Security recommendations issued
0DIN recommended that AI agents disclose execution chains and restrict network access during initialization to prevent exploitation.
Bleepingcomputer

Community

Browse all →