Threats

Malicious MCP servers on GitHub install Beretta stealer when AI agents start them

Adam Bream
By Adam Bream , Tech Content Writer
Malicious MCP servers on GitHub install Beretta stealer when AI agents start them
Cover © Anonhaven

Malicious MCP servers on GitHub infect Windows machines the moment a coding agent starts them. Apiiro published its research on the operation, which it calls MIOU, on November 26, 2026. The crypto wallets behind its clipboard hijacker have received about $50,000 since February.

The fake servers pose as tools for Lighter and Aster, two decentralized exchanges for crypto futures. An MCP (Model Context Protocol) server is code that an AI agent like Claude, Cursor or Cline runs with the user's permissions. In Apiiro's Windows test, the server launched a private infostealer called Beretta and a clipper before its first tool call. A clipper is malware that swaps copied crypto addresses for the attacker's own.

GitHub had removed 17 of the 36 reported repos by November 26, while 19 were still up. On that day, none of the three malicious domains had been suspended. The same day, Apiiro queried the theft server for Beretta's target list and got an answer.

Victims never install a package. They clone a repo from GitHub and add it to their agent's config, as the README tells them. Apiiro found no MIOU package on npm, PyPI or other registries.

MIOU's servers are installed with git clone, so registry scanners never see them, and the directories that listed them didn't flag them.

— Shmulik Cohen, report author, Apiiro

The repo isabelpapaya/MCP-Server-Lighter looked like any small MCP project. It carried badges, a claude_desktop_config.json snippet, a demo wallet and tools named get_volume, get_points and get_eligibility. Both exchanges reward active traders with points toward a token airdrop, and the tools promised to report a wallet's volume, points and eligibility. Such a user likely keeps a funded wallet on that machine, Apiiro notes.

On November 16 the Lighter server was the top GitHub result for a Lighter MCP server. Its twin, trinity1994/MCP-Server-Aster-DEX, also ranked first on GitHub for "aster dex mcp" and even for "mcp server dex trading cursor". Glama listed both, and LobeHub listed the Aster one. Glama carried a third clone, blessedberserker/MCP-Server-Aster-DEX, whose account was already gone.

Apiiro ran the Lighter server on an isolated Windows VM the way Claude Desktop does. A minimal MCP client started python main.py --demo over stdio, sent initialize and then tools/list, and the server answered with its tools. In the background, the following happened after the first launch.

Seconds after launch What the server did
0 Installs its dependencies with pip, as the README says
18 Pulls the encrypted payload through Cloudflare, a 13.7 MB response holding a 10 MB executable
20 A hidden child Python process maps the payload into memory. msedgeview.dll lands on disk, hijacks a COM class and starts through rundll32
20–21 The stealer opens a TLS session without SNI to 62[.]60[.]226[.]113:6673 and looks up the machine's location through ip-api.com, ipinfo.io or ipapi.co

Repeat launches skip the install. The server then reaches Cloudflare at three seconds and runs the clipper at seven.

A decorator called @bootstrap on the server's main function is the trigger. It starts a daemon thread before the host's first tool call. The package docstring claims the decorator "pulls a fresh signed order-book snapshot". That snapshot is the malware download. Some repos use @ensure_env instead. The repos also share helper modules base/{carrier,relay,packing,machine,audit}.py.

The payload is a 10 MB executable posing as taskhostw.exe. Its stage 3 file is 10,243,072 bytes with SHA-256 707e89148589beeb0d1602cc080ae609bc4203b0fd074e80bf8f23159588c0ee. It unpacks a loader, which unpacks Beretta and the clipper from a container. Key labels in that container, MIOU_header_v1, MIOU_meta_v1 and MIOU_hmac_v1, gave the operation its name.

Only the clipper is ever written to disk.

The inner stages live in memory only. Apiiro lists their SHA-256 hashes as loader 5ce53eeac3aedcfaf5b593b53a53f59217f880331413f3da30b6966b25f1e4df, stage 4 layer 1 df45c54acdbae4012635efd9a89395484640f2c1a55f86ac0c6b2e90c54a96ff and MIOU container c278e576e253a59ab7f34005b7fb175d98c2b95dee345e643b33e8ecb8f20c90. The Beretta image is 1efc29cbd68b9cceb158dbd1632f682766a706f40d47464afec395c9dad4eb35, and the Chrome helper DLL, which exports Bootstrap, is eeff7b96019a65fa4518da67a4bc39e496d3c6f7a327081775140ac8a1ca5b97.

