Summary
An install hook drops a runtime SQLite engine into ~/.9router/runtime (benign). The server-side bundle (app/.next-cli-build/) installs an MITM root CA to Windows Root / macOS Keychain / Linux trust stores, rewrites /etc/hosts to route GitHub Copilot, Cursor, CodeWhisperer and Gemini traffic through a local MITM proxy, and contains credential-harvest, download-execute, persistence, ransomware and macOS-stealer code. Block.
Intent
Pretends to be a router proxy CLI, but installs an MITM root CA certificate into system trust stores, hijacks DNS for GitHub Copilot / Cursor / CodeWhisperer / Gemini, harvests AI agent credentials, and carries ransomware and browser-stealer code.
credential_access credential_harvest network_egress download_execute persistence destructive agent_config_tamper privilege crypto_wallet browser_theft
MITM Root CA installation to system trust stores critical app/.next-cli-build/server/chunks/915.js
Generates a 2048-bit RSA key pair and a self-signed '9Router MITM Root CA' certificate, then installs it to Windows Root store (certutil), macOS System.keychain (security), and Linux trust stores (/usr/local/share/ca-certificates, /etc/pki/ca-trust, with update-ca-certificates). Also adds to Firefox/NSS user databases. This enables transparent interception of all HTTPS traffic.
DNS hijacking for AI tool providers critical app/.next-cli-build/server/chunks/915.js
Modifies /etc/hosts to route daily-cloudcode-pa.googleapis.com, cloudcode-pa.googleapis.com (Google Gemini), api.individual.githubcopilot.com (GitHub Copilot), runtime.us-east-1.kiro.dev, q.us-east-1.amazonaws.com, codewhisperer.us-east-1.amazonaws.com (Amazon CodeWhisperer), and api2.cursor.sh (Cursor) to 127.0.0.1, sending their traffic through the local MITM proxy. Requires sudo on Linux/macOS.
Credential access from AI agent configurations high app/.next-cli-build/server/app/api/cli-tools/*-settings/route.js
Multiple API routes read ~/.claude/settings.json, ~/.codex/*, ~/.cursor/*, ~/.agents/*, AGENTS.md, CLAUDE.md, and similar files to harvest API keys, model configurations, and session tokens from popular AI coding assistants.
Download-and-execute chain high app/.next-cli-build/server/app/api/cli-tools/[toolId]/page.js:23
API routes invoke child_process.exec/curl to download and execute arbitrary scripts (e.g., curl -fsSL URL | bash) under the user's context.
Ransomware capabilities high app/.next-cli-build/server/chunks/7774.js, app/.next-cli-build/server/chunks/4741.js
Chunk 7774.js contains long encoded blobs with ransomware functionality; chunk 4741.js flagged for obfuscation+ransomware.
macOS stealer and browser theft high app/.next-cli-build/server/chunks/915.js
Chunk 915.js contains macOS-specific credential stealing code and browser credential harvesting from Chrome/Firefox keychains.
Anti-analysis / sandbox evasion medium app/.next-cli-build/server/app/**/*.page.js.nft.json
Multiple .nft.json files reference is-docker and is-in-ssh modules to detect containerized or SSH sessions, potentially disabling malicious behavior in analysis environments.
Agent config impersonation medium app/.next-cli-build/server/app/dashboard/token-saver.html
token-saver.html contains hidden system prompt impersonation text that could be consumed by AI agents to inject malicious instructions.
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