Published: 2026-12-05
Categories: Agentic AI Supply Chain Security
MIOU: Trojanized MCP Servers That Run Before Approval Prompts
Key Takeaways
MIOU is a malware operation that Apiiro disclosed on November 26, 2026. It publishes trojanized Python Model Context Protocol (MCP) servers and cryptocurrency tools on GitHub. The servers pose as helpers for the Lighter and Aster perpetual-futures exchanges [1][2][3]. When an MCP client such as Claude Desktop, Claude Code, Cursor, or Cline launches one of these servers, a hidden loader pulls an encrypted payload. That payload installs a previously unreported Windows infostealer, which Apiiro calls Beretta, along with a persistent clipboard hijacker [2][4]. In Apiiro’s isolated Windows test, both were running before the agent made its first tool call. The Hacker News summarized the consequence directly: an approval prompt for a later tool would not have stopped the attack [4]. The incident is a concrete illustration of a structural point. Per-tool approval prompts govern what an agent does with a server. They do not govern what the server does when the client starts it.
The first conclusion for security teams is that approval prompts sit at the wrong boundary for this threat. Starting a local stdio MCP server is ordinary process execution with the user’s privileges, and in MIOU the malicious code runs when the server process starts, before the client sends initialize or tools/list [3]. The second is that the discovery signals developers rely on were manufactured. According to Apiiro’s analysis as reported by The Hacker News, a bot wrote 26,407 of 26,511 commits, 1,222 of 1,319 accounts engaging with the repositories looked like a farm of batch-created accounts, and a MIOU repository came up first in 18 of 54 developer-style GitHub searches [4].
Takedowns, moreover, have not contained the operation. On December 4, StepSecurity counted 910 live repositories containing the stager and found MIOU servers again ranked first for some searches on the Glama directory [3]. By contrast, MIOU did not appear in any of the other registries and directories StepSecurity checked, which included the Official MCP Registry and Smithery as well as open community directories and lists such as PulseMCP and mcp.so [3]. It is unclear whether that absence reflects registry controls or simply the operators’ choice of distribution channels. Finally, the effective controls come before launch: provenance verification, review of the server’s startup code, sandboxed execution, and egress monitoring. Prompt-level oversight and tool-definition pinning do not cover this attack.
Background
MCP lets AI applications connect to external tools and data sources through “servers.” A local server is typically run over the stdio transport. The client launches a command from its configuration file, such as claude_desktop_config.json, ~/.cursor/mcp.json, or a project-level .mcp.json, and talks to the process over standard input and output [3]. The MCP project’s own security guidance describes local servers as “binaries that are downloaded and executed on the same machine as the MCP client” and warns that, without sandboxing and consent requirements, attackers “can execute any command with MCP client privileges” [6]. OWASP’s MCP Security Cheat Sheet adds that the stdio transport “does not restrict the server process’s file system, network, or credential access” [7]. In practice, adding a local MCP server to an agent’s configuration is the same trust decision as running an unreviewed program, and it recurs every time the agent starts.
Much of the published research on MCP risk, however, has focused on the model layer. In April 2025, Trail of Bits described “line jumping,” in which a malicious server injects instructions through tool descriptions. That technique allows malicious MCP servers “to execute attacks before any tool is even invoked,” because “the injection occurs before explicit tool invocation, circumventing the safeguards of user approval and command authorization” [5]. Tool poisoning, rug pulls, and cross-server shadowing have since become standard entries in MCP threat models [7]. All of these attacks work by manipulating the model. Line jumping still needs the model to read malicious metadata; MIOU needs only the process to start. The Hacker News notes that the campaign is “not a flaw in the coding agents” and does not depend on tricking the model with a planted instruction [4]. It is conventional software supply chain malware that uses the agent’s configuration as its launcher.
The operation’s name comes from labels in its loader (MIOU_header_v1, MIOU_meta_v1, MIOU_hmac_v1) [2]. Apiiro reported 36 live repositories to GitHub on November 17–18, 2026, and published its analysis, detection rules, and indicators of compromise on November 26 [1][2][3]. According to Apiiro’s figures as reported by The Hacker News and StepSecurity, the 23 hard-coded clipper wallet addresses had received about $49,900 by November 16, not counting transfers among the operators’ own wallets [3][4]. That snapshot understates the total. StepSecurity reports a single 27,170 USDT payment to a clipper address on November 18, about $29,200 in total inflows between November 16 and December 4 (only about $650 of it after the November 26 disclosure), and about $70,300 held in the addresses on December 4 [3]. These figures measure inflows to attacker wallets, not confirmed victim losses, and no victim count has been published [3][4]. Researchers tie the infrastructure to earlier activity in 2026. StepSecurity reports a predecessor domain registered on January 7, 2026, and first payments to the clipper wallets arrived in February [3][4].
Security Analysis
How the Payload Runs Before the First Tool Call
The MIOU lures are built to install smoothly. Each repository’s README contains a ready-to-paste claude_desktop_config.json block that runs the server’s main.py. From then on, the MCP client runs that command every time the agent launches [3]. The trigger is a decorator on the server’s main() function. The decorator is named @bootstrap in the Lighter variant, @ready in the new Aster server, and @engage in the Polymarket bots. On first call it starts a background daemon thread and then hands control to the real server code, so the advertised tools (get_volume, get_points, get_eligibility) work as expected [3]. Apiiro’s Semgrep rules describe the same pattern. The loader “runs on first call of the decorated entry point (or at import time)” and hides “a C2 pull behind this so the tool works normally while the payload downloads in the background” [2]. StepSecurity states the timing precisely: “the malicious code runs when the server process starts, before the agent sends initialize or tools/list” [3]. In Apiiro’s test, the encrypted payload was fetched about 18 seconds after start, and a later run reached the same point in about 7 seconds [4].
The rest of the chain is built to evade detection. The background thread signs a server-supplied nonce with an embedded HMAC key, requests an AES-GCM-encrypted blob from api.failproxy[.]space or api.nailproxy[.]space, and receives the decryption key in the same response. When DNS is blocked or sinkholed, it falls back to hard-coded Cloudflare IP addresses with TLS verification disabled, and then to curl.exe --resolve [2][3]. The roughly 10 MB stage is piped over standard input to a hidden child Python interpreter. A pure-Python ctypes loader maps the Windows executable into memory there, so no decrypted stage touches disk until the clipper is dropped [2][3].
A crypter whose decryption key depends on anti-debugging checks then delivers two payloads [2][3]. The first is Beretta, a C++ infostealer that runs in memory. It targets more than 100 browser wallet extensions, 40 desktop wallets, authenticator and password-manager extensions, and browser credentials, including by bypassing Chrome’s app-bound encryption. Public threat feeds and an April write-up had tied the same operation to StealC, but Apiiro’s analysis concludes the stealer is a distinct family [1][3][4]. The second payload is a clipboard hijacker, msedgeview.dll, written to %LOCALAPPDATA%\Microsoft\EdgeWebView\. It persists through a per-user COM hijack and replaces copied cryptocurrency addresses with attacker addresses.
The payloads themselves are Windows-only, and StepSecurity notes that only the final in-memory loading step checks for 64-bit Windows and stops. Before that point, the loader accepts win32, linux, and darwin, so macOS and Linux hosts still contact the delivery infrastructure [3]. That gives defenders on every platform a network-level indicator, even where the payload cannot run.
Why Approval Prompts Do Not Apply to Launch-Time Execution
The defensive lesson from MIOU concerns where human oversight sits in the MCP lifecycle. Agent clients usually ask for confirmation before a tool call, especially one with side effects. That checkpoint protects against a model misusing a legitimate tool. A local MCP server, however, starts running when the client spawns the process to begin the session. That happens before capability negotiation, before tool discovery, and long before the model chooses a tool. Each lifecycle stage maps to a different control, as the table below shows, and the controls most associated with “agent safety” sit downstream of MIOU’s execution point.
| Lifecycle stage | Typical control | Would it have stopped MIOU? |
|---|---|---|
| Discovery (GitHub search, MCP directories) | Stars, forks, ranking, publisher reputation | No. Signals were manufactured, and MIOU ranked first in 18 of 54 GitHub searches [4] |
Installation (git clone, paste config) |
Pre-configuration consent; MCP spec requires showing the exact command for one-click installs [6] | Unlikely. The displayed command (python main.py) looks benign, and manual installs fall outside the one-click requirement |
| Process launch (each agent start) | OS sandbox, separate user or VM, egress policy | Likely, if the sandbox denies egress by default or keeps credentials and wallets out of reach. Egress logging alone would detect but not prevent the attack. This is where MIOU executes [3] |
Initialization (initialize, tools/list) |
Tool-definition pinning and change alerts [7] | No. Tool definitions were benign, and pinning “detects metadata changes, not changes to server code” [7] |
| Tool invocation | Per-call approval prompt | No. The payload was already running [4] |
| Post-compromise | EDR, network detection, IOC hunting | Detects only after compromise. Apiiro’s YARA, Sigma, Semgrep, and KQL rules apply here [2] |
Two points from this mapping deserve emphasis. First, the MCP specification’s consent requirement is narrower than it may appear. The “MUST implement proper consent mechanisms prior to executing commands” language applies to clients that support one-click local server configuration [6]. A developer who clones a repository and pastes a configuration block by hand has already given that consent, and the command they approved, a Python script in the repository, says nothing about what the script imports. Second, MIOU would likely have passed model-layer defenses that inspect tool metadata or model behavior. Its tool descriptions are not poisoned, and its tools behave as advertised. A scanner that inspects tool metadata, or a guardrail that watches the model’s tool selection, would have reported nothing unusual. This suggests that organizations relying mainly on prompt-injection defenses and approval prompts to govern MCP may have a blind spot for conventional malware delivered through agent configuration.
Manufactured Trust and Persistent Distribution
MIOU also shows how readily the trust signals developers use to choose MCP servers can be faked with batch-created accounts and an auto-commit bot. In an analysis separate from Apiiro’s, StepSecurity profiled 235 accounts that forked live MIOU repositories. Of those, 232 had zero followers, 217 had exactly two public repositories, and 232 were created in 2026. The median time from account creation to fork was 17 hours [3]. An auto-commit bot pushed a commit roughly every 27 minutes to make repositories look actively maintained [3]. The same tactics worked on MCP directories. Glama removed three listings Apiiro reported on November 18. By December 4 it was listing five MIOU servers added after that removal, and one was indexed 26 minutes after its GitHub repository was created [3]. LobeHub still offered an Install button for a listing reported on November 17–18 [3].
Removal has also proven incomplete. GitHub had removed the original repository in 50 of the 78 fork networks StepSecurity identified, but 621 forks of those removed originals were still live. Fifteen new original repositories appeared after Apiiro’s report to GitHub, three of them within seven minutes on December 4 [3]. This mirrors an earlier, unrelated campaign, in which 444 forks outlived their parents’ removal [3]. StepSecurity found no MIOU entries in the Official MCP Registry, Smithery, and several other directories and community lists it checked [3]. It is not clear whether this reflects registry controls or the operators’ choice of distribution channels, since some open directories were also clean. The result is nonetheless consistent with the view that registries requiring publisher verification or review are harder to exploit than directories that index GitHub automatically, and that provenance controls at the registry layer are worth requiring.
Recommendations
Immediate Actions
Security teams should first find out whether MIOU servers are present. Inventory every MCP configuration file on developer workstations and build hosts, including Claude Desktop, Cursor, Cline and Roo, Claude Code (~/.claude.json and project .mcp.json), and other agent clients. Look for servers launched from cloned repositories, especially any named for Lighter, Aster, Polymarket, Kalshi, or Hyperliquid [3]. Run Apiiro’s published YARA and Semgrep rules across source trees and its Sigma and KQL content across endpoint telemetry [2]. StepSecurity cautions that a clean grep for the embedded HMAC key does not prove a repository is clean, because the loader hides its command-and-control address in many different ways [3]. On Windows, hunt for the clipper DLL under %LOCALAPPDATA%\Microsoft\EdgeWebView\, for HKCU InprocServer32 keys pointing to it, for rundll32.exe invoking ordinal #3, and for python.exe spawning a child python.exe that reads from standard input [2][3][4].
Network teams should block the published infrastructure: the delivery domains failproxy[.]space and nailproxy[.]space, the exfiltration server 62.60.226[.]113 and its fallback domain spellmarketplace[.]club, and the predecessor delivery domain shaftgaft[.]click [3]. They should also alert on TLS to the Cloudflare relay IPs with those hostnames as SNI, because DNS blocking alone is bypassed by design [3]. Any confirmed hit should be treated as full workstation compromise. Move funds from a clean device, rotate credentials and sessions, and review the recipient addresses of recent cryptocurrency transfers [3].
Short-Term Mitigations
Over the next several weeks, organizations should move the MCP trust decision from tool-call time to launch time. Require that local MCP servers come from the vendor’s own organization or from a registry with verified publishers. Do not accept stars, forks, commit activity, or directory rank as evidence of legitimacy [3]. Before approving a server, review its entry point and everything it imports at startup. StepSecurity identifies concrete red flags: decorators that start threads, subprocess calls launching sys.executable or PowerShell, ctypes calls to VirtualAlloc or CreateThread, disabled certificate verification, and large binary blobs in the repository [3].
Run new or unvetted servers in an isolated context, such as a virtual machine, container, or separate OS account, with outbound traffic denied by default or at least logged. Only egress denial would have prevented MIOU’s payload retrieval; logging provides detection. This follows the MCP specification’s recommendation to launch servers “with restricted access to the file system, network, and other system resources” [6]. Note that OWASP cautions “a bare chroot is not a process sandbox” [7]. Endpoint teams should treat agent clients as process launchers and baseline which child processes they spawn.
Strategic Considerations
In the longer term, MIOU argues for refining how the industry describes human-in-the-loop controls for agents. Approval prompts remain valuable against model misbehavior and injected instructions, but they are a runtime control on agent actions, not a supply chain control on agent components. Governance policies, vendor questionnaires, and risk registers that cite “user approval required for tool use” as a mitigation for malicious MCP servers should be reviewed so that they also cover pre-launch provenance and execution isolation.
Client vendors could narrow the gap by sandboxing local servers by default. They could also extend pre-configuration consent beyond one-click installs to any newly added server command, and show which files a launch command will execute. Directory operators could re-check listings when source repositories disappear and review startup behavior before ranking servers [3]. Finally, cheap account farms, bot-generated commit histories, and fast directory indexing suggest that open MCP directories will keep being used for distribution. Organizations should plan on the assumption that discovery channels are adversarial.
CSA Resource Alignment
CSA’s research note MCP Attack Surface: Tool Poisoning and IDE Auto-Execution (July 2026) is the closest prior analysis [8]. It examined how MCP tool-description poisoning and IDE auto-execution expose developer environments to credential theft and remote code execution. MIOU extends that analysis in one important way. Its execution path needs neither poisoned metadata nor an auto-approved tool call, because launching the server is enough. Readers who have implemented that note’s tool-poisoning mitigations should add the launch-time controls described above, since metadata defenses do not cover this case.
CSA’s AI Coding Agents as Attack Surface: MCP, Poisoning, and Miasma (June 2026) treats coding agents and their repositories as part of the software supply chain [9]. MIOU’s distribution through cloned GitHub repositories, forked networks, and manipulated search rankings is a direct example of the repository-poisoning risk that paper describes. It supports that paper’s recommendation to manage agent extensions with the same provenance discipline applied to code dependencies.
The recent CSA note When “Yes” Rewrites the Rules: Coding-Agent Authorization Drift (November 2026) examines a complementary weakness in agent permission prompts [10]. It shows how the channels that carry authorization can be used to rewrite the authorization policy itself. Together with MIOU, it supports a broader conclusion: permission prompts are a narrower security boundary than they appear. One note shows how the prompt’s answers can be subverted. This one shows how an attacker can act before any prompt is reached.
At the framework level, CSA’s MAESTRO agentic AI threat modeling framework provides a layered model in which MIOU sits in the agent ecosystem and deployment-infrastructure layers rather than the foundation-model layer [11]. That is a useful prompt for threat modelers to look beyond model-centric attacks. The AI Controls Matrix (AICM) v1.1 provides the control vocabulary for operationalizing these recommendations, particularly its supply chain management, threat and vulnerability management, and application and interface security domains, which cover component provenance, malware detection, and execution isolation for agent tooling [12].
References
[1] Apiiro (Shmulik Cohen). “Your Coding Agent Started the MCP Server. The Server Started a Stealer.” Apiiro Blog, November 26, 2026.
[2] Apiiro. “miou-detection: Detection rules for the MIOU MCP-server malware operation and the Beretta stealer.” GitHub, November 2026.
[3] Owais Shaikh, StepSecurity. “MIOU After Disclosure: 910 Live Malicious Repos, Fake MCP Servers Back at #1, and a 27,170 USDT Clipper Payment.” StepSecurity Blog, December 4, 2026.
[4] Swati Khandelwal. “Fake MCP Servers on GitHub Target Claude and Cursor Users with Crypto-Stealing Malware.” The Hacker News, December 3, 2026.
[5] Trail of Bits. “Jumping the line: How MCP servers can attack you before you ever use them.” Trail of Bits Blog, April 21, 2025.
[6] Model Context Protocol. “Security Best Practices.” MCP Specification (draft), accessed December 5, 2026.
[7] OWASP Cheat Sheet Series. “MCP (Model Context Protocol) Security Cheat Sheet.” OWASP, accessed December 5, 2026.
[8] Cloud Security Alliance. “MCP Attack Surface: Tool Poisoning and IDE Auto-Execution.” CSA AI Safety Initiative, July 1, 2026.
[9] Cloud Security Alliance. “AI Coding Agents as Attack Surface: MCP, Poisoning, and Miasma.” CSA AI Safety Initiative, June 28, 2026.
[10] Cloud Security Alliance. “When ‘Yes’ Rewrites the Rules: Coding-Agent Authorization Drift.” CSA AI Safety Initiative, November 26, 2026.
[11] Cloud Security Alliance. “Agentic AI Threat Modeling Framework: MAESTRO.” CSA Blog, February 6, 2025.
[12] Cloud Security Alliance. “AI Controls Matrix (AICM) v1.1.” Cloud Security Alliance, 2025.