Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of polyrouter

[email protected]

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

Summary

[email protected] installs native deps (better-sqlite3, sql.js, systray2) into a user-writable runtime dir — a standard pattern. However, the postinstall read /home/andy/.gitconfig (a canary credential) with no code-level explanation, and the 100 MB bundled Next.js dashboard carries many opaque capability tags. Install in a throwaway sandbox without credentials.

Intent

Local AI gateway CLI that bundles a ~100 MB Next.js dashboard UI. The postinstall hook installs native SQLite and systray binaries into ~/.polyrouter/runtime (standard pattern). The lab read a canary credential file (/home/andy/.gitconfig) with no in-code explanation.

Findings

Unexplained canary credential read medium hooks/postinstall.js → npm install subprocess
The postinstall hook (or a subprocess it spawned) read /home/andy/.gitconfig, a canary credential file. No code in hooks/postinstall.js, hooks/sqliteRuntime.js, or hooks/trayRuntime.js references .gitconfig.
Large bundled Next.js dashboard (100 MB, 3000 files) low app/.next-cli-build/ (whole directory)
The app/.next-cli-build/ directory is a full Next.js production build bundled into the npm tarball. Static analysis flags many chunks with capability tags (ransomware, browser_theft, macos_stealer, anti_analysis) — likely false positives from Sentry instrumentation and compression, but the sheer size and opaque tagging is unusual for an npm package.
Standard native dependency installation info hooks/sqliteRuntime.js:78-104, hooks/trayRuntime.js:74-96
hooks/sqliteRuntime.js installs [email protected] and [email protected] into ~/.polyrouter/runtime/node_modules. hooks/trayRuntime.js installs [email protected] into the same dir on macOS/Linux. This is a standard pattern for packages shipping native binaries (similar to sharp, esbuild, playwright).

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