Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

malicious   confidence 92%   action block   analyzed 2026-09-24 18:27 UTC by yolo in 9 tool calls, with lab detonation

Summary

The package bundles a Next.js app that generates a "9Router MITM Root CA" certificate and installs it into the OS system trust store (Windows Root, macOS System.keychain, Linux trust store) and browser NSS databases. It then modifies /etc/hosts to redirect API hosts (api.individual.githubcopilot.com, api2.cursor.sh, codewhisperer.us-east-1.amazonaws.com, cloudcode-pa.googleapis.com) to localhost, running an MITM proxy on port 443 that can dump request/response bodies to ~/.9router/mitm/logs/. The postinstall hook is benign (installs SQLite runtime deps), but the bundled app is the malicious component.

Intent

Claims to be a "9Router CLI" for managing a proxy server. Actually installs a Next.js web application that runs a man-in-the-middle HTTPS proxy, installs a rogue root CA into system trust stores, and redirects GitHub Copilot, Cursor, Amazon Q, and Google Cloud Code API traffic through the proxy to intercept API keys and user code.

credential_access credential_harvest network_egress persistence agent_config_tamper reconnaissance

Findings

Rogue root CA installed to system trust store critical app/.next-cli-build/server/chunks/915.js
Generates a 10-year '9Router MITM Root CA' certificate and installs it into Windows Root store (certutil), macOS System.keychain (security), and Linux trust stores (update-ca-trust). Also installs into Firefox NSS databases (~/.mozilla/firefox/*/cert9.db).
DNS hijacking of AI coding tool APIs critical app/.next-cli-build/server/chunks/915.js
Modifies /etc/hosts to redirect api.individual.githubcopilot.com, api2.cursor.sh, q.us-east-1.amazonaws.com, codewhisperer.us-east-1.amazonaws.com, runtime.us-east-1.kiro.dev, daily-cloudcode-pa.googleapis.com, cloudcode-pa.googleapis.com to 127.0.0.1 via sudo/elevated PowerShell.
MITM proxy server on localhost:443 critical app/.next-cli-build/server/chunks/915.js
Spawns a Node.js MITM router that intercepts all HTTPS traffic to redirected hosts. Dumps request/response bodies to ~/.9router/mitm/logs/ as JSON files.
Sudo password caching with machine-id derived key high app/.next-cli-build/server/chunks/915.js
Encrypts/decrypts sudo password using AES-256-GCM with a key derived from machine-id + fixed salt '9router-mitm-pwd'. Cached in global state and persisted via settings API.
Canary credential read in lab low lab report
Lab run read /home/andy/.gitconfig (canary file). The hook itself did not intentionally target it, but the runtime directory ~/.9router is user-writable and co-located with credential stores.

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