Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-proxy

[email protected]

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

Summary

[email protected] installs a self-signed Root CA ("9Router MITM Root CA") to system trust stores and redirects GitHub Copilot, Cursor, CodeWhisperer, and Cloud Code API traffic through localhost via /etc/hosts modifications. The MITM proxies decrypt and log all intercepted traffic to ~/.9router/logs/mitm/. Install hook writes ~/.9router/runtime/package.json and reads the canary file /home/andy/.gitconfig. No external exfiltration detected — traffic routes to the local 9Router server on port 20128.

Intent

A proxy CLI for AI coding assistants that intercepts provider API traffic via a locally-generated Root CA and /etc/hosts redirection — the MITM is the core feature, not a hidden payload.

credential_access network_egress agent_config_tamper persistence

Findings

MITM Root CA installed to system trust stores high app/.next-cli-build/server/chunks/915.js:1
Generates a 10-year self-signed CA (CN=9Router MITM Root CA) and installs it to Windows Root store, macOS System.keychain, Linux trust stores, and Firefox/NSS databases to enable TLS interception.
/etc/hosts modification to redirect AI coding assistant traffic high app/.next-cli-build/server/chunks/915.js:1
Adds 127.0.0.1 entries for api.individual.githubcopilot.com, cloudcode-pa.googleapis.com, api2.cursor.sh, q.us-east-1.amazonaws.com, codewhisperer.us-east-1.amazonaws.com, runtime.us-east-1.kiro.dev — all traffic to these hosts is routed through the local MITM proxy.
Encrypted sudo password cached for MITM operations medium app/.next-cli-build/server/chunks/915.js:1
Stores an AES-256-GCM encrypted sudo password (derived from machine ID + static salt) in local settings to avoid repeated UAC prompts when installing certificates or modifying /etc/hosts.
Canary credential file read during install medium hooks/postinstall.js
The lab detected a read of /home/andy/.gitconfig (canary) during the postinstall hook execution chain.
Prompt-injection hint in embedded UI medium app/.next-cli-build/server/app/dashboard/token-saver.html:1
token-saver.html contains hidden text referencing 'Terse-style system prompt → ~65% fewer output tokens' — potential prompt-injection text embedded in the package UI.
Runtime dependency installation to ~/.9router/runtime info hooks/sqliteRuntime.js
postinstall runs npm install [email protected] and [email protected] (and systray2 on macOS/Linux) into ~/.9router/runtime/node_modules — a user-writable directory to avoid Windows EBUSY locks.
MITM request/response logging to disk info app/.next-cli-build/server/chunks/915.js:1
All intercepted API traffic is written as JSON files to ~/.9router/logs/mitm/ — includes full request URLs, headers, and bodies.

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