News · Bitdefender · 2 min read
Event date: · Published:
Bitdefender finds malware campaign hijacking AI coding agents on GitHub
Bitdefender Labs says a campaign hid instructions in AGENTS.md and CLAUDE.md files across 22 GitHub repositories to hijack AI coding agents and steal developer credentials.
Bitdefender Labs disclosed on November 17, 2026 that it had uncovered a malware campaign hijacking AI coding agents through poisoned configuration files. The campaign plants hidden instructions inside AGENTS.md, CLAUDE.md and similar agent-configuration files across 22 malicious GitHub repositories, tricking the agents into running a disguised setup.js payload that steals developer credentials and spreads itself further, according to Bitdefender Labs' report on the campaign.
What changed
- Bitdefender Labs researcher Andrei Anton-Aanei identified 22 malicious GitHub links tied to the campaign.
- The attack targets at least 14 AI agent configurations, including Claude, Copilot, Cursor, Cline, Gemini, Amazon Q, Codex, Kiro, OpenCode, Aider, Tabby, Cody, Bolt and Continue.
- It relies on indirect prompt injection through files like AGENTS.md and CLAUDE.md that AI agents read automatically.
- The malicious scripts are disguised as sealed binary artifacts to discourage agents from inspecting them.
- The setup.js payload is a multi-stage loader that hides its functionality using hex-decoding, ROT13 and AES-128-GCM encrypted blobs.
- Using stolen GitHub and GitLab tokens, the malware commits infected files to up to 25 other repositories by default to keep spreading.
What it means for people who build with AI
The campaign shows that the same configuration files developers rely on to steer Claude Code, Cursor, Copilot, Gemini, Cline and other agents can become an attack surface the moment an agent reads them automatically. Anyone who clones an infected repository risks having credentials stolen, including CI/CD and GitHub Actions tokens, cloud platform credentials, package-registry tokens, browser-stored logins, password-manager data, Windows Credential Manager data, SSH keys and .env files. The malware also searches a victim's home directory for AI agent configuration files to inject further malicious instructions, extending its reach beyond the original repository.
Detection and next steps
Bitdefender said its AI Guardian tool detected the malicious instruction file in all 22 samples during internal testing, pointing to automated scanning of agent-configuration files as one way to catch this pattern before an agent executes it. Bitdefender published its findings on November 17, 2026.
Sources
- How AI agents become new targets in GitHub malware campaign (Bitdefender Labs, November 17, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.