Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

suspicious   confidence 65%   action isolate   analyzed 2026-09-24 18:21 UTC by yolo in 15 tool calls, with lab detonation

Summary

The postinstall hook is clean (installs SQLite/systray into ~/.9router/runtime). The bundled Next.js app provides a web dashboard with API routes that read/write AI tool configs (Claude, Codex, Cursor) and manage a MITM proxy that generates and installs a custom root CA into system trust stores and modifies /etc/hosts. Capabilities are explainable but significant.

Intent

A MITM proxy CLI for AI API traffic. The embedded Next.js dashboard manages provider configs, installs a root CA for HTTPS interception, and modifies /etc/hosts to route specific tool hosts through the proxy.

credential_access network_egress agent_config_tamper persistence

Findings

MITM root CA generation and system trust store installation high app/.next-cli-build/server/chunks/915.js
chunks/915.js generates a 2048-bit RSA root CA (9Router MITM Root CA) and installs it into Windows Root store, macOS System.keychain, Linux trust store, and Firefox/NSS databases — enabling interception of all HTTPS traffic.
/etc/hosts DNS manipulation for AI tool hosts high app/.next-cli-build/server/chunks/915.js
chunks/915.js modifies /etc/hosts to redirect api.individual.githubcopilot.com, api2.cursor.sh, codewhisperer.us-east-1.amazonaws.com, etc. through 127.0.0.1.
Reads AI agent configuration files medium app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js
API routes at /api/cli-tools/claude-settings, /api/cli-tools/codex-settings, etc. read ~/.claude/settings.json, ~/.codex/config.toml, ~/.cursor/settings.json and similar to extract API keys and provider config.
Writes to AI agent configuration files (agent_config_tamper) medium app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js
POST to /api/cli-tools/claude-settings, /api/cli-tools/codex-settings writes ANTHROPIC_BASE_URL, model_providers.9router, etc. into ~/.claude/settings.json, ~/.codex/config.toml to re-route AI tool traffic through 9Router.
Postinstall installs native deps into user-writable runtime dir info hooks/postinstall.js
hooks/postinstall.js runs npm install [email protected] and [email protected] into ~/.9router/runtime/node_modules — standard behavior for a CLI that needs native SQLite.

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