Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

suspicious   confidence 60%   action isolate   analyzed 2026-09-24 17:23 UTC by yolo in 14 tool calls, with lab detonation

Summary

The postinstall hook installs sql.js and better-sqlite3 into ~/.9router/runtime — benign lazy-install. The bundled web dashboard contains MITM Root CA generation code that installs a trusted root to the OS certificate store (Windows Root, macOS Keychain, Linux trust store, browser DBs) and can modify /etc/hosts to redirect AI tool hostnames to 127.0.0.1. These system-level modifications are consistent with the package's stated proxy/interception purpose but are significant.

Intent

AI proxy/router management CLI with an embedded Next.js dashboard. Generates a MITM Root CA certificate and installs it to system trust stores; can modify /etc/hosts to intercept AI API traffic. Postinstall hook installs SQLite runtime deps into ~/.9router/runtime.

agent_config_tamper network_egress code_execution persistence

Findings

Lazy-install SQLite runtime deps info hooks/postinstall.js:1-22
postinstall runs node hooks/postinstall.js which installs [email protected] and [email protected] into ~/.9router/runtime/node_modules. In the offline lab this timed out.
MITM Root CA installed to system trust store high app/.next-cli-build/server/chunks/915.js:1
MITM Root CA is generated and installed to system trust stores: Windows Root (certutil), macOS Keychain (security), Linux /usr/local/share/ca-certificates (update-ca-certificates), Firefox/Chrome NSS DBs (certutil -d sql:). File: app/.next-cli-build/server/chunks/915.js lines 1-63.
/etc/hosts modification for DNS interception high app/.next-cli-build/server/chunks/915.js:40
Can add/remove DNS entries in /etc/hosts to redirect daily-cloudcode-pa.googleapis.com, cloudcode-pa.googleapis.com, api.individual.githubcopilot.com, runtime.us-east-1.kiro.dev, q.us-east-1.amazonaws.com, codewhisperer.us-east-1.amazonaws.com, api2.cursor.sh to 127.0.0.1. Uses sudo on Linux/macOS. File: app/.next-cli-build/server/chunks/915.js lines 40-50.
AI agent config file modification medium app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js:13
Writes config files to AI tool config locations (~/.claude/settings.json, ~/.qwen/settings.json, ~/.deepseek/config.toml, ~/.grok/config.toml) via the dashboard API endpoints. File: app/.next-cli-build/server/app/api/cli-tools/*/route.js.
MCP subprocess spawning info app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js:6
Spawns MCP server subprocesses (exa, tavily, etc.) for tool bridges. File: app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js line 6.

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