Security researchers have flagged a large-scale FakeGit Campaign built on nearly 7,600 malicious GitHub repositories. More than 800 pose as AI skills or Model Context Protocol servers, giving attackers a path into the fast-growing AI tooling space. The operation relies on cloned projects, lookalike developer accounts, and polished README files that make harmful code look genuine. A downloaded ZIP archive triggers a hidden loader chain that installs SmartLoader, which deploys the StealC information stealer to harvest credentials and sensitive data. A technique called AgentBaiting sets the FakeGit Campaign apart, since AI coding assistants can stumble onto a poisoned repository on their own. This guide breaks down how it works and what teams can do about it.
How This Campaign Works

This is a coordinated effort that plants thousands of fraudulent repositories designed to look like real open-source projects. Developers, enterprise teams, and increasingly AI agents acting on a user’s behalf are the intended targets, since each tends to trust GitHub as a default source of code. Island researchers documented the scale of the FakeGit Campaign in mid-2026, building on earlier warnings from Straiker AI and Derp.ca about trojanized MCP servers. It is dangerous because it blends a familiar supply-chain trick with a newer one aimed at AI adoption, since agents can recommend a malicious tool without a human clicking a link. The attack begins with a repository mimicking a legitimate project down to its README. A ZIP archive triggers a LuaJIT loader running an obfuscated Lua script, which installs SmartLoader and hands control to StealC.
How FakeGit Builds Convincing Fake GitHub Repositories
Attackers invest real effort into making repositories look trustworthy before malicious code runs.
- They copy popular projects and adjust only small details.
- They register lookalike developer profiles with realistic activity.
- They write README files that mirror genuine documentation style.
- They package the payload inside an ordinary-looking ZIP archive.
A rushed glance rarely raises suspicion before the payload lands.
Inside the SmartLoader Infection Chain
SmartLoader gives attackers their first foothold on a system while staying hidden.
- The ZIP archive extracts a LuaJIT runtime with an obfuscated script.
- LuaJIT runs the script, which quietly unpacks SmartLoader onto disk.
- SmartLoader establishes persistence so it survives reboots.
- It then installs StealC as a secondary payload.
Each stage resembles ordinary developer tooling, so security software can miss it without specific rules.
The Role of AI Skills and MCP Servers in the Attack

Model Context Protocol servers and AI skills are a favorite disguise, since most users have no instinct yet for spotting a fake one.
- Fake Skills promise shortcuts or automations that sound useful.
- Fake MCP servers claim to connect an assistant to a popular service.
- Both inherit instant credibility from the ecosystem they imitate.
- Listings often reuse screenshots or text lifted from real projects.
This is the segment where the campaign has grown fastest, as review processes struggle to keep pace.
Understanding AgentBaiting
AgentBaiting describes a scenario where an AI agent, not a person, finds and trusts the malicious content.
- A user asks an assistant to find a free Skill or MCP server.
- The agent searches public sources and finds a fake repository.
- It reads the attacker’s README as legitimate documentation.
- It relays installation instructions straight to the user.
A victim no longer needs to click a link, since the AI does the discovery itself in this FakeGit Campaign tactic.
Why AI Agents Can Be Tricked So Easily
Agents are built to be helpful and efficient, and those traits make them useful targets for this deception.

- Agents favor documentation that reads as complete and confident.
- They rarely cross-check a repository’s publisher or commit history.
- Task speed is often prioritized over verification.
- Tests confirmed this weakness across Claude Code, Google Gemini, and ChatGPT.
Closing this gap requires agents to treat unfamiliar repositories with real caution.
The SmartLoader Attack Chain Step by Step
Breaking the intrusion into stages shows how ordinary each step looks.
- Discovery: a person or AI agent finds a fake repository via search or a registry.
- Download: a ZIP archive advertised as an installer or Skill package is pulled in.
- Execution: LuaJIT runs an obfuscated Lua script hidden in the archive.
- Payload: SmartLoader installs itself and then deploys StealC.
Every stage mimics a normal workflow, which is why the FakeGit Campaign succeeds so often.
Risks to Developers and Enterprises
The consequences of infection reach well beyond a single machine.

- Developers risk losing API keys, cloud credentials, and source-code access.
- Enterprises face exposure of internal systems from one device.
- Stolen tokens can let attackers bypass multi-factor authentication.
- One infected workstation can become a launchpad for further intrusion.
With more than 14 million downloads tied to the FakeGit Campaign, the scale of exposure is hard to overstate.
How Public MCP Registries Increase Exposure
Public catalogs help developers discover tools quickly, but convenience benefits attackers too.
- Listings on LobeHub, Glama, MCP.so, and MCP Market are rarely vetted line by line.
- More than 600 malicious listings have appeared across these registries.
- Popularity metrics on a listing can be inflated to appear trustworthy.
- Removal after detection does not undo downloads already completed.
Registries stay useful, but blind trust in a catalog listing is a real liability.
Practical Defenses and Security Recommendations
Reducing exposure does not require exotic tools, just consistent habits applied every time.

- Review a Skill or MCP server’s source code before installing.
- Test unfamiliar packages in an isolated sandbox first.
- Verify a publisher’s history independently of the listing.
- Maintain a curated, pre-approved catalog of trusted tools.
- Monitor AI agent workflows for unexpected installs.
Teams that build these checks into daily workflow cut their exposure considerably.
Conclusion
The FakeGit Campaign shows how far attackers will go to blend into an ecosystem built on trust. By copying real projects, faking identities, and targeting AI agents through AgentBaiting, the people behind SmartLoader and StealC found a scalable way to reach individuals and enterprises alike. Awareness alone will not stop this threat. Verifying publishers, sandboxing unfamiliar code, and monitoring what AI agents install make a measurable difference as AI tooling keeps expanding.
Frequently Asked Questions
Q1: What is the FakeGit Campaign?
A large-scale operation using fraudulent GitHub repositories, many disguised as AI skills or MCP servers, to distribute SmartLoader malware and the StealC information stealer.
Q2: How does SmartLoader infect a system?
A ZIP archive triggers a LuaJIT loader running an obfuscated Lua script. That script installs SmartLoader, which persists and deploys StealC to steal credentials.
Q3: What is AgentBaiting?
A technique where an AI agent, not a human, discovers a malicious repository while completing a task, then passes the attacker’s instructions to the user.
Q4: Which AI tools were shown to be at risk?
Tests found Claude Code, Google Gemini, and OpenAI ChatGPT could each be led toward a malicious repository while searching for a Skill or MCP server.
Q5: Why are MCP registries a concern?
Registries such as LobeHub, Glama, MCP.so, and MCP Market host listings that are not closely vetted, letting fraudulent Skills sit beside legitimate ones.
Q6: How can developers protect themselves?
Verify publisher history, review source code before installing, test packages in a sandbox, and rely on curated catalogs rather than open discovery alone.
Learn this hands-on in Calicut: join the Offenso Certified Security Professional (OCSP) course at Offenso Hackers Academy, or explore all our cyber security courses in Calicut.