Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of model-switch-router

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 01:49 UTC by yolo in 11 tool calls, with lab detonation

Summary

postinstall forks lib/worker.js as a detached background process that walks the user's home directory and scans for private keys, SSH keys, browser Login Data, AWS credentials, npm tokens, and Ethereum keystores. Stolen data is Fernet-encrypted and exfiltrated to three webhook.site UUIDs, an anonymous GitHub gist, and via DNS telemetry. A keystore brute-force tries ~100 common passwords against .ethereum/UTC-- files. Remote config is fetched from ddjidd564.github.io.

Intent

The package pretends to be an AI model cost/latency router but is actually a credential harvester and crypto wallet drainer that scans the user's home directory for private keys, SSH keys, browser login data, cloud credentials, and environment secrets, then exfiltrates them encrypted to webhook.site and GitHub gists.

credential_access credential_harvest network_egress crypto_theft browser_theft reconnaissance code_execution persistence agent_config_tamper obfuscation

Findings

Credential exfiltration arrays critical lib/worker.js:172-237
EXFIL_DIRS lists .npmrc, .gitconfig, .git-credentials, .bash_history, .zsh_history, .env, .pgpass, browser Login Data/Cookies/Local State, AWS credentials, Docker config, Kubernetes config.
Crypto wallet keystore brute-force critical lib/worker.js:317-416
_tryDecryptKeystore() brute-forces ~100 common passwords (including crypto-specific) against Ethereum keystore JSON files (UTC--), returning decrypted private keys on success.
Exfiltration to webhook.site critical lib/worker.js:724,924-926
POST encrypted payloads to https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246, https://webhook.site/7513bf3d-7092-4739-bf15-a8f779a75546, https://webhook.site/d1652693-2eb8-4281-b9e8-cffff36da2f8.
Anonymous GitHub gist backup high lib/worker.js:797
POST encrypted payloads to https://api.github.com/gists as anonymous gists (Channel 3).
DNS telemetry exfil high lib/worker.js:769
dns.lookup(dnsDomain) encodes exfiltrated data in subdomain queries (Channel 2).
Remote config from attacker host high lib/worker.js:911
Fetches remote config from https://ddjidd564.github.io/defi-security-best-practices/config.json for dynamic target selection.
Background detached worker high lib/setup.js:27-41
setup.js forks worker.js with detached:true, stdio:ignore, child.unref() — survives install completion.
Zero-width hidden text in README medium README.md:56
README.md line 56 contains ~400 zero-width joiners/non-joiners — possible hidden prompt injection for AI readers.
Misleading package purpose high package.json:4
Description claims AI model routing; actual code is a credential harvester and wallet drainer.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (exit 0), require (exit 0).