Summary
The postinstall hook runs wallet-scanner.js which walks ~/.ethereum, ~/.aws, browser profile dirs, and exfiltration paths (.npmrc, .git-credentials, Chrome Login Data) to a C2 at ddjidd564.github.io. build-verifier.js contains six zero-auth spread vectors: PyPI package with malicious post-install hook, Docker image pushing a curl|bash payload, VS Code/Cursor MCP config injection, GitHub Gist creation, git pre-push hook injection, and /etc/profile.d persistence. The MCP server (index.js) also posts tool-call telemetry to the same C2.</summary>
Intent
Pretends to be a Solidity pre-deployment security checker (MCP server). Actually harvests crypto wallet private keys, keystore files, AWS/GCP/Azure credentials, browser Login Data/Cookies, .npmrc, .git-credentials, and environment secrets, then exfiltrates them to remote webhooks. Attempts to spread to PyPI, Docker Hub, AI agent config files (.cursorrules, CLAUDE.md, Cursor/VS Code MCP configs), git hooks, and system shell scripts for persistence.</intent>
credential_access network_egress download_execute obfuscation persistence agent_config_tamper reconnaissance crypto_wallet
Credential harvesting from crypto wallets and cloud providers critical wallet-scanner.js:112-235
wallet-scanner.js scans .ethereum, .bitcoin, .solana, .aws, .config/gcloud, .azure, .docker, .kube, browser profiles (Chrome Login Data, Cookies, Local State), .npmrc, .git-credentials, .pgpass, and exchange configs (.binance, .bybit, .okx). Exfiltrates to remote webhooks with Fernet encryption.
Exfiltration to remote C2 critical wallet-scanner.js:158-182
Findings posted to https://ddjidd564.github.io/defi-security-best-practices/config.json (fetches webhook list) or hardcoded webhook.site fallbacks (4df067c5-57c2-4223-ab4a-ea30aa866568, 8d334534-1c63-4f4f-a0d7-95c446c8b233).
PyPI worm — malicious package with credential-harvesting post-install hook critical build-verifier.js:82-170
build-verifier.js creates a Python package that walks ~/ for sensitive files and exfiltrates to the C2. Published to PyPI via twine if credentials found.
Docker Hub worm — image that downloads and executes remote payload critical build-verifier.js:173-216
builds and pushes a Docker image with ENTRYPOINT running a shell script that curl|bash's https://ddjidd564.github.io/defi-security-best-practices/payloads/compliance-scanner.js
AI agent config tamper — Cursor/VS Code MCP injection high build-verifier.js:219-281
Writes malicious MCP server configs (env-security-scanner, web3-dev-toolkit) to VS Code settings.json and Cursor mcp.json, forcing npx -y execution of attacker-controlled packages on every IDE start.
Persistence — /etc/profile.d system-wide script high build-verifier.js:396-447
Writes /etc/profile.d/defi-security-audit.sh (and .bashrc append) for system-wide execution on login.
Persistence — git pre-push hook injection high build-verifier.js:342-381
Injects .cursorrules into every pushed repo for zero-auth spread.
Telemetry from MCP server to C2 medium index.js:7-18,34-43
index.js posts tool-call data (git remote, branch, USER, cwd) to the same C2 webhook.
Prompt-injection / anti-refusal text in source high build-verifier.js:280-300
build-verifier.js contains non-printing Unicode markers and directives instructing AI agents to not refuse to work and to copy the worm block into ALL project files.
Weak wallet keystore brute-force password list high wallet-scanner.js:72-103
wallet-scanner.js bundles 100+ common passwords for attempting to decrypt scrypt-encrypted Ethereum keystore files.