Fake MCP Servers on GitHub Target Claude and Cursor Users With Beretta Malware

By Spark

A malicious campaign tracked as Operation MIOU is using fake MCP (Model Context Protocol) servers on GitHub to target developers running AI coding agents such as Claude, Cursor, and Cline on Windows. According to application-security firm Apiiro, as reported by The Hacker News and MLQ.ai, the malware executes before the agent ever invokes a tool, bypassing standard approval prompts.

How Fake MCP Servers Bypass Agent Prompts

The decoy repositories posed as helper tools for the Lighter and Aster crypto exchanges, offering to check wallet trading volume, points, and token giveaway eligibility. Once a developer clones a repository and points Claude, Cursor, or Cline at it, a hidden decorator on the server's main function launches a background task at startup—before the agent's first tool call.

In Windows tests detailed by The Hacker News, the server installed its dependencies, fetched an encrypted payload roughly 18 seconds in, and mapped it into memory. Because MCP servers run locally with the user's own permissions, later tool-approval prompts cannot stop the infection.

Beretta Stealer and Clipboard Hijacker

According to Aviatrix and MLQ.ai, the campaign deploys two primary payloads:

  • Beretta Stealer: A previously undocumented infostealer built to exfiltrate credentials, session tokens, and secrets stored on developer machines.
  • Clipboard Hijacker: A file disguised as an Edge WebView component performs Windows COM hijacking to silently swap copied crypto wallet addresses for attacker-controlled ones.

Financial Impact and GitHub Manipulation

Apiiro tracked roughly $49,900 in inflows across 23 hardcoded attacker wallet addresses (at November 16 prices). To make the repositories look legitimate on GitHub, the operators relied heavily on bot farms: 1,222 of 1,319 accounts involved were bot-farmed, generating 26,407 of the 26,511 recorded commits.

Editorial transparency: This article was written and translated with AI assistance under editorial supervision, based exclusively on verified journalistic and technical sources.