Fake MCP Servers on GitHub Target Claude and Cursor Users with Crypto-Stealing Malware
About 4 min read
securityaisoftwarehardware
Malicious MCP servers hosted on GitHub have been found delivering crypto‑stealing malware to users of AI coding agents such as Claude, Cursor and Cline. The application‑security firm Apiiro reported the threat last week after observing the payload run on Windows the moment an agent started the server.
An MCP server is a small program that an AI coding agent launches to reach external tools and data. The server runs with the same permissions as the user who invoked the agent. In the malicious cases, the servers masquerade as helpers for the Lighter and Aster crypto exchanges. Both exchanges promise points toward token giveaways for traders. The fake servers claim to check a wallet’s trading volume, points and eligibility.
The attack begins when a user clones one of the malicious repositories from GitHub and points an AI agent at it. No special prompt or model instruction is required. A decorator on the server’s main function starts a hidden task before the agent makes its first tool call. Because the hidden task runs first, any later approval prompt cannot stop the malware.
In a controlled Windows test the server installed its dependencies, then pulled an encrypted payload about 18 seconds after launch. The payload was mapped directly into memory. The malware wrote a file disguised as an Edge WebView component to disk. It also hijacked a Windows COM entry and executed a clipboard hijacker. When the same server was started a second time, the same steps completed in roughly seven seconds.
The clipboard hijacker replaces any copied cryptocurrency address with one of 23 hard‑coded addresses. Apiiro traced about $49,900 in value to those addresses at November 16 prices. The first payments arrived in February. Three additional wallets were drained within three minutes after receiving just enough to cover transaction fees, suggesting the attackers held the private keys. The reported figure counts money that entered the attacker wallets, not the total loss suffered by victims, and no count of affected users was released.
The operation, dubbed MIOU by Apiiro, does not exploit a flaw in the coding agents themselves. It relies on a user deliberately cloning a malicious repository and directing an agent to it. The attack therefore bypasses any model‑level defenses and does not depend on tricking the AI with a planted instruction.
MIOU reached developers by manipulating GitHub search results. In 18 of 54 typical searches a developer might perform, a MIOU repository appeared as the top result. This suggests the attackers optimized repository metadata to surface early in search rankings.
The researchers measured activity on the repositories and found 1,319 accounts that starred, forked or posted on them. Of those accounts, 1,222 appeared to be batch‑created. A bot authored 26,407 of the 26,511 total commits, keeping the projects looking active and legitimate.
The stealer component identifies itself as Beretta, a name not seen in earlier reports. Public threat feeds and an April write‑up linked the same operation to StealC, a known commercial stealer. However, Beretta uses a different cryptographic scheme and its own configuration format, so the StealC label does not fully apply. The earlier campaign, first documented by security researcher Oliver Zehentleitner, used a loader that unpacked to the same Beretta build, which is how Apiiro connects the two.
Malicious MCP servers have appeared before. A prior trojanized MCP server cloned an Oura health tool to deliver StealC. Those earlier variants shipped as registry packages or required a separate launcher. The current MIOU servers run their payload directly from a cloned repository, a method that evades detection by package scanners.
Apiiro published detection rules for the operation. On a Windows machine that runs one of these servers, analysts should look for the hidden task, the disguised Edge WebView file, and the COM hijack. If any of these indicators appear, the machine should be treated as compromised. Users are advised to move crypto funds to a clean device, change passwords and keys, and audit every recent payment to verify its destination. Deleting the server does not reverse the theft, and the clipboard hijacker is installed to survive removal.
When Apiiro first reported the threat, the operation comprised 36 live repositories. GitHub removed 17 of them and left 19 accessible. Two additional Aster repositories surfaced two days later, sharing the same server code and signing key. As of today the Lighter server and the two later repositories return a 404 error, while one original repository – a Polymarket bot – remains live.
The MIOU campaign highlights the risk of blindly trusting code fetched from public repositories, especially when used with powerful AI coding agents. Developers should verify the provenance of any MCP server before invoking it with an agent. Security teams should monitor for the specific indicators described by Apiiro and educate users about the dangers of cloning unknown tools.
Overall, the incident underscores how attackers can blend social engineering on code hosting platforms with automated AI tooling to deliver fast‑acting malware. The blend of cryptojacking, clipboard hijacking and rapid payload delivery creates a potent threat to developers and crypto traders alike. Vigilance, thorough repository vetting and prompt remediation remain essential defenses against such emerging AI‑enabled attack vectors.
Survival Machine launched today on Xbox Series X|S, arriving with a limited‑time 10 percent discount that reduces the price from $19.99 to $17.99. The indie title, developed by Grape Pickers…
California has passed a new consumer‑protection law that will let residents demand a live human representative when they contact a company’s customer‑service department. The right takes effe…
Grand Theft Auto VI has added a new Scarface‑themed Easter egg that rewards players with a weapon, a car and a shirt, and the discovery requires precise timing and two separate locations. Th…