Bitdefender finds GitHub malware that tells AI coding agents to run a credential stealer
Planted AGENTS.md and CLAUDE.md files and session hooks make assistants run a hidden payload that steals tokens and spreads to other repositories.
23 Nov 2026 ยท Cybersecurity
Bitdefender Labs has found a malware campaign that uses GitHub content to target developers working with AI coding assistants, the company said on 17 November. Researcher Andrei Anton-Aanei has identified 22 malicious GitHub links so far.
Cybersecurity AI Weekly covers stories like this, every Monday. Free.
The attack plants instruction files such as AGENTS.md and CLAUDE.md that tell the assistant to run a file named setup.js without reading it, calling it a "sealed binary artifact". A second route uses session-start hooks in configuration files such as .claude/settings.json, which can run a command once a developer trusts the repository, with no prompt needed.
The payload steals SSH keys, API keys, cloud secrets, CI/CD tokens, package-registry credentials, browser data and password-manager data. It then spreads: it searches the victim's machine for configuration files of 14 AI agents and injects malicious instructions, hooks or MCP server settings, and uses stolen GitHub or GitLab tokens to commit similar files to up to 25 repositories by default. It can also try to republish infected packages through npm, PyPI, RubyGems and JFrog.
Bitdefender advises reviewing .claude/, .cursor/ and .gemini/ directories and any instruction that says not to inspect a file before running it.
Where this comes from
bitdefender.com AI Agents Targeted Through Malicious GitHub RepositoriesIn this story
More from Cybersecurity
Dec 4 US Air Force adds up to $2 million for Base Operations' AI counter-drone analytics Dec 4 UK tech committee chair calls for AI model testing before release over threat to encryption Dec 4 Alibaba Cloud's command-line tool told AI agents to hand over local data, and the company says it will stop Dec 4 UK bank regulator says frontier AI may threaten banking encryption sooner than quantum computers Dec 4 Perplexity says it stopped an autonomous AI agent that attacked it for two weeksMarket report
2025 Generative AI in Professional Services Report
Thomson Reuters
This report by Thomson Reuters explores the integration and impact of generative AI technologies, such as ChatGPT and Microsoft Copilot, within the professional services sector. It highlights the growing adoption of GenAI tools across industries like legal, tax, accounting, and government, and discusses the challenges and opportunities these technologies present. The report also examines professionals' perceptions of GenAI and the need for strategic integration to maximize its value.
Read moreYou may also like
TrojanPony malware hides in fake coding-agent skills across 487 repositories, AIR finds 26 Nov 2026 Microsoft Says AI Agent Went From GitHub Secrets to Azure Key Vault Data in Five Minutes 6 Nov 2026 Malicious versions of Microsoft's agent-framework package on PyPI stole Azure and CI credentials, Wiz says 18 Nov 2026 Claude Code's "don't ask again" option leaked 2,539 developer secrets to public GitHub repos, Apiiro finds 8 Nov 2026 Amazon: China-linked hackers' AI agents found and exploited a zero-day on their own 21 Nov 2026 CloudSEK says AI-assisted React2Keys campaign stole over 50,000 AI, cloud and payment keys 30 Nov 2026Daily AI Brief: the AI news that matters, in your inbox.