GitHub MCP Server Scam Delivers Beretta Stealer to AI Agent Users

Apiiro has identified malicious Model Context Protocol (MCP) servers on GitHub that target users of Claude, Cursor and Cline with a Windows information stealer and a cryptocurrency clipboard hijacker. The repositories impersonated tools for the Lighter and Aster crypto exchanges, and the campaign’s 23 embedded wallet addresses received about $49,900 at November 16 prices after transfers between attacker-controlled wallets were excluded.
The critical detail is timing. In Apiiro’s isolated test, the malware started before the AI coding agent made its first tool call. A user needed to clone a repository from GitHub and configure an agent to use it, but the server then executed code with the user’s own permissions. An approval prompt for a later agent tool would therefore not have prevented this execution.
Malware executes when the server starts
An MCP server is a small program that an AI coding agent launches to access external tools and data. The fake servers advertised wallet trading-volume checks, points information and token giveaway eligibility for Lighter and Aster users. A decorator on the main server function launched a concealed task before the agent called a tool.
On Windows, the server installed dependencies, downloaded an encrypted payload roughly 18 seconds after launch and mapped it into memory. In a later run, the same point was reached in about seven seconds. It also wrote a file disguised as an Edge WebView component, hijacked a Windows COM entry and used that file as a clipboard hijacker.
The clipboard component replaces a copied cryptocurrency address with one of 23 hard-coded attacker addresses. Apiiro said the $49,900 figure measures incoming transfers to those addresses rather than confirmed victim losses, and it did not publish a victim count. Three other wallets were drained within three minutes after receiving funds sufficient for fees, which Apiiro treats as an indication that the operators controlled their keys.
Search manipulation made repositories appear trustworthy
Apiiro calls the operation MIOU and found that its GitHub manipulation put a MIOU repository first in 18 of 54 searches a developer could plausibly perform. Of 1,319 accounts that starred, forked or posted on the measured repositories, 1,222 appeared to be a batch-created account farm. A bot produced 26,407 of 26,511 commits, creating an appearance of active maintenance.
The stealer identifies itself as Beretta. Although public threat feeds and an April analysis associated the operation with StealC, Apiiro said Beretta has distinct cryptography and its own configuration format. The firm linked the activity to the earlier campaign through a loader that unpacks to the same Beretta build. The broader agent-security risk is also relevant to AI tooling trust and compromise risks because trust in AI-related tooling can become an entry point for compromise.
Indicators to investigate on Windows
Apiiro published detection guidance for systems that may have run one of the servers. Investigators should look for %LOCALAPPDATA%\Microsoft\EdgeWebView\msedgeview.dll, a location where Edge does not store its genuine WebView files; a CLSID key under HKCU\Software\Classes whose InprocServer32 value points to that DLL; and a running rundll32.exe "...\msedgeview.dll",#3 process.
Cloned repositories may also contain bundle.pkg, embed.pkg or dist.pkg files between 11 MB and 22 MB. Apiiro reported 36 live repositories when it investigated. GitHub removed 17 and left 19 online at publication; two further Aster repositories appeared two days later with the same server and signing key. At the time described, one original Polymarket bot repository remained available.
Any of these indicators should be treated as a compromise. Businesses should move crypto assets from a separate clean device, rotate passwords and keys, and verify the destination of recent payments. More broadly, teams should assess cloned MCP servers as executable third-party software, reviewing repository provenance and code before connecting them to an agent running under employee credentials.

