# MIOU After Disclosure: 910 Live Malicious Repos, Fake MCP Servers Back at #1, and a 27,170 USDT Clipper Payment

MIOU trojanized Python MCP servers on GitHub run a hidden loader at startup, dropping the Beretta stealer and a clipboard clipper that swaps crypto addresses.

- Payout: Real-world hack
- Severity: high
- Program: MIOU
- Analysis by: StepSecurity
- Disclosed: 2026-12-05
- Write-up quality: 8/10
- Original: https://www.stepsecurity.io/blog/miou-malicious-mcp-servers-after-disclosure
- Library page: https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-miou-malicious-mcp-servers-after-disclosure
- Tags: area:oss domain:oss impact:data-leak impact:funds-loss kind:incident platform:threat-intel sev:high tech:python tech:windows technique:recon technique:source-review vuln:misconfiguration vuln:secrets-leak

**Target:** Python MCP servers distributed via GitHub repos and MCP directories
**Root cause:** A decorator on the MCP server's main() starts a daemon thread that authenticates to a delivery C2 with an embedded HMAC key, downloads an AES-GCM payload, and pipes a ~10MB Windows PE into a hidden python.exe child that maps it in memory via ctypes, bypassing on-disk AV.
**Steps:**
1. Victim clones a repo such as MCP-Server-Lighter and pastes the README's `claude_desktop_config.json` block into their agent config.
2. On agent launch, the MCP client runs `python main.py --demo`; the `@bootstrap`/`@ready` decorator spawns a background thread before any tool call.
3. Thread POSTs to `/api/v1/auth/session` on `api.failproxy.space`/`api.nailproxy.space`, signs nonce+timestamp with HMAC-SHA256 key `590da1b6...`, POSTs to `/api/v1/data/sync`.
4. Response `{key, data}` is AES-GCM decrypted; on DNS failure the loader falls back to Cloudflare IPs `104.21.0.1`/`172.67.0.1` with `CERT_NONE` and SNI of the real host.
5. Decrypted PE is piped to `python.exe -c "import sys;sys.path.insert(0,'<repo>');d=sys.stdin.buffer.read();from base.carrier import mount;mount(d)"` with `CREATE_NO_WINDOW` (0x08000000).
6. Child maps the PE in memory via ctypes (VirtualAlloc, relocations, CreateThread) and hooks GetProcAddress so ExitProcess resolves to ExitThread.
7. Payload unpacks Beretta stealer (exfil to `62.60.226[.]113:6673` over X25519+AES-GCM) and drops clipper `%LOCALAPPDATA%\Microsoft\EdgeWebView\msedgeview.dll` persisted via HKCU COM hijack, run as `rundll32.exe "<dll>",#3`.
**How found:** Started from Apiiro's 36-repo IOC list, enumerated fork networks via GitHub API, and confirmed each candidate by grepping loader source for the stdin stager pattern `sys.stdin.buffer.read()` fed to a `CREATE_NO_WINDOW` subprocess; decoded embedded C2 configs offline to find 15 new originals and unify 20 loader families under two domains and one HMAC key.
**Exploitation:** Victim only clones a repo and adds the config block; the agent executes the server, which contacts C2 within seconds and drops both the stealer (105 Chrome wallet extensions, 40 desktop wallets, browser/Discord/FileZilla data) and the clipper that swaps copied crypto addresses for one of 23 attacker addresses within ~3 seconds. Largest observed clipper payment: 27,170 USDT to TRON address TL1417…, bridged to Ethereum and swapped to DAI within 16 minutes to evade issuer freezing.
**Escalation:** Fork networks survive takedowns (621 live forks of removed originals), MCP directories rank fakes #1 for targeted searches, and backdated commits plus account farms fabricate trust signals to keep the campaign scaling.
**Insight:** MCP servers execute at process start, before any tool-call approval prompt, so a malicious server's decorator runs on agent launch; hunt for decorators that spawn threads plus `sys.stdin.buffer.read()` piped to hidden subprocesses, and key detections on invariant constants (HMAC key, `/api/v1/auth/session` + `/api/v1/data/sync` protocol, Cloudflare relay fallback with CERT_NONE) rather than per-family obfuscated strings.

## Proof of concept (copied exactly from the original report)

**Stdin stager command that loads PE from stdin**

```
python.exe -c "import sys;sys.path.insert(0,'<repo>');d=sys.stdin.buffer.read();from base.carrier import mount;mount(d)"
```

**Grep command to detect MIOU loader constants**

```
grep -rEl 'd ?= ?sys\.stdin\.buffer\.read\(\);|590da1b680437579a4b18c1b59bbb69f|809c955d521ea87c42a528cc1868ead4|08c959d525e18ac7245a82cc8186ae4d|noisses/htua/1v/ipa' /path/to/cloned/repos
```

**Malicious claude_desktop_config.json MCP server block**

```
{
 "mcpServers": {
 "lighter": {
 "command": "python",
 "args": ["C:\\path\\to\\mcp-server-lighter\\main.py", "--demo"]
 }
 }
}
```

