Fake MCP Servers on GitHub. The Malware Ran Before the First Tool Call.
You did not click anything. You did not approve anything. You just pointed your AI coding agent at a helpful-looking server you cloned from GitHub — and before the agent ran a single tool, the malware was already in.
Application-security firm Apiiro reported last week that malicious MCP servers on GitHub ran a stealer and a clipboard hijacker on Windows the moment an AI coding agent started them. They posed as tools for the Lighter and Aster crypto exchanges, offering to check a wallet’s trading volume, points, and token-giveaway eligibility. All a user had to do was clone one and point Claude, Cursor, or Cline at it.
An MCP server is a small program a coding agent starts to reach outside tools and data, and it runs with your own permissions. That is the whole trap: the server is not a document the agent reads — it is code the agent runs, as you.
The malware starts before the first tool call
In Apiiro’s isolated test, the malware launched before the agent’s first tool call — an approval prompt for a later tool would not have stopped it, because nothing was waiting for approval. A decorator on the server’s main function starts a hidden task before the agent calls any tool at all.
On Windows, 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.
This is not a flaw in the coding agents, and it does not depend on tricking the model with a planted instruction. Nobody had to fool the AI — the user found the server, cloned it, pointed the agent at it, and the code ran on its own.

The money went to 23 addresses
The clipboard hijacker does one simple thing: when you copy a crypto address, it swaps in one of 23 addresses built into it. Paste, send — and your coins go to the attackers.
Those 23 addresses received about $49,900 at November 16 prices, first payments arriving in February. That counts money into the wallets, not confirmed victim losses, and no victim count was published. Three other wallets were emptied within three minutes of receiving just enough to cover fees — a sign the attackers held the keys.
The stealer calls itself Beretta, a name found in no earlier report. An April write-up had tied the operation to StealC, but Beretta uses different cryptography and its own configuration format, so that label does not hold. An earlier campaign documented by Oliver Zehentleitner used a loader that unpacks to the same Beretta build.
How it found its victims
The operation, which Apiiro calls MIOU, reached users by manipulating GitHub search: in 18 of 54 searches a developer might run, a MIOU repository came up first. The popularity was faked — of 1,319 accounts that starred, forked, or posted, 1,222 looked batch-created, and a bot wrote 26,407 of 26,511 commits.
The operation had 36 repositories live when the firm reported it. By publication, GitHub had removed 17 and left 19 up; two more Aster repositories appeared two days later, sharing the same server and signing key. The Lighter server and both later repositories now return a 404, while one original repository — a Polymarket bot — is still live.
Malicious MCP servers have surfaced before — one cloned an Oura health tool to deliver StealC. But those shipped as registry packages or a separate launcher. These run their payload straight from a cloned repository, which no package scanner sees.
Why this one matters
AI coding agents are becoming the new front door to the machine, and attackers have noticed. One hacker recently turned twelve AI agents against hundreds of targets — the agent is the leverage now, not the lock. Claude has been the target before, too: a malicious browser extension once whispered instructions to Claude and made it run code on the user’s machine. Anything your agent can run, an attacker can abuse.
The approval prompt is the safety net most users count on. This campaign slips under it entirely — the agent did exactly what it was asked to do, and the thing it was asked to run was the attack.

Check if you are affected
The researchers published detection rules. On a Windows machine that ran one of these servers, look for these four things:
- The file:
%LOCALAPPDATA%\Microsoft\EdgeWebView\msedgeview.dll— Edge does not keep its real WebView files there. - The registry key: a CLSID key under
HKCU\Software\ClasseswhoseInprocServer32points at that file. - The process: a running
rundll32.exe "...\msedgeview.dll",#3. - The repo files: a
bundle.pkg,embed.pkg, ordist.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 — the clipboard hijacker is installed to survive it.
The wider rule is simple: vet an MCP server the way you would vet any software you install. Check the repository’s history and who actually wrote it, and be suspicious of a project whose stars and commits all arrived in a rush. A helper that asks your agent to run it is not a document — it is code, and it runs as you.



















