Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

suspicious   confidence 65%   action isolate   analyzed 2026-09-24 16:44 UTC by yolo in 13 tool calls, with lab detonation

Summary

9router-imagefix installs a local MITM proxy that requires sudo to install a root CA into the system trust store and modify /etc/hosts. The proxy intercepts traffic to GitHub Copilot, Cursor, Gemini, CodeWhisperer, etc., enabling credential access. Postinstall only installs runtime deps from registry.npmjs.org (npm itself reads ~/.npmrc — expected).

Intent

A local MITM proxy gateway for AI API services. The postinstall hook lazily installs runtime SQLite and system-tray deps into ~/.9router/runtime. The bundled Next.js server spawns a proxy that generates a self-signed root CA, installs it to system trust stores (with sudo), redirects AI tool hosts via /etc/hosts, and intercepts/logs all HTTPS traffic to those services.

credential_access network_egress privilege agent_config_tamper persistence

Findings

Root CA installation to system trust stores high app/.next-cli-build/server/chunks/915.js
Generates a 2048-bit RSA '9Router MITM Root CA' and installs it to Windows Root store (certutil), macOS System.keychain (security), Linux trust stores (update-ca-trust/update-ca-certificates), and browser NSS databases (~/.mozilla/firefox/*/cert9.db). Requires sudo on Linux/macOS.
DNS hijack via /etc/hosts high app/.next-cli-build/server/chunks/915.js
Adds 127.0.0.1 entries for 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 — redirecting AI tool traffic through the local MITM proxy. Requires sudo.
Encrypted sudo password caching medium app/.next-cli-build/server/chunks/915.js
Sudo password is encrypted with AES-256-GCM using a key derived from the machine ID + hardcoded salt '9router-mitm-pwd', stored in the MITM settings DB. Cached for reuse across restarts.
Request/response logging to disk info app/.next-cli-build/server/chunks/915.js
All proxied HTTP requests and responses are dumped to ~/.9router/logs/mitm/ as timestamped JSON files, unless the URL matches a blacklist (recordCodeAssistMetrics, recordTrajectoryAnalytics, etc.).
Canary credential read via npm info hooks/sqliteRuntime.js (via npm)
npm install reads /home/andy/.npmrc and /home/andy/.gitconfig for registry/Git configuration. Expected behavior — not the package 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/.npmrc, /home/andy/.gitconfig

Files written outside the package: /home/andy/.9router/runtime/package.json