Summary
postinstall runs wallet-scanner.js and build-verifier.js which scan ~/.ethereum, ~/.aws, browser Login Data/Cookies files, and exfiltrate via Fernet-encrypted webhook POST to ddjidd564.github.io (fallback: webhook.site). build-verifier.js also publishes self-replicating PyPI packages and Docker images with post-install credential-stealing hooks, and injects MCP servers into VS Code/Cursor settings.json.
Intent
Disguised as a BIP39 mnemonic breach checker, this package installs a cryptocurrency wallet credential harvester that scans the home directory for private keys, API keys, browser cookies/login databases, cloud credentials, and exfiltrates them via encrypted webhooks, DNS telemetry, and GitHub Gists. It also attempts to self-replicate through PyPI packages, Docker Hub images, and AI editor MCP configs.
credential_access network_egress download_execute obfuscation persistence agent_config_tamper reconnaissance crypto_wallet
Credential harvester scanning wallet & cloud stores critical wallet-scanner.js:62-68,112-168
wallet-scanner.js:112-168 defines SCAN_DIRS walking ~/.ethereum, ~/.bitcoin, ~/.solana, ~/.aws, ~/.docker, ~/.kube, browser profiles (.config/google-chrome/Default/Login Data, Cookies, Local State), .bash_history, .npmrc, .git-credentials. wallet-scanner.js:62-68 KEY_PATTERNS match 0x-private-keys, BIP39 mnemonics, API keys, secrets, ETH addresses, passwords.
Encrypted exfiltration via webhook, DNS, Gist critical wallet-scanner.js:1-13
wallet-scanner.js:17-58 Fernet encryption (AES-128-CBC + HMAC-SHA256). Exfiltration channels: Channel 1 webhook POST (parallel), Channel 2 DNS telemetry (base32-encoded subdomains), Channel 3 anonymous GitHub Gist.
Keystore weak-password brute-force high wallet-scanner.js:72-103
wallet-scanner.js:72-103 COMMON_PASSWORDS array (100+ crypto-themed passwords) used to brute-force scrypt-encrypted Ethereum keystore JSON files.
PyPI self-replication with credential-stealing post-install hook critical build-verifier.js:82-169
build-verifier.js:82-169 _publishPythonVerifier() creates a Python wheel with a setuptools PostInstallCommand that walks the home directory for sensitive files and POSTs findings to ddjidd564.github.io. Also writes .cursorrules for AI agent config tampering.
Docker Hub self-replication with curl|bash payload critical build-verifier.js:173-215
build-verifier.js:173-215 _publishContainerVerifier() builds a Docker image pulling a script from ddjidd564.github.io that runs curl|bash on container start.
AI editor MCP config injection (VS Code, Cursor) high build-verifier.js:219-281
build-verifier.js:219-281 _ensureEditorConfig() injects MCP servers env-security-scanner and web3-dev-toolkit (npx -y malicious packages) into VS Code settings.json and Cursor mcp.json.
Persistence via /etc/profile.d and .bashrc high build-verifier.js:396-440
build-verifier.js:396-440 writes /etc/profile.d/defi-security-audit.sh (0o755) and appends to .bashrc for system-wide shell persistence.
GitHub Gist self-replication with stolen GH_TOKEN high build-verifier.js:284
build-verifier.js:284-... uses process.env.GH_TOKEN to create public gists pointing to npx -y env-security-scanner@latest.
MCP server exfiltrates tool calls to remote webhook high index.js:7-18,34-43
index.js:10-18,34-43 fetches a remote webhook from ddjidd564.github.io (fallback webhook.site) and POSTs tool calls, args, and network info (IP, hostname) to it.
System reconnaissance via ifconfig.me medium index.js:80
index.js:80 executes curl -s ifconfig.me to obtain the victim's public IP on each tool call.