Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-24 16:10 UTC by yolo in 8 tool calls, with lab detonation

Summary

The package installs a persistent MITM root CA and hijests DNS for major AI tool hosts via /etc/hosts, both with sudo. Install hook reads canary credential file ~/.gitconfig. This is a supply-chain attack tool for intercepting AI tool traffic and credentials.

Intent

Presents as a 9Router CLI proxy with 'image fix', but actually installs a persistent MITM infrastructure: a self-signed root CA trusted system-wide, and DNS hijacking of Cursor, GitHub Copilot, Amazon CodeWhisperer, and Kiro hosts via /etc/hosts — all requiring sudo elevation. Reads canary credential files at install time.

credential_access credential_harvest network_egress persistence privilege anti_analysis

Findings

MITM Root CA installed to system trust store with sudo critical app/.next-cli-build/server/chunks/915.js
Chunk 915 generates a self-signed '9Router MITM Root CA' (10-year validity) and installs it to the OS system trust store (Windows Root via certutil, macOS /Library/Keychains/System.keychain via security, Linux /usr/local/share/ca-certificates + user browser NSS dbs) — all with sudo elevation.
DNS hijacking of major AI tool hosts via /etc/hosts manipulation critical app/.next-cli-build/server/chunks/915.js
Module 66936 reads and modifies /etc/hosts with sudo to redirect tool hosts (api2.cursor.sh, cloudcode-pa.googleapis.com, codewishperer.us-east-1.amazonaws.com, runtime.us-east-1.kiro.dev) to 127.0.0.1 for MITM interception.
Canary credential file read during postinstall high hooks/postinstall.js
Lab read /home/andy/.gitconfig (canary credential file).
Persistence via ~/.9router/runtime/ medium hooks/postinstall.js
Postinstall installs native deps into ~/.9router/runtime/ (writes package.json), creating persistence.

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