The decryption key comes from anti-debugging checks. Eight checks each add a penalty to a 64-bit value, mixed with a hash of the loader's own code. A breakpoint or a patched byte counts too. On a clean PC all penalties are zero, giving a value that is identical on any clean Windows machine.

Under a debugger the mask comes out wrong: the loader decrypts noise, fails its own MZ check and quietly exits with status 0.

— Shmulik Cohen, report author, Apiiro

The trick stalled dynamic analysis. Apiiro's emulator stopped at a breakpoint trap, and under Frida the clipper started but Beretta read no user file. Only kernel-level monitoring of an uninstrumented run showed the theft. Beretta's check for five cursor moves did not stop it on the test VMs.

Static analysis, which was AI-assisted, broke the scheme. The loader's API hash is built from the build's 64-bit key, so the hash function gives the key away (0x38bc788918f8a667 in this build). Combined with the clean-machine value, that key yields the mask.

Beretta names itself in its decrypted strings, which include // Beretta Private build 2.1 and beretta_session_key. Its config carries the build name git1509, build ID 527e1519bee9a267641f06cc and a fallback server, spellmarketplace.club:443. It talks to its browser helper over the pipe \\.\pipe\CrHlp_<hex> and uses a browser profile at %TEMP%\v20_<hex>. The name Beretta, the session key label and the build name had no public hit before Apiiro's reports.

On November 18, VirusTotal had never seen the stage 4 loader, MIOU container or Beretta image. It knew the outer crypter (43 of 75 engines), the Chrome helper DLL (22) and the clipper (5). All three carried generic labels, none as Beretta or StealC. None of the 11,852 community YARA rules in YARA Forge detects the crypter, the loader, the clipper or Beretta in memory.

Beretta's target list names 105 Chrome wallet extensions and six Firefox wallet add-ons. It adds 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.

Planted test files confirmed it. An Exodus seed, an Electrum wallet, a KeePass database, FileZilla's server list, Discord storage and a Desktop note each left in full. An SSH key, AWS credentials and a project .env file stayed put.

Chrome's app-bound cookie encryption does not stop Beretta. The stealer injects a small helper DLL into the browser, starting a hidden one if none is running. The helper then asks Chrome's elevation service for the key, following the public ChromElevator design.

Uploads use an X25519 key exchange and AES-GCM, with URL paths that rotate hourly. The stealer never verifies who it is talking to. No server key is pinned, TLS ignores certificate errors, and the browsers' master keys travel outside the AES layer. Beretta has no commands for download, update or remote execution.

An April write-up and threat feeds called the stealer StealC, a well-known commercial infostealer. Apiiro's code analysis says otherwise. StealC v2 talks to its server over plain HTTP with JSON, RC4 and base64. Beretta uses X25519 and AES-GCM, a custom config format (BRT2CFG2) and a custom pipe protocol. None of these appears in public StealC reporting.

According to Apiiro, the StealC label came from a capa match and from reused servers. The address 62[.]60[.]226[.]113 hosted a StealC panel in 2025, and spellmarketplace.club was listed as StealC infrastructure in April.

The clipper lives at %LOCALAPPDATA%\Microsoft\EdgeWebView\msedgeview.dll, a 44,544-byte file with SHA-256 b6abbfece488080e23f5498ecf006ec02de9fa98b74ce3c385c53a0696ec0e0c. It starts with rundll32.exe "<dll>",#3, persists through a per-user COM hijack and holds the mutex Local\{8F6E2A14-C9D1-4bdd-B8CF-92F04E6B3E9F}. In Apiiro's sandbox, each copied crypto address changed within three seconds to an attacker address for the same coin. The clipper holds 23 such addresses.

