Skip to content
Fake GitHub MCP Servers Target Claude and Cursor With Beretta Malware

Fake GitHub MCP Servers Target Claude and Cursor With Beretta Malware

Mlq.Ai • December 3, 2026

Security firm Apiiro uncovered malicious Model Context Protocol (MCP) servers on GitHub posing as tools for the Lighter and Aster crypto exchanges under an operation dubbed MIOU.

When a developer points Claude, Cursor, or Cline at a cloned repository, a decorator on the server's main function executes a hidden payload before the agent's first tool call.

The Windows malware deploys a previously undocumented stealer called Beretta and a COM-hijacking clipboard swapper tied to 23 attacker wallets that received roughly $49,900.

Malicious Model Context Protocol (MCP) servers hosted on GitHub are delivering a Windows infostealer and cryptocurrency clipboard hijacker the moment developers start them through AI coding agents such as [Anthropic](/companies/anthropic/)'s Claude, Cursor, or Cline [1] . Detailed by application-security firm Apiiro and reported on December 3, the campaign, tracked as Operation MIOU, executes its payload before an AI agent even invokes its first tool, meaning later tool-approval prompts cannot block the infection [1] .

How the Fake Crypto MCP Servers Bypass Agent Prompts

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 [1] . In Operation MIOU, attackers published repositories masquerading as helper tools for the Lighter and Aster cryptocurrency exchanges, promising to check wallet trading volume, points, and token-giveaway eligibility [1] .

Apiiro's technical analysis showed the attack does not exploit a bug in Claude or Cursor and does not rely on prompt injection [1] . Instead, a decorator attached to the server's main function starts a hidden background task immediately upon launch [1] . In Apiiro's isolated Windows test, the server installed dependencies, fetched an encrypted payload within roughly 18 seconds (or 7 seconds on subsequent runs), mapped it into memory, wrote a file disguised as an Edge WebView component to disk, and hijacked a Windows COM entry to run a persistent clipboard monitor [1] .

Campaign Element Apiiro Finding (Operation MIOU) Lure repositories Fake Lighter and Aster crypto-exchange MCP helpers Targeted agents Claude, Cursor, Cline (local Windows execution) Trigger point Main-function decorator runs before first tool call Payload Beretta stealer + Edge WebView COM clipboard hijacker Tracked wallet inflows ~$49,900 across 23 hardcoded addresses (at Nov 16 prices) GitHub manipulation 1,222 of 1,319 accounts bot-farmed; 26,407 of 26,511 commits automated

GitHub Poisoning and the Beretta Stealer

To lure developers into cloning the trojanized servers, the operators systematically gamed GitHub's rankings [1] . Apiiro found that an Operation MIOU repository appeared as the top result in 18 of 54 realistic developer queries [1] . 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, while automated bots generated 26,407 of 26,511 total commits to make the projects look actively maintained [1] .

The clipboard hijacker replaces copied cryptocurrency addresses with one of 23 hardcoded attacker wallets that received roughly $49,900 at November 16 prices starting in February, excluding internal transfers between attacker wallets [1] . Apiiro also identified the core infostealer as Beretta, noting it uses distinct cryptography and configuration formats that separate it from earlier public attributions tying the infrastructure to the commercial StealC stealer [1] .

Disclosure: MLQ.ai's newsroom uses AI tools, including Anthropic's Claude, to help produce its coverage.

This article was produced by MLQ.ai's AI newsroom and checked against primary sources such as company filings, official releases and court documents. Reports from a single outlet are attributed. Editor: Peter Foy . How we work · Spotted an error? Tell us .

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.

Fake GitHub MCP Servers Deliver Beretta Stealer to Claude and Cursor Users Security firm Apiiro uncovered malicious Model Context Protocol (MCP) servers on GitHub posing as helper tools for the Lighter and Aster crypto exchanges, tracked as Operation MIOU. A developer who clones one of these repositories and points an AI coding agent such as Claude, Cursor, or Cline at it runs Windows malware, because a decorator on the server's main function starts a hidden payload before the agent's first tool call. Per Apiiro's isolated Windows test, the server pulled an encrypted payload about 18 seconds after launch (about 7 seconds on later runs), wrote a file disguised as an Edge WebView component, and hijacked a Windows COM entry to run a persistent clipboard monitor. The payload deploys a previously undocumented stealer called Beretta and a clipboard swapper tied to 23 attacker wallets, which Apiiro reports received roughly $49,900 (at 16 November prices). Apiiro found the attack does not exploit a flaw in Claude or Cursor and does not rely on prompt injection, so later tool-approval prompts would not stop the infection. To gain visibility, the operators used GitHub bot-farmed accounts: 1,222 of 1,319 accounts engaging with the measured repositories appeared to be part of a batch-created farm. One Operation MIOU repository ranked first in 18 of 54 realistic developer queries. The reporting covers Apiiro's findings only; no victim counts or remediation by GitHub or the agent vendors are reported. 3 sources 67