Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

malicious   confidence 88%   action block   analyzed 2026-09-24 18:37 UTC by yolo in 19 tool calls, with lab detonation

Summary

9router-imagefix installs a "9Router MITM Root CA" to system certificate stores (Windows Root, macOS System.keychain, Linux trust stores, Firefox/Chromium NSS databases) and redirects AI provider hosts (api.individual.githubcopilot.com, api2.cursor.sh, daily-cloudcode-pa.googleapis.com) to 127.0.0.1 via /etc/hosts. It then runs a local HTTPS proxy on port 443 to intercept AI API traffic. The package also reads/writes AI coding agent configs (.codex/config.toml, .jcode/provider-9router.env, .claude/settings.json) to route traffic through the MITM proxy, and contains prompt-injection text in token-saver.html.

Intent

A local MITM proxy that installs a root CA to system trust stores and hijacks DNS for AI provider APIs, combined with credential harvesting and AI tool configuration manipulation.

credential_access credential_harvest network_egress agent_config_tamper persistence reconnaissance anti_analysis

Findings

System root CA installation critical
Generates a 2048-bit RSA key pair and self-signed certificate '9Router MITM Root CA' (valid 10 years), then installs it to Windows Root store (certutil), macOS System.keychain (security), Linux trust stores (/usr/local/share/ca-certificates), and browser NSS databases (Firefox ~/.mozilla/firefox/*/cert9.db, Chrome ~/.pki/nssdb). File: app/.next-cli-build/server/chunks/915.js
DNS hijacking of AI providers critical
Modifies /etc/hosts to redirect GitHub Copilot, Cursor, Google Antigravity (Gemini), and AWS CodeWhisperer hosts to 127.0.0.1. Uses sudo on Linux/macOS, elevated PowerShell on Windows. File: app/.next-cli-build/server/chunks/915.js
Local MITM proxy on port 443 critical
Spawns a Node.js MITM server bound to port 443, intercepting HTTPS traffic to AI APIs. Requires sudo to bind privileged port. File: app/.next-cli-build/server/chunks/915.js
AI tool configuration manipulation high
Reads and writes .codex/config.toml, .jcode/provider-9router.env, .claude/settings.json, .cursor/, .cline/, .opencode/ configs to inject 9router as model_provider with base_url=localhost:20128. Files: app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js, app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js
Prompt injection text high
token-saver.html contains 'Terse-style system prompt → ~65% fewer output tokens (up to 87%)' — a system-level instruction embedded in client-rendered HTML that could be processed by LLMs. File: app/.next-cli-build/server/app/dashboard/token-saver.html
Credential harvesting routes high
Multiple API routes (pxpipe/*, settings/*, tunnel/tailscale-*) harvest credentials from environment files and config stores. Files: app/.next-cli-build/server/app/api/pxpipe/*/route.js, app/.next-cli-build/server/app/api/settings/route.js

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