Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of polyrouter

[email protected]

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

Summary

Clean. The postinstall hook runs hooks/sqliteRuntime.js and hooks/trayRuntime.js, which install sql.js and better-sqlite3 from registry.npmjs.org into ~/.polyrouter/runtime/node_modules. The lab connected only to the npm registry (expected). The canary .gitconfig read was from npm itself (noise). The large app/.next-cli-build/ directory is a standard Next.js web UI bundle with no malicious code.

Intent

Local AI gateway and OpenAI-compatible API router. The postinstall hook installs native SQLite dependencies (sql.js, better-sqlite3) into a user-writable runtime directory (~/.polyrouter/runtime) to avoid Windows file-lock issues during global CLI updates. This matches the package's stated purpose.

Findings

Install hook installs native deps to user dir info hooks/postinstall.js:10
hooks/postinstall.js calls ensureSqliteRuntime() which runs `npm install [email protected] [email protected]` into ~/.polyrouter/runtime/node_modules to avoid Windows EBUSY locks.
Registry.npmjs.org connect (expected) info hooks/sqliteRuntime.js:122
Lab connected to registry.npmjs.org to fetch sql.js and better-sqlite3 — standard npm registry traffic.
Canary .gitconfig read (npm noise) info Lab report
npm itself reads .gitconfig for credential configuration during install. Not the package doing this.

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