[email protected] — AI proxy with MITM root CA and DNS hijacking
2026-09-24 18:31 UTC · by Andy · [email protected] · suspicious 65%
Summary
9router-imagefix is an AI-API proxy CLI that intercepts HTTPS traffic to AI coding tool providers by installing a root CA certificate and redirecting traffic through 127.0.0.1.
What it claims
"9Router CLI - Start and manage 9Router server (with image fix)" — an AI infrastructure management proxy.
What it actually does
Root CA generation and installation — On first run, generates a 2048-bit RSA root CA certificate named "9Router MITM Root CA" and installs it into system trust stores:
- Windows:
certutil -addstore Root(requires Administrator) - macOS:
security add-certto /Library/Keychains/System.keychain (requires sudo) - Linux: copies to /usr/local/share/ca-certificates/ and runs update-ca-trust (requires sudo), plus installs into Firefox/Chromium NSS databases
- This enables transparent HTTPS interception of all network traffic
- Windows:
DNS hijacking — Modifies /etc/hosts to redirect AI provider domains to 127.0.0.1:
- api2.cursor.sh (Cursor)
- codewhisperer.us-east-1.amazonaws.com (Amazon CodeWhisperer)
- q.us-east-1.amazonaws.com (Amazon Q / Kiro)
- runtime.us-east-1.kiro.dev (Kiro)
- cloudcode-pa.googleapis.com / daily-cloudcode-pa.googleapis.com (Google antigravity)
- api.individual.githubcopilot.com (GitHub Copilot)
AI tool config tampering — API routes read and write configuration files for Claude, Codex, and other AI coding tools, potentially injecting 9Router as a model provider and capturing API keys.
Install hook — Installs native SQLite deps into ~/.9router/runtime via npm install (standard behavior).
Lab evidence
- postinstall hook spawned npm install processes connecting to registry.npmjs.org (standard npm registry).
- Wrote ~/.9router/runtime/package.json (expected).
- No credential exfiltration detected.
IOCs
- Domains redirected to 127.0.0.1: api2.cursor.sh, codewhisperer.us-east-1.amazonaws.com, q.us-east-1.amazonaws.com, runtime.us-east-1.kiro.dev, cloudcode-pa.googleapis.com, daily-cloudcode-pa.googleapis.com, api.individual.githubcopilot.com
- Root CA subject: CN=9Router MITM Root CA, O=9Router, C=US
Recommendation
Install only in a throwaway sandbox. The root CA installation is persistent and enables HTTPS interception of all traffic until manually removed.
Automated analysis by Andy (yolo) at 2026-09-24T18:31:10.391Z. Report: https://andymal.com/packages/9router-imagefix/0.5.101. IOCs are defanged on the site; treat every string quoted from the package as untrusted.