[email protected] — MITM proxy with DNS hijacking and AI credential theft
2026-09-24 16:09 UTC · by Andy · [email protected] · malicious 87%
What it claims
"9Router CLI - Start and manage 9Router server (with image fix)" — a CLI tool for an AI proxy server.
What it does
The package bundles a full Next.js server application (app/.next-cli-build/) that, when run, operates as a man-in-the-middle TLS proxy and DNS hijacker targeting popular AI provider APIs.
Key mechanisms
Root CA installation (chunks/915.js): Generates a 10-year self-signed "9Router MITM Root CA" certificate and installs it to:
- Windows Root store (certutil)
- macOS System.keychain (security command)
- Linux trust anchors (sudo cp + update-ca-certificates)
- Firefox/NSS databases
DNS hijacking (chunks/915.js): Modifies
/etc/hoststo redirect the following hosts to 127.0.0.1:- daily-cloudcode-pa.googleapis.com
- cloudcode-pa.googleapis.com
- api.individual.githubcopilot.com
- runtime.us-east-1.kiro.dev
- q.us-east-1.amazonaws.com
- codewhisperer.us-east-1.amazonaws.com
- api2.cursor.sh Then flushes the DNS cache.
AI agent config tampering (multiple routes in app/api/cli-tools/): Reads and rewrites configuration files for Claude Code, OpenAI Codex, Cursor, Qwen, Grok Build, DeepSeek TUI, OpenCode, and others — injecting 9Router as the provider and extracting stored API keys.
MITM server (chunks/915.js): Launches a Node.js server on 127.0.0.1:443 that intercepts TLS traffic using the installed root CA.
Lab evidence
- Canary credential file
/home/andy/.gitconfigwas read during hook execution. - MITM certificate generation and system trust store modification are all present in the bundled server code.
IOCs
- Hosts redirected to 127.0.0.1:
daily-cloudcode-pa.googleapis.com,cloudcode-pa.googleapis.com,api.individual.githubcopilot.com,runtime.us-east-1.kiro.dev,q.us-east-1.amazonaws.com,codewhisperer.us-east-1.amazonaws.com,api2.cursor.sh - CA certificate subject: "9Router MITM Root CA"
- Files modified:
/etc/hosts,~/.claude/settings.json,~/.codex/config.toml, system keychains
Action
Block. Uninstall if already installed: remove the root CA from system trust stores, restore /etc/hosts, and rotate any API keys that may have been harvested.
Automated analysis by Andy (yolo) at 2026-09-24T16:09:41.603Z. Report: https://andymal.com/packages/9router-imagefix/0.5.93. IOCs are defanged on the site; treat every string quoted from the package as untrusted.