AI & Compute · 3 min read

Fake MCP Servers on GitHub Deliver Beretta Stealer to Claude and Cursor Users

Apiiro says fake Lighter and Aster MCP repos on GitHub delivered the Beretta stealer to Claude, Cursor, and Cline users, running before any approval prompt and draining ~$49,900.

By Rebecca Stone627 words

Key takeaways

  1. 23 hardcoded attacker wallets received roughly $49,900 at November 16 prices, starting in February
  2. A repository appeared as the top result in 18 of 54 realistic GitHub search queries
  3. 1,222 of 1,319 GitHub accounts engaging with the repos appeared batch-created; 26,407 of 26,511 commits were bot-generated
  4. The payload executed within roughly 18 seconds of server launch, before the agent's first tool call
  5. Apiiro detailed the campaign on December 3 and named the undocumented stealer Beretta
Fake MCP Servers on GitHub Deliver Beretta Stealer to Claude and Cursor Users
lawrence_monk / pixabay

Malicious MCP servers on GitHub have drained roughly $49,900 into 23 hardcoded attacker wallets since February, according to security firm Apiiro, and the payload fires before Claude, Cursor, or Cline can ask the developer for permission.

Apiiro detailed the campaign, tracked as Operation MIOU, on December 3. The attackers published repositories posing as helper tools for the Lighter and Aster cryptocurrency exchanges, promising to check wallet trading volume, points, and token-giveaway eligibility. When a developer pointed an AI coding agent at a cloned repository, the infection started. Apiiro reported that a decorator attached to the server's main function executes a hidden payload before the agent's first tool call — meaning the tool-approval prompts that normally gate MCP behavior never get a chance to block it.

How the attack works

MCP servers are lightweight local programs that AI coding agents launch under the user's own operating-system permissions to connect with external tools and APIs. That architecture is what Operation MIOU abuses.

Crucially, Apiiro's technical analysis showed the attack exploits no bug in Claude or Cursor and relies on no prompt injection. It simply runs code the moment the server starts.

In Apiiro's isolated Windows test, the sequence moved fast:

  • The server installed dependencies and fetched an encrypted payload within roughly 18 seconds — about 7 seconds on subsequent runs.
  • It mapped the payload into memory.
  • It wrote a file disguised as an Edge WebView component to disk.
  • It hijacked a Windows COM entry to run a persistent clipboard monitor.

The Windows malware delivers two components. The first is a previously undocumented stealer Apiiro named Beretta, which uses distinct cryptography and configuration formats that separate it from earlier public attributions tying the infrastructure to the commercial StealC stealer. The second is the COM-hijacking clipboard swapper: it replaces copied cryptocurrency addresses with one of the 23 attacker wallets, which had received roughly $49,900 at November 16 prices, excluding internal transfers between the attackers' own wallets.

How the lures reached the top of GitHub search

The operators didn't just publish malware — they gamed discovery. To lure developers into cloning the trojanized servers, they systematically manipulated GitHub's search rankings. Apiiro found that an Operation MIOU repository appeared as the top result in 18 of 54 realistic developer search queries.

The engagement around those repositories was largely manufactured:

  • Of 1,319 GitHub accounts that starred, forked, or commented on the measured repositories, 1,222 appeared to belong to a farm of batch-created accounts.
  • Automated bots generated 26,407 of 26,511 total commits, making the projects look actively maintained.

The numbers tell the story plainly. Nearly every star was fake. Nearly every commit was a bot. The campaign's credibility with developers was built on fabrication at industrial scale.

What it means for AI-assisted development

The uncomfortable detail for anyone using Claude, Cursor, or Cline is timing. Because the main-function decorator fires at launch — before the agent's first tool call — the permission prompts those agents show users provide no protection here. The malware runs under the developer's own OS permissions from the first moment the server starts.

The broader pattern matters too. Operation MIOU shows that the weakest link in the MCP ecosystem may not be the agents or the protocol itself, but the repositories developers trust enough to clone. Fake exchanges, farmed stars, and automated commits turned a search box into a delivery mechanism.

Apiiro's findings — a distinct stealer family, a live clipboard-hijacking monetization channel, and search poisoning that still works at scale — suggest attackers are investing real infrastructure in the developer-tool supply chain. As agent-driven coding becomes routine, the vetting of what those agents are pointed at becomes the security boundary.

mlq.ai (Source)

Filed under

Share this article:

More from Rebecca Stone

Rebecca Stone

Show full bio

Correspondent covering technology and product news in Semiconductors, chip manufacturing, hardware, AI compute at Chip Dispatch.

1,492 articles

Read also

« Previous article