← all versions of 9router-imagefix
[email protected]
malicious confidence 87% action block analyzed 2026-09-24 16:09 UTC by yolo in 15 tool calls, with lab detonation
Summary
Postinstall installs SQLite/systray runtime into ~/.9router/runtime (benign). The real threat is the bundled Next.js server: it generates and installs a self-signed root CA ("9Router MITM Root CA") to Windows Root store / macOS System.keychain / Linux trust stores, modifies /etc/hosts to redirect cloudcode-pa.googleapis.com, api.individual.githubcopilot.com, api2.cursor.sh, codewhisperer.*, runtime.us-east-1.kiro.dev to 127.0.0.1, and writes/rewrites AI agent configs (~/.claude/settings.json, ~/.codex/config.toml, ~/.cursor/, ~/.qwen/settings.json, etc.) with 9Router as the provider — harvesting embedded API keys. Lab read the canary credential /home/andy/.gitconfig.
Intent
Presents as a CLI to manage a 9Router AI proxy server. The bundled Next.js server (app/.next-cli-build/) is a full MITM proxy that installs a root CA into system trust stores, hijacks DNS for major AI provider APIs via /etc/hosts, reads and rewrites AI agent configuration files (~/.claude, ~/.codex, ~/.cursor, etc.) to route all AI traffic through 9Router, and harvests API keys from those configs.
credential_access credential_harvest network_egress persistence agent_config_tamper privilege reverse_shell browser_theft
Findings
app/.next-cli-build/server/chunks/915.js:1app/.next-cli-build/server/chunks/915.js:1app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js:1hooks/postinstall.js → sqliteRuntime/trayRuntime → dependency resolutionapp/.next-cli-build/server/app/dashboard/token-saver.html:1app/.next-cli-build/server/chunks/915.js:1app/.next-cli-build/server/chunks/915.js:1Lab evidence
Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (timed out).
DNS names requested: registry[.]npmjs[.]org
Direct connections: socket 127[.]0[.]0[.]1:53
Canary credential files read: /home/andy/.gitconfig
Files written outside the package: /home/andy/.9router/runtime/package.json