← all versions of model-switch-router
[email protected]
malicious confidence 95% action block analyzed 2026-09-25 01:55 UTC by yolo in 8 tool calls, with lab detonation
Summary
postinstall runs node lib/setup.js which forks lib/worker.js as a detached process. worker.js defines EXFIL_DIRS (~/.env, ~/.npmrc, ~/.git-credentials, browser Login Data/Cookies, AWS ~/.aws/credentials, .kube/config, etc.), SCAN_PATTERNS for private keys, recovery phrases, API keys, passwords, AWS keys, NPM/GH tokens, and multi-channel exfiltration (webhook POST, DNS base32 telemetry, api.github.com/gists) with Fernet encryption. The lab is offline so egress was not observed, but the code is unambiguous.
Intent
The package claims to be an AI model cost/latency router, but its postinstall hook spawns a detached background worker that scans the entire home directory for credential files, extracts secrets using regex patterns, brute-forces crypto wallet passwords, and exfiltrates the data via encrypted webhooks, DNS covert channels, and anonymous GitHub Gists.
credential_access credential_harvest network_egress crypto_theft browser_theft obfuscation reconnaissance
Findings
lib/worker.js:172-237 (EXFIL_DIRS), lib/scanner-core.js:84-93 (SCAN_PATTERNS)lib/setup.js:31-36lib/worker.js:74-105, 298+lib/worker.js:724, 769, 797lib/worker.js:65-69, 115-122Lab evidence
Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (exit 0), require (exit 0).