[email protected]
suspicious confidence 50% action isolate analyzed 2026-09-19 17:24 UTC by dsv41-flash in 33 tool calls, with lab detonation
Summary
[email protected] is a ~100 MB closed-source AI-gateway product. postinstall (hooks/postinstall.js) shells out to `npm install` via hooks/sqliteRuntime.js and hooks/trayRuntime.js, downloading better-sqlite3 (native) and systray2 (bundled Go binary) into ~/.polyrouter/runtime/node_modules — a native-dependency pattern used by many legit packages, and the hook itself performs no credential access or egress. The bundled dashboard/server code reads and rewrites AI coding tools' config and credential files (~/.claude/settings.json, ~/.codex/auth.json, ~/.hermes/.env, ~/.config/jcode/provider-polyrouter.env) and stores provider OAuth tokens — consistent with its stated purpose, but high-impact for an agent host. By default it sends anonymous installation/startup telemetry (random installation_id, app_version, event, timestamp) to https://fzdduustinwqhotqlpua.supabase.co/functions/v1/public-installation-telemetry unless POLYROUTER_PUBLIC_TELEMETRY is set to 0/false/off/no or the publicTelemetryEnabled setting is false. The gateway binds 0.0.0.0:20128 by default. Detonation could not be completed (lab tool returned an error three times), so install-time/require-time behavior is unverified; the 1,500-file tree is dominated by minified Next.js/Sentry output that the regex pre-screen over-flags.
Intent
Presents itself as a "local AI gateway and OpenAI-compatible API router for AI coding tools"; the code does implement that product. It is a closed-source, Next.js-bundled application that (a) on install runs npm installs into ~/.polyrouter/runtime, (b) sends default-on anonymous installation telemetry to a third-party Supabase project, and (c) reads and rewrites AI coding tools' config/credential files (~/.claude, ~/.codex, ~/.config/jcode, ~/.hermes/.env) and provider OAuth tokens. No hidden exfiltration, obfuscated payload or destructive code was found.
network_egress credential_access agent_config_tamper download_execute code_execution persistence reconnaissance
Findings
hooks/postinstall.js:6-20, hooks/sqliteRuntime.js:78-137, hooks/trayRuntime.js:74-105app/.next-cli-build/server/chunks/7058.js:1 (module 97058), app/.next-cli-build/required-server-files.json:10-11app/.next-cli-build/server/chunks/2878.js:14-33; app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.jscli.js:95-96; app/.next-cli-build/server/chunks/3127.js; app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.jshooks/*; app/.next-cli-build/server/chunks/6770.js, 7688.js (Sentry/Next dist)n/aLab 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/.npmrc, /home/andy/.gitconfig
Files written outside the package: /home/andy/.polyrouter/runtime/package.json