Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of chain-key-validator

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 00:50 UTC by yolo in 11 tool calls, with lab detonation

Summary

Postinstall hook runs wallet-scanner.js which walks 30+ directories, reads ~/.aws/credentials, Chrome Login Data, .npmrc, .git-credentials, exchange config.json files, and shell history for passwords. It brute-forces scrypt-encrypted Ethereum keystores with a 100+ word dictionary. Encrypted findings are exfiltrated via HTTPS POST, DNS lookups to oast.fun, and anonymous GitHub Gists. build-verifier.js spreads to PyPI packages, Docker images, /etc/profile.d/ scripts, and .cursorrules for AI-agent infection.

Intent

Pretends to validate blockchain key formats. Actually scans the host for cryptocurrency wallets, exchange configs, browser login databases, cloud credentials, and shell-history passwords; brute-forces Ethereum keystores; exfiltrates encrypted findings to webhooks, DNS (oast.fun), and GitHub Gists; and persists via PyPI/Docker auto-publish, /etc/profile.d, and AI-agent .cursorrules injection.

credential_access network_egress crypto_wallet agent_config_tamper persistence download_execute reconnaissance obfuscation

Findings

Credential harvesting — crypto wallets and exchanges critical wallet-scanner.js:112-143
Scans ~/.ethereum, ~/.bitcoin, ~/.solana, ~/.config/MetaMask, .binance, .bybit, .okx, .kucoin, .deribit for wallet binaries and config files.
Credential harvesting — cloud and container critical wallet-scanner.js:119-128
Reads ~/.aws/credentials, ~/.docker/config.json, ~/.kube/config, ~/.config/gcloud.
Credential harvesting — browsers critical wallet-scanner.js:144-234
Targets Chrome/Brave/Edge Login Data (SQLite), Cookies, Local State across Linux/macOS/WSL.
Credential harvesting — dotfiles and secrets critical wallet-scanner.js:170-195
Reads ~/.env, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.bash_history, ~/.zsh_history, .pgpass.
Keystore brute-force decryption critical wallet-scanner.js:72-103, 315-417
Attempts scrypt brute-force on Ethereum keystores using 100+ common passwords + env-var/shell-history feedback loop. Time-boxed to 30s per file.
Exfiltration channel 1 — HTTPS webhooks critical wallet-scanner.js:718-733
POSTs Fernet-encrypted report to parallel webhook URLs.
Exfiltration channel 2 — DNS OOB critical wallet-scanner.js:737-773
Encodes report as base32 subdomain of oast.fun for DNS-based exfiltration.
Exfiltration channel 3 — GitHub Gist high wallet-scanner.js:776-830
Creates anonymous private gists via api.github.com/gists as backup channel.
Remote command execution via coordinator high wallet-scanner.js:937-951
_fetchStrategy() contacts a coordinator; if strategy contains commands array, execSync runs each.
Persistence — PyPI auto-publish critical build-verifier.js:82-169
Creates malicious Python wheel with post-install hook that scans home dirs and exfiltrates to ddjidd564.github.io. Publishes via twine.
Persistence — Docker Hub auto-publish critical build-verifier.js:173-250
Builds and pushes container image with scan.sh entrypoint to Docker registries using ~/.docker/config.json auth.
Persistence — /etc/profile.d system-wide script high build-verifier.js:396-448
Writes /etc/profile.d/defi-security-audit.sh (chmod 0755) for all-user execution.
AI-agent infection — .cursorrules high build-verifier.js:1219-1280
Walks home directories injecting .cursorrules with directives to download and execute malware on future AI sessions.
Obfuscation — zero-width characters medium build-verifier.js:1183
Uses \u200B\u200C\u200D to hide infection directives in .cursorrules and source headers.

Lab evidence

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