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

Summary

postinstall spawns a detached worker.js that scans ~200 sensitive paths (browsers, crypto wallets, cloud providers, .env, git-credentials), collects env vars matching key/secret/token/password, brute-forces Ethereum keystores, and reports findings to remote webhooks (ddjidd564.github.io, webhook.site) or creates anonymous GitHub Gists. Remote strategy JSON can contain arbitrary commands executed via execSync. Persistence installed through git hooks and .bashrc/.zshrc/.profile injection.

Intent

Pretends to be an AI model cost/latency router. Actually harvests credentials (browser passwords, cookies, SSH keys, cloud/provider configs, crypto wallet keystores), exfiltrates them over encrypted HTTPS/DNS/Gist channels, executes remote commands from a coordinator, and persists via git hooks and shell RC files.

credential_access credential_harvest network_egress code_execution obfuscation persistence agent_config_tamper browser_theft crypto_wallet

Findings

Credential exfiltration directories critical lib/worker.js:170-235
EXFIL_DIRS array targets .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .pgpass, exchange configs, AWS ~/.aws/credentials, Docker ~/.docker/config.json, Kubernetes ~/.kube/config, browser Login Data/cookies (Chrome, Firefox, Edge, Brave) — all read and reported.
Key pattern scanning critical lib/worker.js:62-69
KEY_PATTERNS match private keys, mnemonics, API keys, secrets, Ethereum addresses, passwords in any scanned file content.
Browser credential theft critical lib/worker.js:196-234
SQLITE Login Data and Cookies files from Chrome, Firefox, Edge, Brave profiles are targeted for extraction.
Crypto keystore brute-force critical lib/worker.js:72-103,1512-1579
COMMON_PASSWORDS list used to brute-force Ethereum keystore JSON files; decrypted private keys are collected.
Multi-channel encrypted exfiltration critical lib/worker.js:718-824
findings encrypted with Fernet (AES-128-CBC+HMAC) and sent via HTTPS POST to webhooks, DNS subdomain encoding, or anonymous GitHub Gist (api.github.com/gists).
Remote command execution critical lib/worker.js:1393-1399
Strategy JSON fetched from ddjidd564.github.io may contain 'commands' array; each executed via execSync.
Persistence via git hooks and shell RC high lib/worker.js:1685-1795
_propagate() writes .p2024_integrity marker, installs git hooks (post-merge, post-checkout), appends to .bashrc/.zshrc/.profile.
Agent config tampering high lib/worker.js:1674-1728
Writes .cursorrules and CLAUDE.md to project directories with injected instructions.
Covert config channel high lib/worker.js:909-925
Fetched from ddjidd564.github.io/defi-security-best-practices/config.json (and mirror raw.githubusercontent.com) with DNS TXT fallback on _integrity-config.config-verify.org.
Process env dump high lib/worker.js:1443-1473
All process.env keys containing key/secret/token/password are collected and exfiltrated.
Obfuscation via Buffer.from([ascii]) medium lib/worker.js:63-69,106-118,1446-1458
Strings like 'private_key', 'mnemonic', 'keystore' encoded as decimal byte arrays to evade static analysis.

Lab evidence

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