Fake MCP Servers on GitHub Target Claude and Cursor Users with Crypto-Stealing Malware
Malicious MCP servers on GitHub run a stealer and a clipboard hijacker on Windows the moment an AI coding agent starts them, the application-security firm Apiiro reported last week. The servers pose as tools for the Lig
Fake MCP Servers on GitHub Target Claude and Cursor Users with Crypto-Stealing Malware
Malicious MCP servers on GitHub run a stealer and a clipboard hijacker on Windows the moment an AI coding agent starts them, the application-security firm Apiiro reported last week.
The servers pose as tools for the Lighter and Aster crypto exchanges, and a user has to clone one from GitHub and point an agent such as Claude, Cursor, or Cline at it before it runs. In an isolated test, the malware launched before the agent's first tool call, so an approval prompt for a later tool would not have stopped it.
An MCP server is a small program that a coding agent starts to reach outside tools and data, and it runs with the user's own permissions.
The two servers posed as helpers for Lighter and Aster, crypto exchanges whose traders earn points toward token giveaways, and offered to check a wallet's trading volume, points, and eligibility. A decorator on the server's main function starts a hidden task before the agent calls any tool.
In the Windows test, the server installed its dependencies, pulled an encrypted payload about 18 seconds in, and mapped it into memory. A file disguised as an Edge WebView component was written to disk, hijacked a Windows COM entry, and ran as the clipboard hijacker. A later start reached the same point in about 7 seconds.
The attack is not a flaw in the coding agents, and it does not depend on tricking the model with a planted instruction, the firm's technical analysis shows. A user has to find one of these servers, clone it from GitHub, and point an agent at it; then the code runs on its own.
The clipboard hijacker swaps a copied crypto address for one of 23 addresses built into it. Those addresses received about $49,900 at November 16 prices, the firm found, after setting aside transfers between the attackers' own wallets, with the first payments arriving in February.
Three other wallets were emptied within three minutes of receiving just enough to cover fees, which the firm reads as a sign the attackers held the keys. The figure counts money into the wallets, not victim losses, and no victim count was published.
The operation, which the firm calls MIOU, reached users by manipulating GitHub search. In 18 of 54 searches a developer might run, a MIOU repository came up first.
Of 1,319 accounts that starred, forked, or posted on the repositories it measured, 1,222 looked like a farm of batch-created accounts. A bot wrote 26,407 of 26,511 commits, keeping the projects looking active.
The stealer calls itself Beretta, a name found in no earlier report. Public threat feeds and an April write-up had tied the same operation to StealC, a known commercial stealer. But Beretta uses different cryptography and its own configuration format, the firm says, so that label does not hold.
That earlier campaign, first documented by Oliver Zehentleitner, used a loader that unpacks to the same Beretta build, which is how the firm links the two.
Malicious MCP servers have surfaced before, including a trojanized MCP server that cloned an Oura health tool to deliver StealC, but those shipped as registry packages or came with a separate launcher. These run their payload straight from a cloned repository, which no package scanner sees.
Check If You're Affected
The researchers published detection rules for the operation. On a Windows machine that ran one of these servers, look for:
- File:
%LOCALAPPDATA%\Microsoft\EdgeWebView\msedgeview.dll, where Edge does not keep its real WebView files. - Registry: a CLSID key under
HKCU\Software\ClasseswhoseInprocServer32points at that file. - Process: a running
rundll32.exe "...\msedgeview.dll",#3. - Repo file: a
bundle.pkg,embed.pkgordist.pkgof 11 to 22 MB inside a cloned server.
If any of these appear, treat the machine as compromised. Move any crypto funds from a separate, clean device, change passwords and keys, and check where every recent payment actually went. Deleting the server does not undo the theft, and the clipboard hijacker is installed to survive it.
The operation had 36 repositories live when the firm reported it, posing as trading bots, wallet tools and the two MCP servers. By the time it published, GitHub had removed 17 and left 19 up.
Two more Aster repositories appeared two days later, sharing the same server and signing key. As of today, the Lighter server and both of those later repositories return a 404, while one of the original repositories, a Polymarket bot, is still live.
Originally published by The Hacker News. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.