Bitdefender finds GitHub malware that tells AI coding agents to run a credential stealer
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.
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.
We hope you enjoyed this article
Consider subscribing to one of our newsletters like Cybersecurity AI Weekly or Daily AI Brief.
Also, consider following us on social media:
More from Cybersecurity
Nov 23 Google adds checkpoint that blocks AI agent tool calls breaking company rules Nov 22 Palo Alto Networks in talks to buy AI pentesting startup Terra Security Nov 22 ASIO chief warns data centres and AI expose Australia to foreign interference Nov 22 New Zealand cyber agency warns of rising attacks using the ARTEX AI tool Nov 22 inforcer survey: MSPs sell Microsoft Copilot ahead of data controlsCybersecurity AI Weekly
Weekly newsletter about AI in Cybersecurity.
Humanoid Robot Makers
Companies building humanoid robots, from startups to Tesla and Boston Dynamics
Market 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
Microsoft Says AI Agent Went From GitHub Secrets to Azure Key Vault Data in Five Minutes
Malicious versions of Microsoft's agent-framework package on PyPI stole Azure and CI credentials, Wiz says
Claude Code's "don't ask again" option leaked 2,539 developer secrets to public GitHub repos, Apiiro finds
Amazon: China-linked hackers' AI agents found and exploited a zero-day on their own
Hugging Face Malware Campaign Returns After Takedown
Daily AI Brief: the AI news that matters, in your inbox.