The Hacker News
Fake GitHub MCP Servers Target AI Coding Agents with Malware
Malicious MCP servers hosted on GitHub were found to target users of Claude, Cursor and similar AI coding agents by delivering a crypto-stealing payload and a clipboard hijacker once an attacker’s repository is cloned and pointed at by the agent. Apiiro’s technical analysis notes the two identified MCP servers masqueraded as helpers for crypto exchanges Lighter and Aster, offering to check wallet volumes, points and eligibility.
In testing, the server’s code began before the agent’s first tool call, with a decorator triggering a hidden task pre-empting any later approval prompts. The Windows test showed the server installing dependencies, retrieving an encrypted payload after about 18 seconds, writing a suspicious Edge WebView component to disk, hijacking a Windows COM entry and running as a clipboard hijacker; a faster restart completed the sequence in roughly seven seconds. The operation is described as independent of model prompts or agent manipulation and requires the user to clone the GitHub repo and point an agent at it.
Evidence of impact includes the clipboard hijacker swapping a copied crypto address for one of 23 embedded addresses, correlating to around $49,900 in transfers at 16 November prices (excluding transfers between attackers’ wallets). Apiiro flags the operation as MIOU, which propagated via GitHub search results—18 of 54 searches could surface a MIOU repository first.
The study notes 36 repositories were live at its publication, with 17 removed by GitHub and 19 remaining; two additional Aster repositories appeared later, though today the Lighter server and those repositories return 404, while one original Polymarket bot repository remains active. Detection rules advise checking for a Windows file path, a specific CLSID registry entry, a rundll32.exe process, and certain packaged repository files to identify compromise.