Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of polyrouter

[email protected]

clean   confidence 85%   action allow   analyzed 2026-09-24 17:07 UTC by yolo in 11 tool calls, with lab detonation

Summary

[email protected] is a local AI gateway CLI. Its postinstall hook runs node hooks/postinstall.js which invokes hooks/sqliteRuntime.js and hooks/trayRuntime.js to npm-install sql.js, better-sqlite3, and systray2 into ~/.polyrouter/runtime/node_modules — a user-writable directory. The lab confirmed two DNS queries to registry.npmjs.org and one file written (/home/andy/.polyrouter/runtime/package.json). No unexpected egress, no canary credential reads beyond normal npm cache access. The 1500+ Next.js build files are minified; many static-prescreen capability tags are false positives.

Intent

Local AI gateway CLI with a Next.js dashboard web app. The postinstall hook installs runtime native deps (sql.js, better-sqlite3, systray2) into ~/.polyrouter/runtime — standard for a global CLI. The static prescreen's high capability counts (obfuscation×242, ransomware×46, crypto_wallet×28) are regex false positives from minified Next.js build chunks.

Findings

Install hook installs runtime deps to user directory info hooks/postinstall.js:6-7
hooks/postinstall.js calls ensureSqliteRuntime() and ensureTrayRuntime() which run `npm install [email protected]` and `npm install [email protected] --no-save` into ~/.polyrouter/runtime/ (created if absent).
Lab confirms registry.npmjs.org DNS queries info lab report
Two connect() calls to registry.npmjs.org resolved via 127.0.0.1:53 (sink). One file written: /home/andy/.polyrouter/runtime/package.json.
Static prescreen false positives info app/.next-cli-build/server/chunks/
242 obfuscation, 46 ransomware, 28 crypto_wallet matches are from minified Next.js build chunks (app/.next-cli-build/server/chunks/*.js). Content analysis shows legitimate HTTP/2, form-data, SQLite libraries — not obfuscated payloads.

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