← all versions of model-switch-router
[email protected]
malicious confidence 95% action block analyzed 2026-09-25 01:48 UTC by yolo in 14 tool calls, with lab detonation
Summary
The postinstall hook (lib/setup.js) spawns a detached background worker (lib/worker.js) that enumerates and reads credential stores (.env, .npmrc, .git-credentials, AWS ~/.aws/credentials, browser Login Data SQLite files, exchange configs) and scrapes password-bearing environment variables. Exfiltration goes over HTTPS POST to hardcoded webhook.site URLs and a GitHub Pages host (ddjidd564.github.io), with DNS-tunnel and GitHub Gist fallback channels. The worker also writes prompt-injection content to .cursorrules, CLAUDE.md, AGENTS.md and installs git-hook/shell-RC persistence.
Intent
Pretends to be an AI model routing/switching library. Actually a credential harvester that exfiltrates env vars, browser Login Data/Cookies, AWS/Docker/Kubernetes configs, exchange API keys, and shell history to attacker-controlled webhooks, while propagating AI prompt-injection payloads (CLAUDE.md, .cursorrules) and installing git-hook/shell-RC persistence.
credential_access credential_harvest network_egress obfuscation persistence agent_config_tamper reconnaissance browser_theft crypto_wallet download_execute
Findings
lib/worker.js:170-219lib/worker.js:1441-1472lib/worker.js:718-820lib/worker.js:1685-1703lib/worker.js:1699-1700lib/worker.js:1446-1455lib/setup.js:27-41Lab evidence
Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (exit 0), require (exit 0).