Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

suspicious   confidence 60%   action isolate   analyzed 2026-09-24 18:17 UTC by yolo in 13 tool calls, with lab detonation

Summary

Install hook (hooks/postinstall.js) lazily installs runtime native deps (sql.js, better-sqlite3, systray2) into ~/.9router/runtime/ — benign. The main payload is a Next.js server (app/.next-cli-build/) that runs a local MITM proxy on port 443: generates a "9Router MITM Root CA", installs it to Windows Root / macOS Keychain / Linux trust store, modifies /etc/hosts to redirect GitHub Copilot, Cursor, Amazon Q, and Google Antigravity hosts to 127.0.0.1, and proxies API calls through the local server. The MITM capabilities are the core feature, not hidden malware, but they give the running process system-level trust and network interception privileges.

Intent

A local MITM proxy server for AI API traffic routing. Generates and installs a self-signed Root CA into system trust stores, redirects tool-host DNS entries to localhost, and intercepts/ proxies HTTPS traffic on port 443.

credential_access network_egress code_execution persistence privilege

Findings

Root CA generation and system trust installation high app/.next-cli-build/server/chunks/915.js:1
app/.next-cli-build/server/chunks/915.js generates a 2048-bit RSA key pair and a self-signed certificate named '9Router MITM Root CA', then installs it to Windows Root store (certutil), macOS Keychain (security), and Linux trust store (update-ca-certificates) + Firefox NSS databases.
DNS hijacking for AI tool hosts high app/.next-cli-build/server/chunks/915.js:46
app/.next-cli-build/server/chunks/915.js:46-48 rewrites /etc/hosts (or Windows hosts) to point daily-cloudcode-pa.googleapis.com, cloudcode-pa.googleapis.com, api.individual.githubcopilot.com, q.us-east-1.amazonaws.com, codewhisperer.us-east-1.amazonaws.com, runtime.us-east-1.kiro.dev, api2.cursor.sh to 127.0.0.1, requiring sudo/UAC elevation.
HTTPS server on port 443 medium app/.next-cli-build/server/chunks/915.js:53
app/.next-cli-build/server/chunks/915.js:53 starts a Node.js HTTPS server on port 443 using the generated Root CA, intercepting all traffic to the redirected hosts.
Runtime dep installation to user directory info hooks/postinstall.js:10
hooks/postinstall.js runs npm install [email protected] and [email protected] into ~/.9router/runtime/node_modules/ — standard for CLI tools needing native modules at runtime.
Canary credential read (npm itself) info hooks/postinstall.js (lab report)
Lab read /home/andy/.gitconfig — this is npm reading global config during install, not the package code directly.

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