Malicious MCP servers on GitHub deploy 'Beretta' crypto-stealer
Apiiro details MIOU: trojanized GitHub MCP servers posing as Lighter/Aster crypto tools that launch the Beretta stealer the instant an AI coding agent runs them, before any approval prompt.
Application-security firm Apiiro has documented MIOU, a malware operation that ships trojanized Model Context Protocol (MCP) servers on GitHub. Point an AI coding agent — Claude, Cursor, or Cline — at one of these repositories and it runs a stealer and a clipboard hijacker on Windows before the agent's first tool-call approval prompt ever appears. The payload executes on git clone plus agent start, not on any action the user consciously approves.
The primary sources are Apiiro's writeup ("Your Coding Agent Started the MCP Server. The Server Started a Stealer," by Shmulik Cohen) and Apiiro's detection-rules repository. The Hacker News reported it here.
What it does
The malicious servers pose as helper tools for the Lighter and Aster crypto exchanges — checking a wallet's trading volume, points, and eligibility. Per Apiiro:
- A decorator on the server's main function starts a hidden task before the agent's first tool call, so a later approval prompt would not stop it.
- The server installs its dependencies, pulls an encrypted payload about 18 seconds in, and maps it into memory.
- A file disguised as an Edge WebView component is written to disk and hijacks a Windows COM entry to run the clipboard hijacker via
rundll32. - The stealer is called Beretta. Apiiro says the StealC label applied to earlier reporting of the operation does not hold.
- The clipboard hijacker swaps copied crypto addresses for one of 23 attacker addresses built into the sample.
Apiiro ties roughly $49,900 received at November 16 prices to the attacker-linked addresses (excluding transfers between the attackers' own wallets); first payments arrived in February. The campaign leaned hard on fake credibility: of 1,319 accounts that starred, forked, or commented, 1,222 looked batch-created, and a bot wrote 26,407 of 26,511 commits. MIOU repos ranked first in 18 of 54 developer-style GitHub searches.
Detection artifacts
Apiiro's repository ships YARA, Sigma, Semgrep, and KQL rules. The named host-side IOCs (Windows):
File: %LOCALAPPDATA%\Microsoft\EdgeWebView\msedgeview.dll
Registry: CLSID key under HKCU\Software\Classes whose
InprocServer32 points to that DLL
Process: rundll32.exe "...\msedgeview.dll",#3
Repo: bundle.pkg, embed.pkg, or dist.pkg (each 11-22 MB)
Full IOCs (hashes, repo names, the 36 reported repositories) are in the repo's IOCS.md / iocs.csv.
Action checklist
- Do not point a coding agent at a cloned MCP server you have not read. Starting the server is enough; the payload runs before the first approval prompt. Treat third-party MCP servers like any other untrusted code you are about to execute.
- Hunt for the IOCs above across developer workstations, especially
msedgeview.dllunderEdgeWebViewand therundll32 ...,#3invocation. - Deploy Apiiro's detection rules in your EDR/code-scanning pipeline.
- If a machine ran one of these servers, assume the clipboard was hijacked: audit recent crypto transactions for substituted destination addresses, and rotate anything the stealer could have touched.
Context
Malicious GitHub repositories aimed at AI agents and their operators are now a standing supply-chain beat, not a novelty — see our coverage of the Hugging Face "game cheat" stealer that JFrog flagged. What MIOU adds is the agent as the execution trigger: the server does not wait for a human to approve a tool call, because the AI agent starting it is already enough. Any workflow that clones-and-runs on an agent's say-so inherits that gap.