Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of polyrouter

[email protected]

suspicious   confidence 50%   action isolate   analyzed 2026-09-24 17:30 UTC by yolo in 11 tool calls, with lab detonation

Summary

The postinstall hook runs npm install into ~/.polyrouter/runtime for better-sqlite3 and systray2 — consistent with the package's stated purpose. An unexplained read of /home/andy/.gitconfig was logged by the canary during the offline lab run, but no network egress occurred. The large pre-built Next.js frontend (app/.next-cli-build/) contains minified bundles that triggered many false-positive capability hits on the static scanner.

Intent

A local AI gateway CLI that installs its own runtime dependencies (SQLite, system tray) into ~/.polyrouter/runtime on postinstall. The unexplained canary read of ~/.gitconfig during the isolated lab run is unexplained but no egress was observed.

Findings

Unexplained canary credential read low lab report: canary read /home/andy/.gitconfig
The lab logged a read of /home/andy/.gitconfig during the postinstall hook. No corresponding code in hooks/postinstall.js, hooks/sqliteRuntime.js, or hooks/trayRuntime.js references .gitconfig. The read may be from npm itself (for auth) or sandbox noise. No network egress followed.
Runtime dir creation outside package info hooks/sqliteRuntime.js:34
hooks/sqliteRuntime.js writes /home/andy/.polyrouter/runtime/package.json to initialize a user-writable npm project for runtime deps. This is the app's own data directory, not a credential store.
Minified Next.js bundles with many false-positive capability hits info app/.next-cli-build/
The app/.next-cli-build/ directory is a pre-built Next.js server bundle (~55 MB). Static regex hits for credential_access, ransomware, crypto_wallet, etc. on files like chunks/1260.js and node_modules/next/dist/compiled/* are false positives from analyzing bundled node-forge, babel, edge-runtime, and vercel/nft code.

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