Apiiro's indicator file lists five of the 23 attacker addresses. They are BTC bc1q00h2kl4uvwcvzp7zdl80yx97f0p8jv450qdzwc, ETH and BNB 0xcEBDCBA0a42B2dE9Be38c48d648471C672C007C1 and TRON TL1417xeaNrvU6La3N5Vgpye1e47i4zHUv. The Solana address is 2UoxbkKwhZSvEtTUzWf9aghXi1LJgsgpGApxvFpSdvf3 and the Litecoin one ltc1q36llsr6s3n4c8ur6g0prf8c9l0gs7ufwdakmng.

Public blockchain records show what the clipper's 23 addresses received, excluding the crew's internal transfers.

Chain Received Payments
Solana 222.97 SOL, 628 USDC, 233 USDT 285
TRON 11,144 USDT, 583 TRX 65
Bitcoin 0.0868 BTC 95
Litecoin 116.77 LTC 337
Ethereum 2.02 ETH, 1,004 USDT, 668 USDC, 118 DAI 191
BNB Chain 2,705 USDT 36
TON 1,845 TON, 273 USDT 59
Other (Polygon, Arbitrum, Base, XRP, Ravencoin, small BSC amounts) about $500 not given

Apiiro values the total at about $49,900 at November 16 prices. It used BTC at $65,009, ETH at $1,822, SOL at $71.43, LTC at $45.07 and TON at $1.04. Researchers traced 54 payments to exchange and service hot wallets, meaning withdrawals that victims sent to a clipper address.

Three more wallets outside that pool point to the stealer at work. Each emptied its whole balance into the crew's cash-out path within three minutes of the crew sending it just enough gas. Moving those funds requires the wallet's private key.

Apiiro does not say how many people installed the MCP servers. Nor does it say how much of the $49,900 came from them. The operation ran many other lures.

In 18 of 54 searches that a developer or an agent might type, a MIOU repo came first on GitHub. The hits ranged from the two MCP servers to "solana drainer tool" and "crypto wallet aml risk scanner". On Glama the Aster clones ranked first and second for "aster dex mcp".

One agent's web search for "mcp server aster dex" returned the deleted clone's Glama page first.

Each repo carries up to 20 topics. On 11 measured repos, a MIOU repo was the most-starred result on 152 of 209 topics. Of 1,319 accounts that starred, forked or posted on 29 measured repos, 1,222 look like a farm of accounts created in batches. A bot pushes an empty "Auto commit" from an author named Lucas to most repos about every 27 minutes.

Stars and commit history meant nothing here. The stars came from farm accounts and 26,407 of 26,511 commits from a bot.

— Shmulik Cohen, report author, Apiiro

Two users flagged the code as malware in issues on Exodus-Fake-Balance on November 9 and Hyperliquid-Trade-Bot on November 15. Neither got an answer, and by November 18 both issues were deleted, which takes owner access.

Apiiro ties all the repos to one operation. Each sits on a separate account, yet all share one HMAC key, one handshake and two payload domains, api.failproxy.space and api.nailproxy.space. Their routes are /api/v1/auth/session and /api/v1/data/sync. Blocking the domains does not stop most repos. In 29 of 36, the loader falls back to Cloudflare IPs 104[.]21[.]0[.]1 and 172[.]67[.]0[.]1 with certificate checks off.

Two captured encrypted responses had different hashes but decrypted to the same executable. Apiiro scanned 16,280 Glama-listed MCP server repos that ship more than 2 MB of files. Only MIOU's two servers carry an encrypted blob that runs at startup.

Compiled Python files in 28 repos share build paths such as C:\shellgainer\arhieves_2026-06-17\, pointing to one build environment. Manual uploads show a browser clock that moved an hour back the week Europe left daylight saving time. Apiiro calls that consistent with Eastern European time, an inference from indirect signs. The theft server sits with Femo IT Solutions (AS214351), which threat intelligence reporting ties to bulletproof hosting.

The largest cash-out path Apiiro traced ends at KuCoin, through a shared hub. The lures go well beyond MCP servers. They include trading and prediction-market bots, wallet "risk scanners", airdrop trackers, "fake balance" tools and drainers aimed at other criminals.

The operation has been active since at least February 2026, when the clipper's first payments arrived. Outside scanners logged spellmarketplace.club on March 8, three days after its registration. Researcher Oliver Zehentleitner exposed a first wave on nailproxy.space in April, and those repos were gone by late May. The operator had registered failproxy.space in June, and the newest repos went up on November 15.

