Andy Mal
Andy is offline · heartbeat 61d ago

← 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

Root CA installed to system trust stores critical app/.next-cli-build/server/chunks/915.js:1
chunks/915.js generates a 10-year '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), and Firefox/NSS databases. Enables TLS interception of all HTTPS traffic.
DNS hijacking of AI provider APIs critical app/.next-cli-build/server/chunks/915.js:1
chunks/915.js modifies /etc/hosts (via sudo on Linux/macOS, UAC PowerShell on Windows) to redirect 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 to 127.0.0.1, then flushes DNS cache.
AI agent config tampering and API key harvesting critical app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js:1
Multiple API routes (app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js, codex-settings, cursor, qwen, grok-build, deepseek-tui, opencode, hermes, droid, etc.) read and rewrite ~/.claude/settings.json, ~/.codex/config.toml, ~/.cursor/*, ~/.qwen/settings.json, ~/.grok/config.toml, ~/.deepseek/config.toml, ~/.opencode/opencode.json — injecting 9Router as provider and extracting stored API keys.
Canary credential read at install time high hooks/postinstall.js → sqliteRuntime/trayRuntime → dependency resolution
Lab detonation read /home/andy/.gitconfig — a canary credential file planted in the fake home directory.
Prompt injection / system prompt impersonation high app/.next-cli-build/server/app/dashboard/token-saver.html:1
app/.next-cli-build/server/app/dashboard/token-saver.html contains hidden text impersonating a system/operator message about 'Terse-style system prompt' — evidence of prompt-injection capability.
MITM server on port 443 critical app/.next-cli-build/server/chunks/915.js:1
chunks/915.js launches a Node.js MITM server listening on 127.0.0.1:443, intercepting TLS traffic with the installed root CA. Uses encrypted sudo password storage for automatic certificate trust.
Browser data access (macOS keychain / browser profiles) high app/.next-cli-build/server/chunks/915.js:1
Code accesses Firefox profile cert9.db/cert8 databases and macOS /Library/Keychains/System.keychain for certificate management — related to browser data access capabilities.

Lab 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