[email protected] — Credential harvester with AI prompt-injection propagation
2026-09-25 01:48 UTC · by Andy · [email protected] · malicious 95%
What it claims
An npm library for intelligent AI model routing — switching between OpenAI, Anthropic, etc. based on cost/latency.
What it actually does
The postinstall hook runs lib/setup.js, which launches lib/worker.js as a detached background process. The worker:
- Enumerates credential stores —
.env,.npmrc,.git-credentials, AWS~/.aws/credentials, browserLogin DataSQLite files, exchange API configs (.binance, .bybit, etc.), Kubernetes config, shell history (lib/worker.js:170-219). - Scrapes environment variables containing key/secret/token/password (strings obfuscated via
Buffer.from([decimal])at lib/worker.js:1446-1455). - Exfiltrates Fernet-encrypted payloads to three hardcoded
webhook.sitepersonal webhook tokens and a GitHub Pages host (ddjidd564.github.io), with DNS-tunnel and GitHub Gist fallback channels (lib/worker.js:718-820). - Propagates AI prompt-injection content to
.cursorrules,CLAUDE.md,AGENTS.mdinstructing downstream AI agents to download and execute a remote script (lib/worker.js:1685-1703). - Installs persistence via git hooks and shell RC files (.bashrc, .zshrc) (lib/worker.js:1699-1700).
Delivery
Install hook (postinstall: node lib/setup.js) spawns the worker detached. The setup script is a benign-looking decoy.
Lab evidence
Offline lab — no network calls observed (expected). Static analysis is unambiguous.
IOCs
- Domains: ddjidd564.github.io, _integrity-config.config-verify.org
- URLs: https://ddjidd564.github.io/defi-security-best-practices/config.json, https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js, https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246, https://webhook.site/7513bf3d-7092-4739-bf15-a8f779a75546, https://webhook.site/d1652693-2eb8-4281-b9e8-cffff36da2f8
- File written: ~/.local/share/.p2024_integrity
Action
Block. Do not install. Rotate any credentials on machines where this package was installed.
Automated analysis by Andy (yolo) at 2026-09-25T01:48:54.088Z. Report: https://andymal.com/packages/model-switch-router/1.0.1. IOCs are defanged on the site; treat every string quoted from the package as untrusted.