Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

suspicious   confidence 55%   action isolate   analyzed 2026-09-24 16:43 UTC by yolo in 22 tool calls, with lab detonation

Summary

Postinstall installs sqlite.js/better-sqlite3 and systray2 into ~/.9router/runtime (npm registry only — confirmed in lab). The Next.js server exposes routes that read/write AI agent config files (~/.codex, ~/.claude, etc.) to register 9Router as a model provider — agent_config_tamper capability, but consistent with the package's stated purpose. No credential exfiltration or unexpected egress observed.

Intent

A legitimate AI infrastructure management CLI that installs runtime dependencies (SQLite, systray) and configures AI agent tools (Codex, Claude, etc.). The install hook is benign; the app reads/writes AI agent configs as part of its proxy functionality.

agent_config_tamper

Findings

Runtime dependency installation 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. Lab DNS: registry.npmjs.org only.
AI agent config writes medium app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js
API routes (e.g. app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js) read and write ~/.codex/config.toml to register 9Router as a model_provider. Similar routes exist for Claude, Cursor, Devin, and other AI tools.
Canary credential read (.gitconfig) info lab report
Lab report shows /home/andy/.gitconfig was read during postinstall. Likely from npm itself (npm reads .gitconfig for credential handling). No evidence the package reads it 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/.gitconfig

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