FakeGit: A Massive Malware Distribution Network on GitHub
Cybersecurity researchers have uncovered a sprawling malware distribution campaign that has infected nearly 7,600 GitHub repositories. Dubbed FakeGit, the operation is designed to trick developers into downloading malicious files, with over 800 of these repos posing as artificial intelligence (AI) skills or Model Context Protocol (MCP) servers to deliver a malware family called SmartLoader.
The scale is staggering. Think about that number for a second — 7,600 repositories. That’s not a lone hacker messing around; it’s an organized, industrial-scale operation. And it’s targeting a very specific audience: developers who are hungry for the latest AI tools and eager to integrate MCP servers into their projects.
How FakeGit Works: Copycats, Lookalikes, and Malicious ZIPs
The FakeGit campaign relies on social engineering techniques that are almost too effective. According to researchers, the attackers use copied projects, lookalike developer profiles, and convincing READMEs to build a veneer of legitimacy. The repos look real. They have stars, forks, and commit histories that appear active. But hidden inside are malicious ZIP archives that deploy SmartLoader when opened.
SmartLoader is a stealthy downloader that fetches and executes additional payloads on the victim’s machine. It’s not the final stage — it’s the gateway. Once SmartLoader is in, it can drop anything from ransomware to credential stealers, depending on what the attackers want.
The MCP Server Angle
What makes FakeGit particularly sneaky is its focus on MCP servers. The Model Context Protocol is a relatively new standard that lets AI models interact with external tools and data sources. Developers are flocking to it, and attackers know it. By posing as MCP servers, these malicious repos promise easy integration with AI workflows — a tempting offer for anyone building LLM-powered applications.
It’s a classic supply-chain attack, but with a modern twist. Instead of compromising a legitimate package, the attackers are creating their own fake infrastructure and letting developers come to them.
Why Developers Are Falling for It
The success of FakeGit hinges on a simple truth: developers are busy and often trust what they see on GitHub. If a repo has a professional README, a few thousand stars, and an active-looking maintainer, most people won’t dig deeper. The attackers exploit that trust ruthlessly.
Here’s what a typical victim might encounter:
- A repository named something like awesome-mcp-server or ai-agent-toolkit that appears in search results.
- A README with polished documentation, screenshots, and even installation instructions.
- A ZIP file that contains a seemingly useful script — but also a hidden payload.
Once that ZIP is extracted and executed, SmartLoader takes over. No warnings, no second chances.
How to Protect Yourself from FakeGit and Similar Attacks
If you’re a developer, this should be a wake-up call. The days of blindly cloning repos and running code are over. Here are some practical steps to avoid becoming a victim:
- Check the repo’s history. Look for sudden bursts of activity or a recently created account that suddenly has popular repos. Legitimate projects grow organically.
- Inspect the ZIP files. Before extracting anything, scan it with antivirus software. Better yet, use a sandbox environment to test the contents.
- Verify the developer’s profile. Look for links to personal websites, a consistent contribution history, and real social media presence. Fake profiles often have few connections.
- Read the code. If the repo is small enough, skim the source. Malicious code often hides in obfuscated scripts or unusual function calls.
- Use trusted sources. Stick to well-known packages and repositories that have been vetted by the community. When in doubt, don’t install.
These aren’t just best practices — they’re survival skills in the current threat landscape.
The Bigger Picture: AI Tools as Attack Vectors
FakeGit is part of a worrying trend. As AI adoption explodes, attackers are shifting their focus to AI-related tools and frameworks. MCP servers, AI skills, and even AI coding assistants are becoming prime targets. The reason is simple: developers are integrating these tools into their workflows at breakneck speed, often without the same security scrutiny they’d apply to traditional software.
This isn’t the first time we’ve seen this. Earlier this year, researchers flagged similar campaigns using malicious npm packages to target AI developers. The pattern is always the same — create something that looks useful, let developers download it, and then exploit the trust.
The FakeGit campaign is a stark reminder that open-source ecosystems are not inherently safe. They’re communities, and like any community, they have bad actors. The key is to stay vigilant and treat every download as a potential threat.
What to Do If You’ve Been Affected
If you suspect you’ve downloaded a malicious repo from the FakeGit campaign, act fast. Disconnect the machine from the network to prevent further communication with the command-and-control servers. Run a full antivirus scan and look for any unusual processes in your task manager. If you find SmartLoader or its payloads, consider a clean OS reinstall — it’s the only way to be sure the malware is gone.
Also, report the repository to GitHub. The platform has a security reporting process that can take down malicious content quickly. Every report helps protect the next developer.
The FakeGit campaign is still active, and researchers expect it to evolve. The best defense is awareness. Know what you’re downloading, verify the source, and never let convenience override caution. Your code — and your data — depend on it.