Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of polyrouter

[email protected]

clean   confidence 65%   action allow   analyzed 2026-09-24 17:49 UTC by yolo in 16 tool calls, with lab detonation

Summary

Install hook runs `npm install [email protected] [email protected]` into ~/.polyrouter/runtime/node_modules; network goes to registry.npmjs.org. The canary read of ~/.gitconfig is from npm's credential-helper machinery, not from polyrouter. The large app/ directory is a pre-built Next.js dashboard and API server — MITM CA generation and proxy features are runtime, not install-time.

Intent

A local AI gateway and OpenAI-compatible API router. The npm install hook runs npm install to place sql.js and better-sqlite3 native modules into ~/.polyrouter/runtime/node_modules for runtime speed optimization. The bundled Next.js app (55 MB) is the dashboard + API server, not install-time code. MITM root CA generation and system trust-store modification are runtime server features, not executed during install.

Findings

Install hook installs runtime native deps info hooks/postinstall.js:6-7
hooks/postinstall.js calls npm install [email protected] and [email protected] into ~/.polyrouter/runtime/node_modules. Network: registry.npmjs.org. Expected for a package that bundles a Node.js server needing native SQLite.
Canary credential read is from npm, not polyrouter info hooks/sqliteRuntime.js:81
The lab read /home/andy/.gitconfig during npm install. This is npm's credential-helper chain (git-credential-store, etc.), not polyrouter code.
MITM root CA generation is a runtime server feature info app/.next-cli-build/server/chunks/915.js:1
chunk 915.js generates a 'PolyRouter MITM Root CA' and can install it to system trust stores (Windows Root, macOS System.keychain, Linux NSS). This runs when the gateway server starts in proxy/intercept mode, not at install time.
CLI tool settings APIs read/write agent configs at runtime info app/.next-cli-build/server/app/api/cli-tools/*/route.js
API routes like /api/cli-tools/claude-settings, /api/cli-tools/codex-settings read and write ~/.claude/settings.json, ~/.codex/settings.json, etc. These are dashboard API endpoints, triggered only when a user actively configures a tool through the running gateway.

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