Malicious MCP servers are not new. Most earlier cases, Apiiro says, were npm or PyPI packages, or GitHub repos that made users start a separate launcher. GlassWorm's fifth wave, for one, used PyPI and npm MCP servers that run code on start.

Apiiro names Elastic's Apex Accelerator as the closest case. It was an npm MCP package that delivered a packed stealer through a separate bootstrap, with no clipper.

Apiiro reported all live repos, copies included, to GitHub on November 17 and 18, 2026. It reported the three Glama listings and the LobeHub listing too, and flagged the clipper wallets' USDT and USDC balances to Tether and Circle. Glama took down all three listings on November 18. GitHub removed the Lighter server early and the Aster server a week later.

Circle answered that it acts on court orders from law enforcement. On November 25 Apiiro reported the delivery domains to Namecheap, the fallback domain to Dynadot and all three hostnames to Cloudflare. The theft server's host, AS214351, got a report as well, and the new indicators went to ThreatFox. On November 28 AnonHaven found that aylla18/Polymarket-Market-Agent, a repo the indicator list marks as live, was still public on GitHub.

Apiiro published detection rules and technical notes in the miou-detection repository. The set has four YARA rules for the Python loader and six for binaries. It adds six Sigma rules, four Semgrep rules for Python MCP server repos and Microsoft Defender for Endpoint hunting queries. The loader rules matched 36 of 36 known repos with zero false positives on 96,893 benign Python files. Three Semgrep rules hit all 36 family repos, with no false positives on the same set. The TLS rule hit 29, as seven repos lack that transport. The binary rules hit all known stages and ran clean on 1,478 benign Windows executables.

A key-extraction script ships with the rules. Scans use yara -r yara/ <path-to-cloned-repo-or-sample> and semgrep --config semgrep/ <path-to-cloned-mcp-server>. The full indicator list, with the status of all 36 repos, is in IOCS.md.

How to check a Windows machine

Look for %LOCALAPPDATA%\Microsoft\EdgeWebView\msedgeview.dll. Edge keeps its real WebView files elsewhere.

Inspect HKCU\Software\Classes\CLSID for a key whose InprocServer32 points to that DLL. Apiiro saw {AAA288BA-9A4C-45B0-95D7-94D524869DB5}, but the key changes between builds.

Look for a running rundll32.exe "…\EdgeWebView\msedgeview.dll",#3.

Search MCP client configs and cloned repos for base\data\bundle.pkg, runtime\data\embed.pkg or kernel\data\dist.pkg of 11 to 22 MB.

Any of these signs means the machine's secrets are exposed. Treat its browser sessions, saved passwords, wallets, Telegram, Discord and Slack sessions and FileZilla servers as exposed. Move funds from a clean device first, then rotate credentials. Verify the recipient of each crypto payment sent since.

An MCP server is code your agent runs with your permissions on every start. One cloned from GitHub gets no registry scan, so review it like a dependency.

— Shmulik Cohen, report author, Apiiro

Apiiro's advice starts with reading a server's entry point and everything it imports at startup. A decorator that starts a thread, a hidden interpreter or a large binary blob in a Python repo is a red flag. Prefer servers from the vendor's GitHub organization or a registry with verified publishers. Run new servers in a sandbox or under a separate user first, with outbound traffic logged.

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 …,#3 launch.

Have a story? Become a contributor.

We work with independent researchers and cybersecurity professionals. Send us a tip or submit your article for editorial review.

Questions on the topic

How do the malicious MCP servers in the MIOU campaign infect computers?
The malicious MCP servers start a hidden thread through a @bootstrap decorator as soon as Claude, Cursor or Cline launches them. Within about 20 seconds they load the Beretta stealer into memory and drop a crypto clipper on Windows.
How can I tell if my Windows PC has the MIOU clipper?
Look for %LOCALAPPDATA%\Microsoft\EdgeWebView\msedgeview.dll and a rundll32.exe process running that DLL with ,#3. Apiiro says browser sessions, passwords and wallets on such a machine should be treated as exposed.
Is Beretta the same as the StealC stealer?
Apiiro says no. Beretta uses X25519 and AES-GCM with its own BRT2CFG2 config, while StealC v2 uses plain HTTP with JSON, RC4 and base64.