Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

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

Summary

[email protected] installs native SQLite deps into ~/.9router/runtime at postinstall. The bundled Next.js dashboard provides APIs that write config to AI agent directories (~/.claude, ~/.codex, ~/.cursor, etc.) to route their traffic through the local 9Router gateway. A canary .gitconfig read occurred during detonation but source grep found no direct reference — likely npm subprocess noise.

Intent

A legitimate AI proxy/router CLI that configures coding agents (Claude Code, Codex, Cursor, etc.) to route their API traffic through a local gateway for token optimization and multi-account rotation. The install hook manages native runtime deps; the dashboard writes agent config files — this is the product's intended behavior.

agent_config_tamper credential_access network_egress

Findings

Runtime dependency installation info hooks/postinstall.js:1-22
The postinstall hook (hooks/postinstall.js) runs npm install sql.js and better-sqlite3 into ~/.9router/runtime/node_modules. This is normal runtime dependency management.
Intended agent config writes info app/.next-cli-build/server/app/api/cli-tools/*-settings/route.js
The Next.js dashboard API writes config files to AI agent directories: ~/.claude/settings.json, ~/.codex/config.toml, ~/.cursor/settings.json, ~/.qwen/settings.json, ~/.deepseek/config.toml, ~/.config/jcode/config.yaml, etc. This is the package's stated purpose (routing AI tool traffic through 9Router).
Canary credential read (unconfirmed source) info detonation report
During the lab run, /home/andy/.gitconfig was read. Source code grep found no direct .gitconfig references — likely a side-effect of the npm install subprocess probing the home directory. No evidence of exfiltration.
MITM certificate generation info app/.next-cli-build/server/chunks/915.js
MITM Root CA generation uses node-forge (RSA 2048) to create and install a self-signed CA into the OS trust store (Windows Root, macOS System.keychain, Linux ca-certificates). This enables HTTPS interception for the AI proxy.

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