FakeGit Campaign: How 7,600 Fake GitHub Repos Tricked AI Coding Agents Into Distributing Malware
The FakeGit campaign, active since March 2025, used 7,600 malicious GitHub repos (800+ disguised as AI Skills/MCP servers) to trick AI coding agents like Claude Code, Gemini, and ChatGPT into autonomously recommending... Researchers attribute the campaign to a single Vietnamese speaking operator and recommend enterp...
Published byEdited with DeepSeek-V4-FlashImages generated with GPT Image 1.5
The FakeGit campaign, active since March 2025, used 7,600 malicious GitHub repos (800+ disguised as AI Skills/MCP servers) to trick AI coding agents like Claude Code, Gemini, and ChatGPT into autonomously recommending...
Researchers attribute the campaign to a single Vietnamese speaking operator and recommend enterprises maintain a curated catalog of approved AI components, sandbox new agent capabilities, and restrict autonomous agent...
The campaign seeded 600+ malicious listings on public AI registries, ensuring agents would discover the fake repos during normal operation.
Search & fact-check with cited sources for What was the FakeGit campaign, how did it use nearly 7,600 fake GitHub repositories to trick AI cThe AgentBaiting technique weaponizes AI coding agents' trust, turning them into unwitting recommenders of malware-laden repositories.
AI Prompt
Create a landscape editorial hero image for this Studio Global article: Search & fact-check with cited sources for What was the FakeGit campaign, how did it use nearly 7,600 fake GitHub repositories to trick AI c. Article summary: Here is a comprehensive, source-cited breakdown of the FakeGit campaign.. Topic tags: general, general web, user generated. Style: premium digital editorial illustration, source-backed research mood, clean composition, high detail, modern web publication hero. Use reference image context only for broad subject, composition, and topical grounding; do not copy the exact image. Avoid: logos, brand marks, copyrighted characters, real person likenesses, fake screenshots, UI text, readable text, watermarks, charts with fake numbers, clickbait thumbnails, icons, and tiny thumbnail layouts. Make it useful as an illustrative visual, not as factual evidence.
openai.com
In July 2026, researchers at Island Security publicly documented a massive malware distribution campaign codenamed FakeGit. Its defining innovation is a technique called AgentBaiting—leveraging AI coding agents' helpfulness to make them autonomously discover and recommend malicious repositories to the user.
Studio Global AI
Continue your research
This page includes a source-backed answer you can continue inside Studio Global.
What is the short answer to "FakeGit Campaign: How 7,600 Fake GitHub Repos Tricked AI Coding Agents Into Distributing Malware"?
The FakeGit campaign, active since March 2025, used 7,600 malicious GitHub repos (800+ disguised as AI Skills/MCP servers) to trick AI coding agents like Claude Code, Gemini, and ChatGPT into autonomously recommending...
What are the key points to validate first?
The FakeGit campaign, active since March 2025, used 7,600 malicious GitHub repos (800+ disguised as AI Skills/MCP servers) to trick AI coding agents like Claude Code, Gemini, and ChatGPT into autonomously recommending... Researchers attribute the campaign to a single Vietnamese speaking operator and recommend enterprises maintain a curated catalog of approved AI components, sandbox new agent capabilities, and restrict autonomous agent...
What should I do next in practice?
The campaign seeded 600+ malicious listings on public AI registries, ensuring agents would discover the fake repos during normal operation.
Active since at least March 2025 and tied to a single Vietnamese-speaking operator, the campaign deployed nearly 7,600 malicious GitHub repositories, of which over 800 were disguised as AI Skills or Model Context Protocol (MCP) servers—the exact types of components that agents like Claude Code, Gemini CLI, and ChatGPT search for and recommend. By July 2026, GitHub's download counters recorded over 14 million events tied to the campaign files.
What Is AgentBaiting?
AgentBaiting is a supply-chain attack on the AI agent's trust model. Instead of relying on victims to stumble onto malicious links, the attackers engineered their fake repositories to be found and promoted by the AI agents themselves. The attack chain works as follows:
Fake AI Skills and MCP servers: More than 800 of the campaign's repos masqueraded as AI Skills (plugins for coding agents) or MCP servers—components that agents autonomously search for when a user asks to integrate a tool or service.
Listings on public AI registries: Attackers seeded over 600 malicious listings on public AI registries and directories, ensuring their repos appeared in agent search results.
Social engineering via READMEs: The malicious repos used copied legitimate projects, look-alike developer profiles, and convincing README files with instructions that the AI agents would trust and relay to users.
Autonomous recommendation: When a developer asked the agent to find a tool or initialize a project, the agent would search the web, discover one of these fake repos, read the README, and present the installation instructions—including a malware download—as a helpful recommendation.
Island Security lead researcher Oleg Zaytsev described the shift: "What was built to trick people now tricks AI agents too".
Malware Payloads: SmartLoader and StealC
The FakeGit campaign deployed a two-stage malware chain:
SmartLoader: The initial payload delivered by the fake repos. It is a multistage LuaJIT-based loader that establishes persistence on the system, retrieves encrypted payload stages, and executes them in memory.
StealC: The ultimate payload. An information-stealing malware that exfiltrates credentials, API keys, browser data, and other sensitive information from compromised Windows systems.
Scale of the Operation (as of July 2026)
Metric
Figure
Malicious GitHub repositories
~7,600
Fake AI Skills / MCP server repos
800+
Attacker-controlled GitHub accounts
~6,600
Malicious listings on AI registries
600+
Total GitHub download events observed
14 million+
Campaign active since
March 2025
Attacker attribution
Single Vietnamese-speaking operator
Note: The download count of 14 million+ reflects all events recorded by GitHub's counters for the campaign files, which may include automated requests as well as genuine user downloads.
Researcher-Recommended Mitigations for Enterprises
Based on Island Security's analysis and cross-referenced reporting from Mozilla's 0din team and other security researchers, the key defenses are:
1. Maintain a curated, approved catalog of AI Skills, MCP servers, and agent extensions. Only allow agents to install components from this sanctioned list. Document origin, owner, repository, commit hash, and version for every entry.
2. Sandbox new agent capabilities. Before rolling out any new AI Skill or MCP server to the broader organization, evaluate it in an isolated, controlled environment.
3. Verify publisher and project integrity. Cross-check the publisher's identity, account age, and project history before trusting any third-party AI plugin. Treat high-star/high-download repos as potentially gamed.
4. Monitor agentic pathways. Implement monitoring for outbound requests from AI agents to external repositories, especially raw content downloads from GitHub that fall outside established developer baselines.
5. Restrict autonomous agent behavior. Configure AI coding agents to require user confirmation before installing new tools, running shell commands from README instructions, or downloading external packages.
6. Apply strict egress controls. Limit what endpoints AI agent infrastructure can reach, and maintain an "approved sources" allowlist for code and package downloads.
7. Treat public AI registries as untrusted. Assume any component discovered by an agent from a public registry may be malicious until verified through the approved catalog.
mallory.ai
Fake GitHub Repositories Deliver StealC and Malware Through AI and Software Lures | Mallory