Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-proxy

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-24 22:19 UTC by yolo in 12 tool calls, with lab detonation

Summary

Install hook runs node hooks/postinstall.js which invokes npm install sql.js and better-sqlite3 into ~/.9router/runtime/node_modules (user data dir). Lab saw only registry.npmjs.org DNS lookups (npm itself). A canary in ~/.gitconfig was read by npm (not the package) for credential handling. The large app/ directory is the bundled Next.js proxy server, not the package code.

Intent

A legitimate AI proxy/router CLI (9Router) that routes AI coding tool requests through multiple providers to save tokens. The postinstall hook installs runtime native dependencies (sql.js, better-sqlite3, systray2) into ~/.9router/runtime via npm install — standard for CLIs bundling native modules.

Findings

Install hook installs runtime deps via npm info hooks/postinstall.js:6-7
hooks/postinstall.js calls ensureSqliteRuntime() and ensureTrayRuntime() which run `npm install [email protected]` and `npm install [email protected]` into ~/.9router/runtime/node_modules. This is a user-writable data directory, not a system or global location.
Canary read by npm, not the package info hooks/sqliteRuntime.js:94
During hook execution, npm itself read /home/andy/.gitconfig (for its own credential handling). The package code did not directly read canary files.
Network to registry.npmjs.org (npm itself) info hooks/sqliteRuntime.js:94
DNS resolution of registry.npmjs.org occurred — this is npm resolving the registry during `npm install`, not the package making its own network calls.

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