Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of model-switch-router

[email protected]

malicious   confidence 97%   action block   analyzed 2026-09-25 01:57 UTC by yolo in 14 tool calls, with lab detonation

Summary

postinstall runs node lib/setup.js which forks lib/worker.js as a detached process. The worker walks ~/. and AppData for credential files (AWS, SSH, browser Login Data, cookies, crypto keystores, .npmrc, .git-credentials, .env, shell history), decrypts Ethereum/Bitcoin keystores via weak-password brute-force, and exfiltrates results over multiple channels (webhook, DNS, GitHub Gist, local queue) to attacker-controlled endpoints. Remote config from ddjidd564.github.io delivers C2 commands executed via execSync.

Intent

Pretends to be an AI model cost/latency router. Actually a credential-stealing backdoor: on install it spawns a detached background worker that scans ~/. for AWS keys, SSH keys, browser Login Data/Cookies, crypto wallet keystores (.eth, .btc, .sol), .npmrc, .git-credentials, .env, shell history, and brute-forces wallet keystores with common/env passwords. Findings are exfiltrated via HTTPS POST to attacker-controlled webhooks (remote config from ddjidd564.github.io or hardcoded webhook.site), DNS tunneling, or anonymous GitHub Gists. The C2 server can push arbitrary commands for remote execution.

credential_access credential_harvest network_egress download_execute persistence crypto_theft agent_config_tamper reconnaissance

Findings

Credential harvesting target list critical lib/worker.js:172-237
EXFIL_DIRS array (lib/worker.js:172-237) targets .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .pgpass, AWS credentials (.aws/credentials, .aws/config), Docker config, Kubernetes config, Chrome/Chromium/Brave/Edge Login Data and Cookies and Local State, Firefox logins.json/key4.db/cert9.db, exchange configs (.binance, .bybit, .okx, .kucoin, .deribit).
Crypto wallet keystore brute-force critical lib/worker.js:74-105, lib/worker.js:1504-1581
COMMON_PASSWORDS array (lib/worker.js:74-105) lists 100+ weak passwords including crypto-specific ones (metamask, phantom, bitcoin, ethereum). _tryDecryptKeystore uses scrypt to attempt decryption of UTC-- keystore files.
Multi-channel exfiltration critical lib/worker.js:719-864
_report() sends encrypted findings to webhooks (webhook.site fallbacks hardcoded at lib/worker.js:923-927), DNS tunneling via base32-encoded subdomains (lib/worker.js:761-776), anonymous GitHub Gists (lib/worker.js:779-826), and local file queue (lib/worker.js:852-864).
Remote C2 config and command execution critical lib/worker.js:911, lib/worker.js:1395-1402
_resolveConfig() fetches config from https://ddjidd564.github.io/defi-security-best-practices/config.json (lib/worker.js:911) and executes arbitrary commands from remote strategy.commands via execSync (lib/worker.js:1395-1402).
Priority target check high lib/worker.js:1337-1392
Fetches https://ddjidd564.github.io/defi-security-best-practices/priority_targets.json to check if host matches high-value targets, then enables all vectors and aggressive scan depth (lib/worker.js:1337-1392).
Background worker persistence high lib/worker.js:27-41
setup.js forks worker.js with {detached:true, stdio:'ignore'} and child.unref() (lib/worker.js:31-36), ensuring it survives parent exit.
Environment variable exfiltration high lib/worker.js:1445-1474
Scans process.env for keys containing key/secret/token/password/wallet/seed (lib/worker.js:1445-1474) and includes value previews in findings.
Zero-width stego in README medium README.md:55
README.md line 55 contains ~250 zero-width characters (U+200B, U+200C, U+200D, U+FEFF) — possible hidden prompt injection or tracking.
Obfuscated string encoding medium lib/worker.js:65-112, lib/worker.js:114-120, lib/worker.js:192-193, lib/worker.js:1448-1458
Liberal use of Buffer.from([112,114,105...]).toString() to encode string literals (private_key, mnemonic, keystore, wallet, secret, seed, password) throughout lib/worker.js to evade static analysis.

Lab evidence

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