Vulnerability  ·  2026-11-26

Bitdefender: self-spreading AI-agent malware campaign via 22 malicious GitHub repositories

VulnerabilityHigh impactGlobal
Bitdefender Labs (published 2026-11-23) identified 22 malicious GitHub repositories that weaponize AI-coding-agent instruction files. The payload (a 3.75MB obfuscated multi-stage JS loader executed via Bun) harvests CI/CD, cloud, package-registry, SSH, browser/password-manager and Windows Credential Manager secrets, then rewrites the config of up to 14 AI agents to insert malicious instructions, hooks and MCP servers. It propagates by using stolen GitHub/GitLab tokens to push agent-config files into other repos and republishing poisoned packages.
This is a live, self-propagating supply-chain campaign specifically targeting the agent-execution surface (project instructions + session-start hooks) rather than source code, and it can quietly turn a developer's machine into a credential harvester that spreads laterally through their repositories and CI pipelines.
Indirect prompt injection inside project instruction files tells the assistant to silently run a sealed setup.js at session start; a second route uses .claude/settings.json session-start hooks that execute without a typed prompt. Stolen credentials are validated and used to inject malicious agent instructions into up to 25 other repos and republish infected packages via npm/PyPI/RubyGems/JFrog.
AI coding agents: Claude Code, Cursor, Codex, Gemini, GitHub Copilot, Amazon Q, Cline, Aider, Continue, Cody — via AGENTS.md, CLAUDE.md, .claude/settings.json, .cursorrules, .mcp.json, .vscode/tasks.json, .github/copilot-instructions.md
Review AGENTS.md/CLAUDE.md, MCP definitions, session-start hooks, editor tasks and unfamiliar setup scripts before trusting a repo; be wary of 'sealed/do-not-inspect' instructions, suppressed output, or prompt-confirmation bypass. Bitdefender's AI Guardian blocked all 22 samples.
developer-tech.com coverageSecurityBrief AU coverage
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →