Fake MCP Servers Hide Crypto Malware on GitHub
Fake MCP servers on GitHub ran crypto-stealing malware on Windows when AI coding agents started them, according to application-security firm Apiiro, which reported the operation last week. The repositories posed as tools for the Lighter and Aster crypto exchanges, but a user first had to clone one from GitHub and point an agent such as Claude, Cursor or Cline at it.
An MCP server is a small program that lets a coding agent reach external tools and data. It runs with the same permissions as the user. Apiiro found that a hidden task began as soon as the server started, before the agent made its first tool call. In an isolated test, the malware therefore launched before an approval prompt for a later action could have stopped it.
The two servers presented themselves as helpers for Lighter and Aster, whose traders earn points towards token giveaways. They claimed to check a wallet's trading volume, points and eligibility. A decorator attached to the server's main function started the concealed task automatically. On Windows, the server installed its dependencies, downloaded an encrypted payload after about 18 seconds and mapped it into the computer's memory. It then wrote a file disguised as an Edge WebView component to disk, hijacked a Windows COM entry, and used it to run a clipboard hijacker, malware that silently changes copied text. On a later start, the same stage was reached in about seven seconds.
Apiiro's technical analysis found that the attack was not a flaw in Claude, Cursor or Cline and did not require a model to follow a planted instruction. The user had to discover one of the repositories, clone it and direct an agent to use it. After that, the repository code ran by itself.
The clipboard hijacker replaced copied cryptocurrency addresses with one of 23 addresses built into the malware. Those addresses received about $49,900 at November 16 prices, after Apiiro excluded transfers between wallets controlled by the attackers. The first payments arrived in February. Three other wallets were emptied within three minutes of receiving only enough cryptocurrency to cover transaction fees, which Apiiro interpreted as evidence that the attackers controlled their private keys. The $49,900 figure measures money sent into the wallets, not confirmed victim losses, and no victim count was published.
Apiiro calls the operation MIOU. It used GitHub search manipulation to make the repositories easier to find: in 18 of 54 searches a developer might perform, a MIOU repository appeared first. Among 1,319 accounts that starred, forked or posted on the repositories examined by the firm, 1,222 appeared to be a farm of batch-created accounts. Automated software produced 26,407 of the 26,511 commits, making the projects look active.
The stealer identifies itself as Beretta, a name not found in earlier reports. Public threat feeds and an April write-up had associated the same operation with StealC, a known commercial stealer. Apiiro said Beretta uses different cryptography, the method used to protect and process data, and its own configuration format, so it does not consider the StealC label accurate. The earlier campaign used a loader that unpacked to the same Beretta build, which is how Apiiro connected the activity.
Malicious MCP servers have appeared before. One trojanized server copied an Oura health tool and delivered StealC, but earlier examples were distributed as registry packages or used a separate launcher. The MIOU servers ran their payload directly from a cloned repository, meaning a scanner that only checks packages would not see the malicious code.
Apiiro published detection rules for affected Windows machines. Investigators should look for %LOCALAPPDATA%\\Microsoft\\EdgeWebView\\msedgeview.dll, a file location where Edge does not keep its genuine WebView files; a CLSID registry key under HKCU\\Software\\Classes whose InprocServer32 value points to that file; a running process in the form rundll32.exe "...\\msedgeview.dll",#3; or a bundle.pkg, embed.pkg or dist.pkg file between 11 and 22 MB inside a cloned server. A CLSID is a Windows identifier for a software component, while InprocServer32 tells Windows which file to load for it.
If any of those indicators appear, Apiiro says to treat the machine as compromised. Move cryptocurrency funds using a separate, clean device, change passwords and keys, and check where every recent payment went. Deleting the cloned server does not reverse a theft, because the clipboard hijacker is installed to survive removal.
The operation had 36 repositories live when Apiiro reported it. They posed as trading bots, wallet tools and the two MCP servers. By the time the firm published its findings, GitHub had removed 17 and left 19 online. Two additional Aster repositories appeared two days later, sharing the same server and signing key. At the time described in the report, the Lighter server and both later repositories returned a 404 error, while one original repository, a Polymarket bot, remained live. For organisations supporting developers, AEU-I offers security-first IT, infrastructure and consulting, which is relevant when teams need help managing security risks around development environments.