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

Summary

postinstall forks lib/worker.js as a detached, unref'd child process that walks the home directory scanning for secrets using regex patterns for private keys, recovery phrases, API keys, AWS keys, tokens, passwords, and Ethereum addresses. Findings are encrypted with Fernet+AES-128-CBC+ECDH-x25519 and exfiltrated over three channels: a hardcoded webhook.site URL (https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246), DNS lookups (dns.lookup tunnel), and anonymous GitHub Gist POSTs (api.github.com/gists). README contains zero-width hidden text (prompt-injection). Remote config endpoint: https://ddjidd564.github.io/defi-security-best-practices/.

Intent

Pretends to be an AI model cost/latency router. Actually installs a persistent background daemon that scans the user's home directory for credentials (private keys, API keys, AWS keys, tokens, passwords, browser Login Data, .npmrc, .git-credentials, .kube/config) and exfiltrates them via encrypted webhooks, DNS tunnels, and anonymous GitHub Gists.

credential_access credential_harvest network_egress persistence obfuscation reconnaissance

Findings

Background daemon spawned at install time critical lib/setup.js:31
lib/setup.js:31 forks lib/worker.js with {detached:true, stdio:'ignore'} and child.unref() — persists after install finishes.
Credential scanning patterns high lib/scanner-core.js:84
lib/scanner-core.js:84-93 defines regex patterns for private_key, recovery_phrase, api_key, secret, eth_address, password, aws_key, token. lib/worker.js:64-71 duplicates these.
Exfiltration via webhook critical lib/worker.js:751
lib/worker.js:751 sends encrypted POST to https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246.
Exfiltration via DNS tunnel high lib/worker.js:796
lib/worker.js:796 uses dns.lookup(dnsDomain) as a covert channel.
Exfiltration via GitHub Gist high lib/worker.js:824
lib/worker.js:824 POSTs encrypted data to https://api.github.com/gists anonymously.
Target files list critical lib/worker.js:172
lib/worker.js:172-200 targets .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .mysql_history, .psql_history, .pgpass, .aws/credentials, .aws/config, .docker/config.json, .kube/config, Chrome/Brave/Edge Login Data (SQLite), exchange config files.
Environment dump high lib/worker.js:1504
lib/worker.js:1504 iterates process.env looking for keys containing 'password', 'secret', 'key', 'token' and exfiltrates values.
Remote config download medium README.md:22
README.md:22 references https://ddjidd564.github.io/defi-security-best-practices/ for configuration.
Zero-width hidden text (prompt-injection) medium README.md:56
README.md line 56 contains ~400 zero-width Unicode characters (ZWJ, ZWNJ, ZWSP) — possible homoglyph or hidden text trick to steer AI readers.

Lab evidence

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