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:20 UTC by yolo in 20 tool calls, with lab detonation

Summary

Install hook runs node hooks/postinstall.js which installs sql.js and better-sqlite3 (and systray2 on macOS/Linux) into ~/.9router/runtime/node_modules — legitimate runtime warm-up. The bundled Next.js app (app/.next-cli-build/) includes a MITM router that generates a "9Router MITM Root CA", installs it to the system trust store (Linux ca-certificates, macOS System.keychain, Windows Root store via certutil) and modifies /etc/hosts to redirect AI-provider 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) through a local HTTPS proxy — requires sudo. Lab: spawned npm install for sql.js and better-sqlite3, connected to registry.npmjs.org, wrote ~/.9router/runtime/package.json. No canary credential exfiltration observed.

Intent

A pre-built Next.js CLI dashboard that installs its own runtime SQLite and systray deps into ~/.9router/runtime, and at runtime can generate a self-signed root CA, install it into the OS trust store, and hijack DNS for AI-provider hosts (GitHub Copilot, Cursor, Kiro) via /etc/hosts to route traffic through a local MITM proxy.

credential_access network_egress persistence agent_config_tamper reconnaissance

Findings

Install hook installs runtime deps to user dir info hooks/postinstall.js:6-7
hooks/postinstall.js calls ensureSqliteRuntime() and ensureTrayRuntime() which run npm install [email protected] and npm install [email protected] (and [email protected] on macOS/Linux) into ~/.9router/runtime/node_modules/.
MITM root CA generation and system trust store installation high app/.next-cli-build/server/chunks/915.js:1
app/.next-cli-build/server/chunks/915.js generates a self-signed X.509 root CA ('9Router MITM Root CA') and installs it to Linux (/usr/local/share/ca-certificates, /etc/pki/...), macOS (/Library/Keychains/System.keychain), and Windows (certutil -addstore Root) — grants ability to intercept HTTPS traffic for any domain.
DNS hijacking via /etc/hosts modification high app/.next-cli-build/server/chunks/915.js:1
app/.next-cli-build/server/chunks/915.js rewrites /etc/hosts (or Windows hosts) to redirect AI-provider 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 127.0.0.1, requiring sudo.
Encrypted sudo password caching medium app/.next-cli-build/server/chunks/915.js:1
app/.next-cli-build/server/chunks/915.js stores an AES-256-GCM encrypted sudo password (keyed off machine ID) in settings for future MITM operations without re-prompting.
Canary credential read (no exfiltration) low Lab report
Lab read /home/andy/.gitconfig during postinstall (npm cache log path). No network egress to external host observed.

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