DriftLock

Fake MCP Servers on GitHub Trick Claude, Cursor and Cline

Application-security firm Apiiro found trojanized MCP servers for the Lighter and Aster crypto exchanges that install a stealer called Beretta and a clipboard hijacker as soon as Claude Desktop, Cursor or Cline launch them — before the agent makes its first tool call, so clicking "deny" on a tool request would not have stopped it. Apiiro calls the campaign MIOU; it manipulated GitHub search rankings and used batch-created accounts, and a MIOU repository turned up first in 18 of 54 searches a developer might run.

What happened

Apiiro, an application-security research firm, published an analysis on 26 November (updated 28 November) describing trojanized MCP servers posing as integrations for the Lighter and Aster crypto exchanges. Clone one of these repositories and point Claude Desktop, Cursor or Cline at it, and the server installs a Windows stealer Apiiro named Beretta, plus a clipboard hijacker — before the agent ever reaches the point of asking permission to run a tool.

Apiiro reported that in its own sandbox testing, the malware was already running by the time the agent made its first tool call. That detail matters more than it sounds: a lot of company AI policy today boils down to "the agent has to ask before it does anything risky." This campaign doesn't go through that door at all. The MCP server's installation and launch sequence delivers the payload directly, so the approval prompt a user might be trained to scrutinize never gets a chance to matter.

Apiiro was clear that this is not a flaw in Claude, Cursor or Cline themselves — a person has to clone the repository and configure the agent to use it. The attack lives in the supply chain of MCP servers people add to their setup, the same way a malicious npm package or browser extension lives in a different supply chain.

How the campaign hid itself

Apiiro's researchers described the operation, which they call MIOU, as having manipulated GitHub search results and used batch-created accounts to make the malicious repositories look like ordinary, popular projects. Apiiro said a MIOU repository came up first in 18 of 54 GitHub searches a developer might plausibly run while looking for an exchange integration — meaning a careful person doing normal due diligence, picking the top result, could still land on a trojanized server.

The campaign has also shown it can rebuild quickly. Reporting on i10x.ai notes that by 18 November the operation was back with 36 live repositories, this time including the MCP servers; of those 36, 17 were gone from Apiiro's indicator list by 26 November, suggesting takedowns are happening but new repositories keep replacing them.

What the malware actually does

According to Apiiro's writeup and reporting on zerohour.day, on Windows the trojanized server maps an encrypted payload into memory, writes a fake Microsoft Edge WebView DLL to disk, and hijacks a COM registry entry so the payload survives a reboot. Apiiro says the only file actually written to disk is that DLL, named msedgeview.dll — everything else stays in memory, which is a deliberate choice to make the infection harder to spot with simple file scans.

The persistent piece is a clipboard hijacker. Gazewire reported that it swaps any cryptocurrency address a user copies for one of 23 attacker-controlled addresses, and that those addresses had collected roughly $49,900 in inflows by the time of reporting. Gazewire also noted that the Beretta stealer uses its own cryptography and configuration format, distinguishing it from the previously known StealC malware family — this appears to be a new tool, not a rebrand.

Timeline

Date Event
18 November 36 MIOU repositories live, now including MCP servers (per Apiiro's indicator history)
26 November Apiiro publishes initial MIOU analysis; 17 of the 36 repositories already gone
28 November Apiiro updates its analysis
3 December The Hacker News and others report the findings widely

What to check today

This isn't something a single policy memo fixes, but there are concrete steps:

  • Inventory which MCP servers are configured in Claude Desktop, Cursor and Cline on company machines. Most teams have never done this — MCP servers get added ad hoc by whoever is experimenting that week.
  • Treat an MCP server the way you'd treat a browser extension or an npm dependency: something that needs a source you trust, not something that's fine because it came up first in a search.
  • On Windows machines, check for an unexpected msedgeview.dll and unfamiliar per-user COM registrations — these are the specific persistence markers Apiiro and zerohour.day described.
  • Remind anyone who handles crypto payments, even in finance or ops, to visually confirm a pasted wallet address rather than trusting the clipboard, since that's exactly the habit this hijacker exploits.
  • Don't assume "ask before running tools" settings cover this. Apiiro's own testing found the payload ran before that prompt would have appeared.

Where DriftLock fits, and where it doesn't

DriftLock runs locally on Mac and Windows laptops and watches the AI tools people actually use day to day — Claude Code, Cursor, Claude Desktop, GitHub Copilot CLI, VS Code, Windsurf, and AI features inside Chrome, Edge and Brave. For an attack like this, the useful control is visibility: a Console that shows IT and security leaders which MCP servers are configured across the fleet, so an unfamiliar or unvetted server doesn't sit invisibly inside someone's Cursor setup for weeks. Policy can then be set per machine rather than hoping each employee independently audits their own tool configuration.

What DriftLock does not do is scan a cloned repository for malicious code before it runs, and it does not claim to stop a payload that has already executed, in this case or any other. No product should claim that, given how this specific attack works — the malware fires before any permission dialog, from either the agent or a guard sitting beside it, gets a chance to intervene. What a tool like DriftLock can do is reduce how long an unapproved server goes unnoticed, and give IT a kill switch across every managed laptop once something like this surfaces.

DriftLock is available now: free for Mac, with an optional Pro plan. Windows and business accounts are on a waitlist.

What to take away

  • Apiiro found that trojanized MCP servers for crypto exchange integrations installed malware before Claude Desktop, Cursor or Cline ever reached a tool-approval step — manual "ask first" policies don't catch this.
  • The MIOU campaign manipulated GitHub search so its repositories ranked highly; Apiiro said one came up first in 18 of 54 plausible developer searches.
  • The payload persists through a COM hijack and a single disk file, msedgeview.dll, and hijacks copied crypto addresses, with roughly $49,900 in inflows to attacker wallets by Gazewire's count.
  • Treat every MCP server as third-party software requiring the same scrutiny as a browser extension or dependency, not a convenience that comes free with the agent.
  • Visibility into which MCP servers are actually running across company machines is the control that matters here — not stronger in-app permission prompts.

Download DriftLock

Sources

Related