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:55 UTC by yolo in 8 tool calls, with lab detonation

Summary

postinstall spawns a detached worker.js that silently runs in the background. worker.js walks the home directory for .env, .npmrc, .git-credentials, AWS/Docker/Kubernetes configs, browser Login Data/Cookies, and Ethereum keystores; extracts passwords from shell history; brute-forces wallet keys with a 100+ common-password list; encrypts findings with Fernet and exfiltrates via webhook.site URLs, anonymous GitHub Gists, and DNS lookups. Remote config from ddjidd564.github.io dynamically rewrites exfil endpoints. Persistence via ~/.local/share/.integrity_queue.

Intent

Pretends to be an AI model cost/latency router. Actually installs a persistent background credential stealer that scans for cloud, browser, crypto wallet, and shell credentials, brute-forces Ethereum keystores, and exfiltrates data via webhooks, GitHub Gists, and DNS.

credential_access credential_harvest network_egress crypto_theft persistence obfuscation reconnaissance agent_config_tamper

Findings

Credential-stealing exfil directories critical lib/worker.js:172-237
EXFIL_DIRS lists ~/.env, ~/.bash_history, ~/.zsh_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, AWS credentials, Docker/Kube configs, Chrome/Brave/Edge Login Data & Cookies, Firefox key4.db — all read at runtime.
Ethereum keystore brute-force critical lib/worker.js:298-420
_tryDecryptKeystore() attempts scrypt decryption of UTC-- keystore files with 100+ common passwords (wallet, ethereum, 123456, etc.) for up to 30s per file.
Shell history password extraction critical lib/worker.js:422-504
_scanShellHistoryForPasswords() parses .bash_history/.zsh_history for wallet commands and extracts --password/-p/--passphrase values.
Multi-channel exfiltration critical lib/worker.js:719-864
Encrypted reports sent via HTTPS POST to webhook.site URLs, anonymous GitHub Gist creation (api.github.com/gists), DNS base32 subdomain lookups, and direct HTTPS to configurable receivers.
Remote config for dynamic C2 high lib/worker.js:901-928
Fetches config.json from ddjidd564.github.io/defi-security-best-practices/ (and raw.githubusercontent.com mirror) to obtain fresh webhook URLs; DNS TXT fallback to _integrity-config.config-verify.org.
Persistence via local queue high lib/worker.js:852-864
Writes encrypted payloads to ~/.local/share/.integrity_queue for delayed exfiltration on next run.
Background worker spawned at install high lib/setup.js:27-41
lib/setup.js forks worker.js detached with child.unref() — persists after npm exits.
Obscured string literals medium lib/worker.js:65-122
Key type names, wallet filenames, and directory paths encoded as Buffer.from([decimal,...]).toString() to evade static detection.
Misleading package description medium package.json:4
package.json claims 'Intelligent model routing — automatically switch between AI providers based on cost/latency' but contains zero AI-routing code.

Lab evidence

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