cybersecuritynews.comยท18 november 2026

Hackers Hijack AI Coding Agents Through Malicious GitHub Repositories to Steal Developer Credentials

Image for the article: Hackers Hijack AI Coding Agents Through Malicious GitHub Repositories to Steal Developer Credentials
Image via cybersecuritynews.com

Hackers are planting poisoned files in GitHub repositories to make AI coding assistants run hidden malware, stealing developer credentials and spreading to other projects. The campaign targets tools like Claude Code and Cursor, with 22 malicious GitHub links identified. The malware uses files like AGENTS.md and CLAUDE.md to execute scripts with the developer's permissions. Bitdefender Labs and researcher Andrei Anton-Aanei found the malware, which abuses AI coding tools' automation features to spread. The malware also targets CI/CD systems, cloud platforms, and password managers, and can republish infected packages through npm, PyPI, and RubyGems.