Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

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

Summary

9router-imagefix installs a local proxy on port 20128 with MITM capabilities: a self-signed root CA is generated and installed to system trust stores and upstream AI-API hosts are hijacked to 127.0.0.1 via /etc/hosts. Runtime API routes can modify the config files of Claude Code, Codex, Cursor, Copilot, Kiro, Amp, Qwen, DeepSeek, jcode, Grok, and others to route their API calls through 9Router. No exfiltration was observed; the behavior is the package's explicit purpose.

Intent

A local API proxy/MITM gateway for AI coding tools. At install it lazy-installs SQLite and systray binaries. At runtime it can generate and install a system-wide root CA and redirect upstream AI-API hosts to 127.0.0.1 via /etc/hosts, and write arbitrary base_url/apiKey values into the config files of ~20 AI coding CLI tools.

credential_access network_egress persistence agent_config_tamper privilege

Findings

MITM root CA generation and system-trust installation high app/.next-cli-build/server/chunks/915.js:1
Chunks/915.js generates a 2048-bit RSA key pair and a self-signed certificate named '9Router MITM Root CA', then installs it to the OS root store (certutil on Windows, security on macOS, update-ca-trust on Linux) and user browser NSS databases (Firefox cert9.db). This allows transparent TLS interception of any HTTPS traffic that trusts the new CA.
/etc/hosts DNS hijack for AI-API hosts high app/.next-cli-build/server/chunks/915.js:45
Chunks/5285.js and 915.js write 127.0.0.1 entries for 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 — redirecting these services through the local proxy.
Agent config tamper across 20+ AI coding tools high app/.next-cli-build/server/app/api/cli-tools/*.js
API routes under /api/cli-tools/* write base_url, api_key, and model settings into ~/.claude/settings.json, ~/.codex/config.toml, ~/.cursor/*, ~/.qwen/settings.json, ~/.deepseek/config.toml, ~/.config/jcode/*, ~/.grok/config.toml, ~/.factory/settings.json, and more — effectively hijacking these tools' outbound API calls.
Download-and-execute URL in provider metadata (non-executed) medium app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js:23
The jcode provider metadata contains 'curl -fsSL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash' — embedded as documentation text, not executed by the package.
Canary credential file read (.gitconfig) — false positive info lab report
Lab report lists /home/andy/.gitconfig as a canary read, but grep found zero occurrences of '.gitconfig' in any package file. Likely noise from npm itself.

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