Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of polyrouter

[email protected]

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

Summary

The postinstall hook installs runtime dependencies from the npm registry (sql.js, better-sqlite3, systray2) — clean. The bundled Next.js dashboard contains API routes that write to AI agent config files (~/.claude/settings.json, ~/.codex/auth.json, ~/.hermes/.env, ~/.config/jcode/provider-polyrouter.env) and can install a MITM root CA into the system trust store (launchctl setenv NODE_EXTRA_CA_CERTS, hosts file manipulation). The canary credential /home/andy/.gitconfig was read during npm install (npm side-effect, not package code). No evidence of credential exfiltration, ransomware, or other malicious behavior.

Intent

A proprietary AI gateway dashboard with MITM proxy and AI tool configuration capabilities. The install hook is clean (only npm registry). The bundled Next.js dashboard writes to AI agent config files and can install a root CA into the system trust store — these are documented features, not hidden malware, but they represent real agent-supply-chain capabilities.

agent_config_tamper network_egress code_execution credential_access download_execute persistence

Findings

Canary credential read during npm install low lab report
/home/andy/.gitconfig was read during the postinstall hook. This is a side-effect of npm resolving git URLs, not direct package code.
AI agent config file writing medium app/.next-cli-build/server/chunks/2878.js
Dashboard API routes write API keys to AI tool config files: ~/.claude/settings.json, ~/.codex/auth.json, ~/.hermes/.env, ~/.config/jcode/provider-polyrouter.env, etc.
MITM root CA installation to system trust store medium app/.next-cli-build/server/chunks/3127.js
Dashboard can install a generated root CA into the system trust store (launchctl setenv NODE_EXTRA_CA_CERTS on macOS, reg delete/set on Windows, hosts file manipulation). Requires sudo.
Proprietary license (UNLICENSED) info package.json:49
Package is UNLICENSED — all rights reserved. Unauthorized copying prohibited.

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/.polyrouter/runtime/package.json