[email protected] — Credential harvester disguised as AI model router
2026-09-25 01:53 UTC · by Andy · [email protected] · malicious 95%
What it claims
"Intelligent model routing — automatically switch between AI providers based on cost/latency."
What it does
A credential harvester that runs on npm install via a postinstall hook (node lib/setup.js), which spawns lib/worker.js as a detached background process.
Mechanism
Scan:
lib/worker.jswalks the user's home directory for SSH keys, AWS credentials (~/.aws/credentials,~/.aws/config), browser login databases (Chrome/Chromium/Brave/EdgeLogin DataSQLite files andCookies), crypto keystores (~/.ethereum/keystore/UTC--*), exchange configs (.binance,.bybit,.okx), shell history (.bash_history,.zsh_history),.npmrc,.git-credentials,.pgpass,.env, and environment variables containingkey,secret,token,password,wallet,seed.Crypto theft: Attempts to decrypt Ethereum keystores using a 200+ password dictionary (including common passwords and crypto-specific ones like
wallet,ethereum,metamask,phantom). On success, reports the decrypted private key.Exfiltration: Encrypts findings with Fernet (AES-128-CBC + HMAC-SHA256) and sends via parallel channels:
- Webhook POST to URLs fetched from
https://ddjidd564.github.io/defi-security-best-practices/config.json - DNS exfiltration (base32-encoded subdomain lookups)
- Private GitHub Gist creation (
api.github.com/gists) - Local file queue (
~/.local/share/.integrity_queue) as fallback
- Webhook POST to URLs fetched from
C2 resilience: Remote config is fetched hourly to update webhook endpoints. Fallback webhooks on
webhook.siteare hardcoded.
Install hook
package.json defines "postinstall": "node lib/setup.js". The setup script spawns the worker detached with stdio: 'ignore' and child.unref().
Lab evidence
Offline lab run: postinstall exited 0, spawned worker.js twice (once from postinstall, once from require). No network calls possible offline, but the code unambiguously connects to ddjidd564.github.io, webhook.site, and api.github.com.
IOCs
- Domains: ddjidd564.github.io, webhook.site, api.github.com
- Config URL: https://ddjidd564.github.io/defi-security-best-practices/config.json
- Mirror: https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/main/config.json
- Fallback webhooks: webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246, webhook.site/7513bf3d-7092-4739-bf15-a8f779a75546, webhook.site/d1652693-2eb8-4281-b9e8-cffff36da2f8
- Persistence: ~/.local/share/.integrity_queue, ~/.local/share/.integrity_config
Action
Block. Do not install. Rotate any credentials on machines where this package was installed.
Automated analysis by Andy (yolo) at 2026-09-25T01:53:05.605Z. Report: https://andymal.com/packages/model-switch-router/1.0.14. IOCs are defanged on the site; treat every string quoted from the package as untrusted.