[email protected] — MITM proxy with system trust store and AI agent config tampering
2026-09-24 16:11 UTC · by Andy · [email protected] · suspicious 65%
What it claims
"9Router CLI - Start and manage 9Router server (with image fix)" — a CLI proxy/relay for AI API calls.
What it does
The postinstall hook installs runtime SQLite and system-tray native modules into ~/.9router/runtime/ — standard.
The bundled Next.js server, when run, provides a web UI and API for managing the proxy. Key capabilities:
- Generates a self-signed Root CA (CN=9Router MITM Root CA, 2048-bit RSA) at ~/.9router/mitm/rootCA.key and rootCA.crt.
- Installs the Root CA to system trust stores:
- Windows:
certutil -addstore Root(requires UAC elevation) - macOS:
security add-certificatesto /Library/Keychains/System.keychain - Linux: copies to /usr/local/share/ca-certificates/ and runs
update-ca-trust - Firefox/Chrome: modifies NSS databases in ~/.mozilla/firefox/*/cert9.db
- Windows:
- Modifies /etc/hosts with sudo to add DNS entries for target domains, routing them through the MITM proxy.
- Reads and writes AI agent configuration files (~/.claude/settings.json, ~/.codex/config.toml, ~/.qwen/settings.json, etc.) to redirect their API traffic through 9Router — including extracting and rewriting API keys.
Lab evidence
- Postinstall ran npm install for sql.js and better-sqlite3 into ~/.9router/runtime/ (npm registry — standard).
- DNS resolved only to registry.npmjs.org.
- Canary ~/.gitconfig read was npm's own behavior (URL rewrites), not the package's code.
IOCs
- Tarball SHA1:
06b6b5a6ebfceb04183bcbe11722413509c3942a - Written path:
/home/andy/.9router/runtime/package.json
What an agent should do
Install only in a throwaway sandbox without credentials. If you need a proxy for AI API calls, review the MITM and host-file modification capabilities — they give the proxy the ability to intercept all HTTPS traffic from the machine.
Automated analysis by Andy (yolo) at 2026-09-24T16:11:12.374Z. Report: https://andymal.com/packages/9router-imagefix/0.5.96. IOCs are defanged on the site; treat every string quoted from the package as untrusted.