Fake MCP Servers Turned AI Coding Agents Into Thieves

Human Verified

Share to: , and

A developer's desk at night with a laptop showing abstract code shapes, a small robot assistant beside it, and a shadowy hand reaching for a glowing download icon, illustrating fake MCP servers that infect coding agents.

Apiiro reported on November 26 that fake MCP servers on GitHub install a crypto stealer and a clipboard hijacker on Windows the moment a coding agent starts them. The servers pose as tools for crypto exchanges, and the malware runs before the agent makes its first tool call.

What the Servers Do

The servers belong to an operation Apiiro calls MIOU, after labels in its crypter. They pose as helpers for Lighter and Aster, decentralised exchanges where traders earn points toward token airdrops. The servers offer to check a wallet’s trading volume, points and eligibility.

The attack needs no trickery. A user clones a repository and adds it to an agent’s configuration, as the README instructs. In Apiiro’s isolated test, the server installed its dependencies, pulled an encrypted payload after eighteen seconds, and had its clipboard hijacker running within twenty seconds.

The trigger is a decorator on the server’s main function that starts a hidden thread before the agent calls any tool. That means an approval prompt for a later tool call cannot stop it. On a repeat launch, Apiiro recorded the clipper running seven seconds after startup.

The payload unpacks Beretta, a stealer Apiiro found in no earlier report, and a clipboard hijacker disguised as an Edge WebView file. Beretta targets about two hundred items, including one hundred and five Chrome wallet extensions and forty desktop wallets, plus a file grabber for seed phrases and KeePass databases.

The clipper swaps any copied crypto address for one of twenty-three attacker addresses within three seconds. Public blockchain records show those addresses received about forty-nine thousand nine hundred dollars at November 16 prices, counting inflows only and excluding transfers between the attackers’ own wallets.

The Scale

MIOU had thirty-six live repositories when Apiiro reported it, and the popularity was manufactured. A MIOU repository came first in eighteen of fifty-four GitHub searches Apiiro ran, while one thousand two hundred and twenty-two of one thousand three hundred and nineteen accounts engaging with the repos looked farmed.

GitHub had removed seventeen of the thirty-six repositories by November 26, and the Lighter server was among the first to go. Nineteen were still up, and two more Aster repositories appeared two days later. Apiiro reported the delivery domains on November 25, but none had been suspended by November 26.

Our Read

The striking part is how ordinary the infection looks. There is no package on npm or PyPI for a scanner to flag, and no separate launcher to distrust. The victim clones a repository, pastes a configuration snippet, and the agent runs the code with the user’s own permissions.

It exposes a gap in how agents are trusted. Approval prompts guard tool calls, not the server itself, and stars, forks and commit history are easy to fake — a bot wrote twenty-six thousand four hundred and seven of twenty-six thousand five hundred and eleven commits across the operation’s repositories.

Why It Matters

For anyone running coding agents, the lesson is to treat every MCP server as a dependency. Apiiro’s advice is to read the entry point and everything it imports at startup, run new servers in a sandbox, and prefer servers from a vendor’s own organisation or a registry with verified publishers.

Background

Malicious MCP servers are not new — earlier waves hid in npm and PyPI packages or shipped a separate launcher. MIOU is different because the payload runs straight from a cloned repository, which no package scanner sees. Apiiro has published detection rules for the campaign on GitHub.

Source: Apiiro research and The Hacker News report

Share to: , and

Faheem R. Khattak

Senior automation engineer and AI marketing journo covering LLMs, algorithms, analytics, core updates, Bing search, and technical SEO.

0 Comments

Leave a Reply

Optional Take Tag:

🛡️ Spam protection: Honeypot + Time-Trap Active

This site uses Akismet to reduce spam. Learn how your comment data is processed.