Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of 9router-imagefix

[email protected]

suspicious   confidence 60%   action isolate   analyzed 2026-09-24 15:46 UTC by yolo in 14 tool calls, with lab detonation

Summary

The postinstall hook spawns npm install which reads canary credential /home/andy/.gitconfig. The bundled Next.js server generates a self-signed root CA and installs it into system trust stores (Windows Root, macOS System.keychain, Linux trust stores, Firefox NSS) and manipulates /etc/hosts to redirect AI tool API endpoints (GitHub Copilot, Cursor, etc.) to localhost. API tool config files containing API keys are read and modified.

Intent

A local AI API proxy that intercepts HTTPS traffic via a self-signed root CA installed into system trust stores, and hijacks DNS via /etc/hosts manipulation to redirect AI tool API calls to localhost. Reads and modifies AI tool config files containing API keys to configure the proxy.

credential_access network_egress persistence agent_config_tamper

Findings

Canary credential read during postinstall low hooks/postinstall.js:6-7
npm install spawned by hooks/postinstall.js read /home/andy/.gitconfig (canary file). Likely npm's credential helper accessing gitconfig; attribution to package is indirect.
Self-signed root CA generation and system trust store installation high app/.next-cli-build/server/chunks/915.js:1
app/.next-cli-build/server/chunks/915.js generates a 2048-bit RSA root CA (CN=9Router MITM Root CA) and installs it into Windows Root store (certutil), macOS System.keychain (security), Linux trust stores (update-ca-trust/update-ca-certificates), and Firefox NSS databases (certutil -d sql:). Enables interception of all HTTPS traffic.
/etc/hosts DNS hijacking for AI tool APIs high app/.next-cli-build/server/chunks/915.js:1
app/.next-cli-build/server/chunks/915.js writes 127.0.0.1 entries for 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 — redirecting AI tool traffic to localhost proxy.
AI tool config files containing API keys are read and modified high app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js:1
Multiple route.js files read and write AI tool configuration files: codex config.toml (apiKey, model_provider), cline globalState.json and secrets.json (openAiApiKey, openAiBaseUrl), and others. API keys are stored in plaintext in these configs.
Anti-analysis / sandbox evasion references medium app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json:1
Multiple .nft.json files reference is-docker and is-in-ssh modules, suggesting sandbox detection.

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