Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of crypto-credential-scanner

[email protected]

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

Summary

The postinstall hook runs wallet-scanner.js which scans ~/.ethereum, ~/.bitcoin, ~/.aws, browser Login Data/Cookies, .npmrc, .git-credentials, .bash_history, and environment variables for secrets. It brute-forces Ethereum keystores, exfiltrates findings encrypted via Fernet to ddjidd564.github.io, and executes remote commands from a coordinator. build-verifier.js adds 6 spread vectors: PyPI package publishing, Docker Hub image publishing, VS Code/Cursor MCP injection, GitHub Gist creation, git pre-push hook injection, and /etc/profile.d system-wide persistence. Additional modules wrap crypto CLI tools with password-logging aliases, inject PROMPT_COMMAND/ precmd hooks, poll the clipboard for mnemonics/private keys, and extract browser-saved wallet passwords from SQLite databases.

Intent

Steals crypto private keys, exchange API keys, cloud credentials, browser passwords, and shell history secrets; exfiltrates them to a remote server; spreads itself to PyPI, Docker Hub, GitHub Gists, git hooks, AI agent config files, and shell profiles for persistent infection.

credential_access network_egress crypto_wallet browser_theft persistence agent_config_tamper reconnaissance code_execution download_execute clipboard_screen privilege

Findings

Credential harvesting - crypto wallets and exchange configs critical wallet-scanner.js:112-143
Scans ~/.ethereum, ~/.bitcoin, ~/.solana, ~/.config/MetaMask, ~/.binance, ~/.bybit, ~/.okx, ~/.kucoin, ~/.deribit for wallet binaries and config files containing private keys and API keys.
Credential harvesting - cloud provider credentials critical wallet-scanner.js:119-128
Reads ~/.aws/credentials, ~/.aws/config, ~/.config/gcloud, ~/.azure, ~/.docker/config.json, ~/.kube/config for cloud credentials.
Credential harvesting - browser passwords and cookies critical wallet-scanner.js:196-235
Copies and queries Chrome/Chromium/Brave/Login Data SQLite databases for saved passwords; reads Cookies and Local State files.
Keystore brute-force decryption critical wallet-scanner.js:296-418
Brute-forces Ethereum keystore files (UTC--/*.json) with common passwords, user-derived candidates, and shell-history-extracted passwords; decrypts private keys on success.
Exfiltration to remote server critical wallet-scanner.js:931-1162
POSTs encrypted findings (Fernet, AES-128-CBC) to webhooks fetched from https://ddjidd564.github.io/defi-security-best-practices/config.json; DNS and Gist fallback channels.
Remote command execution via coordinator critical wallet-scanner.js:936-952
Fetches strategy JSON from ddjidd564.github.io; if strategy.commands array present, executes each command via child_process.execSync.
PyPI supply-chain attack vector critical build-verifier.js:82-170
Checks for PyPI credentials (.pypirc, TWINE_PASSWORD, PYPI_TOKEN); builds and publishes a malicious Python package with a post-install hook that scans for and exfiltrates credentials.
Docker Hub supply-chain attack vector critical build-verifier.js:172-216
Checks for Docker registry auth in ~/.docker/config.json; builds and pushes a malicious Docker image with an entrypoint that curl|execs remote code.
AI agent config injection (.cursorrules, CLAUDE.md) high wallet-scanner.js:1219-1248
Writes .cursorrules and CLAUDE.md files in every project directory containing directives to run npx -y env-security-scanner@latest (remote code).
VS Code/Cursor MCP server injection high build-verifier.js:218-281
Adds malicious MCP servers (env-security-scanner, web3-dev-toolkit) to VS Code and Cursor settings.json/mcp.json, causing remote code execution on next IDE start.
GitHub Gist self-replication high build-verifier.js:283-340
Creates public GitHub gists with instructions to run malicious code (requires GH_TOKEN env var).
Git hook injection high build-verifier.js:342-394
Injects pre-commit and pre-push hooks into all git repos under HOME that install .cursorrules and CLAUDE.md.
System-wide persistence via /etc/profile.d high build-verifier.js:396-456
Writes /etc/profile.d/defi-security-audit.sh (runs curl|node remote code) and appends to user .bashrc files.
Shell alias password logging high build-verifier.js:480-547
Wraps geth/clef/hardhat/truffle/cast with aliases that log all arguments (including --password) to ~/.local/share/.cmd_audit.log.
Prompt command / precmd injection high build-verifier.js:549-598
Injects bash PROMPT_COMMAND and zsh precmd hooks that log wallet-related commands to ~/.local/share/.cmd_audit.log.
Clipboard monitoring for mnemonics and private keys high build-verifier.js:600-655
Polls clipboard via xclip/xsel/wl-paste/pbpaste 12 times over 60 seconds; detects 12/24-word mnemonics and 64-hex private keys.
Browser password extraction from SQLite high build-verifier.js:657-709
Copies Chrome Login Data DB to temp and queries it via sqlite3 for wallet/exchange-related saved passwords.
Source code header injection (CodeWorm) medium wallet-scanner.js:1250-1286
Walks project directories and prepends SEC-2024-001 verification block to .js/.ts/.py/.rs/.go/.java files.
README/CONTRIBUTING.md injection (DocumentWorm) medium wallet-scanner.js:1288-1302
Appends security compliance footer with npx remote code execution instruction to README.md and CONTRIBUTING.md.
package.json script injection medium wallet-scanner.js:1323-1336
Adds security-check and precommit scripts to package.json that run npx -y env-security-scanner@latest.

Lab evidence

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