Clean GitHub repo tricks AI coding agents into running malware
- Published
- Record updated
Summary
Researchers at Mozilla's 0DIN AI security platform demonstrated that an agentic coding tool such as Claude Code could be tricked into opening an interactive shell on a developer's device while setting up a clean-looking GitHub repository. The attack chains a deliberate initialization error in a Python package (python3 -m axiom init), which the agent automatically tries to fix, to a shell script that fetches a command from an attacker-controlled DNS TXT record. The researchers say the method is currently a concept, but warn that attackers could spread such repositories through fake job postings, tutorials, blog posts, or direct messages.
Mitigation
To prevent such exploitation, 0DIN suggests that AI agents should disclose the full execution chain of setup commands, including scripts and code fetched dynamically at runtime.
Topics
Related items
- InfoPrompting AI to be ‘thorough’ can drive sandbox escapes, Anthropic saysSame vendor · CSO Online
- InfoDespite doom and gloom headlines, AI attacks are thin on the groundSame vendor · CSO Online
- InfoDrupal Flaw Found by Anthropic Scanner Exploited in AttacksSame vendor · SecurityWeek
- InfoCrowdStrike Accelerates the Shift to the Agentic SOCSame vendor · CrowdStrike Blog
- InfoThree LLM inflection points in twelve monthsSame vendor · Simon Willison's Weblog