Fake MCP Servers on GitHub Ran Crypto-Stealing Malware Before the First Tool Call
Watch the Video
You point your AI coding agent at a helpful-looking tool you found on GitHub. Before the agent runs a single tool, before any approval prompt appears, the malware is already in.
That is what the application-security firm Apiiro found, and The Hacker News reported it on 3 December 2026. Two fake MCP servers on GitHub posed as tools for the Lighter and Aster crypto exchanges. The moment an agent such as Claude, Cursor, or Cline started one, it launched a stealer and a clipboard hijacker on Windows. The clipboard hijacker quietly swapped every crypto address you copied for one of the attackers’ own. The wallets behind it had received about $49,900 by 16 November, with the first payments arriving in February.
This is not a flaw in Claude or Cursor, and it is not a prompt injection trick. An MCP server is code your agent runs with your permissions, and this code was malicious from the start.
What an MCP server is, and why it runs with your permissions
MCP stands for Model Context Protocol. It is the standard way an AI coding agent reaches outside tools and data: a small program the agent starts, which then answers the agent’s tool calls. Your agent might use one to query a database, read files, or talk to an API.
Here is the part most users never think about. The MCP server is not a document the agent reads. It is a program the agent runs, as you, with your permissions, on your machine, every time it starts. It can read your files, reach the network, and run other programs. That is by design, but it means a malicious server has the same access, from the moment it launches, before any tool is ever called.
The two fake servers
The two servers posed as helpers for Lighter and Aster, decentralised exchanges for crypto futures. Both exchanges reward active traders with points toward a token airdrop, and the fake servers offered to check a wallet’s trading volume, points, and eligibility. That lure was chosen carefully: a user who checks trading points almost certainly keeps a funded wallet on that machine.
The Lighter server lived at isabelpapaya/MCP-Server-Lighter. It looked like any small MCP project: badges, a config snippet for your agent, a demo wallet, and tools named get_volume, get_points, and get_eligibility. Its twin, trinity1994/MCP-Server-Aster-DEX, did the same for Aster. A third clone, blessedberserker/MCP-Server-Aster-DEX, was listed on Glama, a directory of MCP servers, but its GitHub account was already gone by the time Apiiro reported.
On 16 November, the Lighter server was the top GitHub result for a Lighter MCP server. The Aster twin ranked first for “aster dex mcp” and even for “mcp server dex trading cursor”. Glama listed both servers, and LobeHub listed the Aster one.
How the malware starts before the first tool call
Apiiro ran the Lighter server on an isolated Windows virtual machine, the way Claude Desktop does. In the background, the following happened after the first launch.
| Seconds after launch | What the server did |
|---|---|
| 0 | Installed its dependencies with pip, exactly as the README says |
| 18 | Pulled an encrypted payload through Cloudflare, a 13.7 MB response holding a 10 MB executable |
| 20 | A hidden child Python process mapped the payload into memory. A file disguised as an Edge WebView component landed on disk, hijacked a Windows COM entry, and started through rundll32 |
Repeat launches were faster: the server reached Cloudflare at three seconds and ran the clipboard hijacker at seven. Within a second of the payload landing, the stealer opened a TLS session to its server and looked up the machine’s location. The agent’s first tool call had not happened yet in either case.
The trigger is a decorator called @bootstrap on the server’s main function. It starts a hidden background thread before the host’s first tool call. The package’s docstring claims it “pulls a fresh signed order-book snapshot”. That snapshot is the malware download.
The payload is a 10 MB executable posing as taskhostw.exe. It unpacks a loader, which unpacks the stealer and the clipboard hijacker from a container. Only the clipboard hijacker is ever written to disk. Apiiro calls the operation MIOU, after labels inside that container: MIOU_header_v1, MIOU_meta_v1, and MIOU_hmac_v1.
What Beretta steals
The stealer calls itself Beretta. Its decrypted strings include // Beretta Private build 2.1, and its config carries the build name git1509 and a fallback server, spellmarketplace.club. Apiiro found the name in no report before its own.
Beretta is not StealC, the well-known commercial stealer, even though public threat feeds and an April write-up had tied this operation to StealC. Beretta uses X25519 key exchange and AES-GCM encryption with its own config format, while StealC v2 uses plain HTTP with JSON, RC4, and base64. Apiiro’s code analysis says the label does not hold.
Beretta’s target list names 105 Chrome wallet extensions, six Firefox wallet add-ons, 40 desktop wallets, and 20 authenticator and password manager extensions. A file grabber takes documents, wallet, key, and KeePass files of up to 3 MB from Desktop, Downloads, and Documents. Built-in modules cover browsers, Discord, and FileZilla, for about 200 entries in total.
Apiiro proved it with planted test files. An Exodus seed phrase, an Electrum wallet, a KeePass database, FileZilla’s server list, Discord storage, and a Desktop note each left the machine in full. An SSH key, AWS credentials, and a project .env file stayed put in that test. Assume everything was exposed.
Chrome’s app-bound cookie encryption does not stop Beretta either. The stealer injects a helper DLL into the browser, and the helper asks Chrome’s elevation service for the key. It is a thief, not a remote control tool.
The clipboard hijacker
The second half of the payload is simpler and, for crypto users, more directly costly. The clipboard hijacker lives at %LOCALAPPDATA%\Microsoft\EdgeWebView\msedgeview.dll, a file Edge does not keep there. It starts with rundll32.exe "...\msedgeview.dll",#3 and persists through a per-user COM hijack, so it survives deleting the cloned repository.
It does one thing. When you copy a crypto address, it swaps in one of 23 attacker addresses built into it, for the same coin. In Apiiro’s sandbox, each copied address changed within three seconds. You paste, you send, and your coins go to the attackers.
Those 23 addresses received about $49,900 at 16 November prices, with the first payments arriving in February. That counts money received into the wallets, after setting aside transfers between the attackers’ own wallets. It is not a victim loss total, and Apiiro does not say how much came from the MCP servers. No victim count was published.
The breakdown by chain: 222.97 SOL plus stablecoins on Solana, 11,144 USDT on TRON, 0.0868 BTC, 116.77 LTC, 2.02 ETH plus stablecoins on Ethereum, 2,705 USDT on BNB Chain, and 1,845 TON. Researchers traced 54 payments to exchange hot wallets.
Three more wallets were emptied within three minutes of receiving just enough to cover fees. Moving those funds requires the private key, so the crew held the keys. That is Beretta, not the clipper.
How they got to the top of GitHub search
The operation, which Apiiro calls MIOU, reached users by manipulating GitHub search. In 18 of 54 searches a developer or an agent might type, a MIOU repository came up first.
The popularity was faked. Of 1,319 accounts that starred, forked, or posted on the repositories Apiiro measured, 1,222 looked like a farm of batch-created accounts. A bot wrote 26,407 of 26,511 commits, pushing an empty “Auto commit” about every 27 minutes, keeping the projects looking active.
Two users flagged the code as malware in GitHub issues in November. Neither got an answer, and by 18 November both issues were deleted, which takes owner access.
This is not the first time malicious MCP servers have surfaced. Most earlier cases were npm or PyPI packages, or GitHub repos that made users start a separate launcher. MIOU is different because there is no package and no launcher. You clone it from GitHub and your agent runs it, so no registry scanner ever sees it.
All the repositories share one HMAC key, one handshake, and two payload domains, api.failproxy.space and api.nailproxy.space. Blocking them does not stop most repositories: in 29 of 36, the loader falls back to Cloudflare IPs with certificate checks off.
The operation has been active since at least February 2026, when the clipper’s first payments arrived. A first wave was exposed in April, and those repositories were gone by late May. The newest repositories went up on 15 November.
Apiiro reported all live repositories to GitHub on 17 and 18 November, and the Glama and LobeHub listings too. Glama took down all three listings on 18 November. When Apiiro reported, 36 repositories were live; 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 The Hacker News report on 3 December, the Lighter server and both of those later repositories return a 404, while one of the original repositories, a Polymarket bot, is still live. We checked on 4 December: the Lighter server returns 404, and aylla18/Polymarket-Market-Agent is still public. That can change at any time.
Apiiro published YARA, Sigma, and Semgrep detection rules, plus Defender hunting queries. The loader rules matched 36 of 36 known repositories, with zero false positives across 96,893 benign Python files.
How to tell a fake server from a real one
There is no single badge that proves an MCP server is safe. GitHub stars, commit history, and directory listings did not protect anyone here. The stars were farmed and the commits were a bot. Check the things that cannot be faked as cheaply.
1. Prefer the vendor’s own organisation
Get the server from the vendor’s official GitHub organisation or a registry with verified publishers. A random personal account with no link from the vendor’s own site or docs is a reason to stop.
2. Read the entry point and everything it imports at startup
Apiiro’s advice starts here. Open main.py and read it, then read everything it imports when it starts. A decorator that starts a thread, a hidden interpreter, or a large binary blob in a Python repository is a red flag. A legitimate server’s startup code does setup. It does not download and run an encrypted payload.
3. Look for the package files
A cloned MIOU server carries a bundle.pkg, embed.pkg, or dist.pkg file of 11 to 22 MB, at paths like base\data\bundle.pkg. Apiiro scanned 16,280 Glama-listed MCP server repositories that ship more than 2 MB of files. Only MIOU’s two servers carry an encrypted blob that runs at startup.
4. Distrust popularity, and sandbox the first run
Stars, forks, and commit frequency meant nothing here. Thousands of stars with no real issues or discussion, and commits every 27 minutes from one author with empty messages, is the tell, not the star count.
Run a new server in a sandbox or under a separate user first, with outbound traffic logged. If a tool that claims to check trading points opens a connection to an unknown server on startup, you have your answer before it touches your real machine. On Windows, that first run should never be on the machine that holds your wallets.
Check if you are affected
If any of these signs appear on a Windows machine that ran one of these servers, treat the machine as compromised. Deleting the cloned repository does not remove the clipboard hijacker, which is installed to survive it.
- 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. The key value changes between builds, so look for the file path. - Process: a running
rundll32.exe "...\msedgeview.dll",#3. - Repository file: a
bundle.pkg,embed.pkg, ordist.pkgof 11 to 22 MB inside a cloned server.
If you find any of these, treat every browser session, saved password, wallet, Telegram, Discord, and Slack session, and FileZilla server as exposed.
What to do now
1. Move funds first, from a clean device
If you ran one of these servers, move your crypto from a separate, clean device before you do anything else on the affected one. Do not copy a destination address on the affected machine: the clipboard hijacker may swap it. Type the address by hand, or use a QR code, and check the first and last characters before you send.
2. Rotate everything, then check where your payments went
Change passwords and keys, revoke sessions, and rotate API keys. Then check where every recent payment actually went, on the blockchain. If a payment went to an address you do not recognise, it went to the attackers.
3. Remove the server and the hijacker
Delete the cloned repository, then remove the hijacker: the DLL, its COM registry entry, and the rundll32 process. If you are not confident doing that by hand, reinstall Windows from clean media and restore only data you have verified.
4. Block the infrastructure and hunt
Network teams can block api.failproxy.space, api.nailproxy.space, spellmarketplace.club, and 62.60.226.113, then hunt for the clipper file and its rundll32 launch.
5. Change how you adopt MCP servers
Read the entry point before your agent runs a server. Prefer the vendor’s organisation or a verified publisher. Sandbox the first run. An MCP server is code your agent runs with your permissions on every start. Review it like a dependency, because that is what it is.
Why this matters for website owners
Developers use Claude, Cursor, and Cline to build and maintain websites. The same trust that made a developer clone a fake MCP server is the trust that installs a plugin, runs a script, or adds a snippet without reading it. Beretta’s file grabber takes SSH keys, AWS credentials, and project .env files.
The month’s pattern is consistent. A Docker Sandboxes flaw let a kit update steal API keys, with no new prompt and no log entry. Microsoft found eight AI-assisted Linux intrusions, where the attack moved at machine speed.
If you think your site is already hacked, read My WordPress Site Was Hacked: What to Do First and act the same day.
The honest summary
Two fake MCP servers on GitHub posed as tools for the Lighter and Aster crypto exchanges. A user had to clone one and point Claude, Cursor, or Cline at it, and then the code ran on its own. A hidden thread started before the first tool call, pulled an encrypted payload in about 18 seconds, and launched a stealer called Beretta plus a clipboard hijacker that swaps copied crypto addresses for the attackers’ own. The hijacker’s 23 addresses received about $49,900, and three wallets were emptied using stolen private keys. The operation ran 36 repositories, faked its popularity with farmed accounts and bot commits, and ranked first in 18 of 54 GitHub searches Apiiro tested.
This is not a flaw in the coding agents, and it is not a prompt injection. It is a supply-chain attack on trust: the most dangerous code is the code you chose to run. Read every MCP server before your agent starts it, and if you ran one of these, treat the machine as compromised, move your funds from a clean device, and rotate everything.
If you need help with any of it, contact us. A hacked site, a compromised developer machine, or a server that has not been updated in months is exactly the kind of job we do, and the first step is a free website audit.
Related guides
- Docker Sandboxes Flaw Let a Kit Update Steal Your API Keys, a kit update stole real API keys, with no new prompt and no log entry.
- AI-Assisted Attacks Hit Linux Servers in Minutes. Microsoft Found Eight Cases, eight intrusions driven by AI-assisted tooling, with customer data reached in 7 minutes.
- My WordPress Site Was Hacked: What to Do First, what to do first if your own site is already compromised.
- AI Breaches hub, our running record of confirmed AI-assisted breaches in 2026, with where, when, what happened, and how serious each one is.
Leave a Reply