Claude Code runs hidden malicious code when opening a GitHub repository, giving attackers full control
Original title:Claude Code runs a GitHub repo's hidden malware without verification, giving attackers full control
AI summary
Security researchers found a new attack vector on Mozilla's GenAI bug bounty platform 0DIN. A seemingly normal GitHub repository contains a setup script that, when run, pulls commands from a DNS entry and executes them; the malicious code never exists in the repository and is invisible to scanners, code review and AI agents. When developers open the repository with AI coding tools such as Claude Code, Claude Code automatically runs the script after encountering a routine error message during setup, opening a reverse shell that lets attackers steal API keys and login credentials and maintain persistent access. The researchers recommend that AI agents display setup script contents before running them and that developers treat setup instructions from third-party repositories as untrusted code.
Key Takeaways
- Security researchers found a new attack vector on Mozilla's GenAI bug bounty platform 0DIN.
- A seemingly normal GitHub repository contains a setup script that,when run,pulls commands from a…
- the malicious code never exists in the repository and is invisible to scanners,code review and AI…
- When developers open the repository with AI coding tools such as Claude Code,Claude Code…
- The researchers recommend that AI agents display setup script contents before running them and…
Quick Facts
- Published
- Updated
- Source
- The Decoder:AI News(RSS)
- Category
- Papers & Research
- AI score
- 73
用 AI 编码工具克隆仓库就能被反向 shell 控制,这个攻击向量比想象中简单。0DIN 的研究把整个链拆得很清楚,每条修复建议开发者现在就能用。
Related entities
Source & copyright
This article is based on curated titles and AI summaries from the AIHOT public API, with attribution and links back. Original copyright remains with the original publishers and authors; this site does not mirror full texts.
How to Cite
When citing this article, keep the title, date, and permalink, and credit Orange News as the source.
Orange News: Claude Code runs hidden malicious code when opening a GitHub repository, giving attackers full control. June 29, 2026. https://new.nat6.net/en/news/cmqz20a0a000dsly4gw09u9xt/