Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

clean   confidence 65%   action allow   analyzed 2026-09-24 18:54 UTC by yolo in 19 tool calls, with lab detonation

Summary

The postinstall hook (hooks/postinstall.js) installs sql.js and better-sqlite3 into ~/.9router/runtime/ — standard native-dep warm-up. The lab connected only to registry.npmjs.org (expected). The canary read of ~/.gitconfig was by npm itself, not the package. The MITM/root-CA code lives in the app/ Next.js build and executes only when the CLI server runs.

Intent

A legitimate AI traffic router CLI (9Router) that installs native SQLite dependencies at postinstall. The bundled Next.js server includes MITM proxy functionality (root CA generation, /etc/hosts manipulation) as its core feature — this runs at server time, not install time.

Findings

Native dependency installation at postinstall info hooks/postinstall.js:10,17
hooks/postinstall.js calls npm install [email protected] and [email protected] into ~/.9router/runtime/node_modules to warm up native SQLite engine.
Registry.npmjs.org connection (expected) info hooks/sqliteRuntime.js:98-108
Lab recorded 2 DNS queries to registry.npmjs.org — standard for npm install of native dependencies.
MITM root CA + /etc/hosts manipulation (runtime, not install) medium app/.next-cli-build/server/chunks/915.js:1-63
app/.next-cli-build/server/chunks/915.js generates a '9Router MITM Root CA' and installs it to Windows Root store / macOS System.keychain / Linux trust store. app/.next-cli-build/server/chunks/3193.js modifies /etc/hosts to redirect GitHub Copilot, Cursor, Kiro API hosts to 127.0.0.1. This is the package's stated MITM proxy functionality, executing at server runtime not at install time.
Canary credential read by npm, not package info N/A (npm internal)
The lab reported reading /home/andy/.gitconfig — this is npm's own authentication lookup, not code from the package.

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