Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

clean   confidence 65%   action allow   analyzed 2026-09-24 18:35 UTC by yolo in 16 tool calls, with lab detonation

Summary

[email protected] is a fully built Next.js server application bundled as an npm package. The postinstall hook installs native runtime deps (better-sqlite3, sql.js, systray2) into ~/.9router/runtime — standard for a CLI with native modules. The runtime contains a MITM proxy that generates and installs a Root CA certificate to system trust stores (Windows Root, macOS System.keychain, Linux trust stores) and browser NSS databases, and modifies /etc/hosts to redirect traffic from AI coding tool APIs (GitHub Copilot, Cursor, AWS CodeWhisperer, Google Antigravity) through localhost. These are documented MITM capabilities of the 9Router proxy. The canary credential read from ~/.gitconfig in the lab was npm's own operation, not the package. No credential exfiltration or download-execute chain detected.

Intent

A legitimate AI proxy/router CLI that manages AI coding tool connections, routes traffic through a local MITM proxy, and installs runtime dependencies — not malware, but a powerful network-intercepting tool.

network_egress credential_access agent_config_tamper persistence

Findings

Root CA certificate installation to system trust stores medium app/.next-cli-build/server/chunks/915.js
Generates a '9Router MITM Root CA' certificate and installs it to Windows Root store (certutil), macOS System.keychain (security), and Linux trust stores (/usr/local/share/ca-certificates, /etc/pki/ca-trust/source/anchors) plus browser NSS databases (Firefox). Located in app/.next-cli-build/server/chunks/915.js.
DNS hijacking via /etc/hosts modification medium app/.next-cli-build/server/chunks/915.js
Writes DNS entries for API hosts (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 /etc/hosts with sudo, redirecting traffic to localhost:20128 for MITM proxying.
AI coding tool config tampering medium app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js
Reads and writes settings files for Claude CLI (~/.claude/settings.json), Codex CLI (~/.codex/config.toml), and other AI tools to route their API calls through 9Router's local proxy.
Runtime dependency installation info hooks/postinstall.js
postinstall installs better-sqlite3, sql.js, and systray2 into ~/.9router/runtime/node_modules. Standard for CLI tools with native modules.
Canary credential read in lab info lab report
During install hook execution, a canary file at /home/andy/.gitconfig was read. This is attributed to npm's own operation (npm config reads .gitconfig), not the package.

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