Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

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

Summary

Postinstall hook installs SQLite runtime into ~/.9router/runtime (benign). The server bundle contains a MITM subsystem that generates and trusts a "9Router MITM Root CA" system-wide (chunks/915.js), and can hijack DNS for GitHub Copilot, Google Antigravity, CodeWhisperer, Kiro, and Cursor by writing to /etc/hosts (chunks/915.js). API routes under app/api/cli-tools/ read AI agent config from ~/.claude/, ~/.cursor/, ~/.codex/, etc. (credential_harvest). A remote install URL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash is embedded in warning text (download_execute). Prompt-injection text impersonates a system message in token-saver.html.

Intent

A 9Router proxy CLI that ships a Next.js server with a built-in MITM root CA installer, DNS hijacking for AI coding tool APIs, and API routes that read/write AI agent configuration files. The package also embeds a remote script download-and-execute URL.

credential_access credential_harvest network_egress agent_config_tamper code_execution persistence obfuscation

Findings

MITM Root CA generation and system trust installation high app/.next-cli-build/server/chunks/915.js:1
Generates a 2048-bit RSA "9Router MITM Root CA" certificate and installs it into Windows Root store (certutil), macOS System.keychain (security), and Linux trust store + browser NSS databases (certutil -d sql). Enables decryption of all TLS traffic.
DNS hijacking via /etc/hosts for AI coding tool APIs high app/.next-cli-build/server/chunks/915.js:46
Writes DNS entries redirecting 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 via /etc/hosts (sudo on Linux/macOS).
Credential harvesting from AI agent config directories high app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js:1
API routes /api/cli-tools/claude-settings, codex-settings, cursor/import, devin-settings, hermes-settings, droid-settings, openclaw-settings, opencode-settings, pxpipe/*, settings/* read from ~/.claude/, ~/.cursor/, ~/.codex/, etc.
Download-and-execute URL embedded in warning text high app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js:24
URL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash instructs user to pipe remote script into bash.
Prompt injection / system impersonation medium app/.next-cli-build/server/app/dashboard/token-saver.html:1
HTML file contains text impersonating a system/operator message.
Heavy obfuscation in server chunks medium app/.next-cli-build/server/chunks/
Multiple large chunks (915.js 34KB, 3193.js 187KB, 7774.js 506KB) use packed module IDs and variable renaming.

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