Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of eth-wallet-sentinel

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 01:23 UTC by yolo in 13 tool calls, with lab detonation

Summary

postinstall crashes in the lab (ESM/CJS mismatch) but the source is unequivocally malicious: wallet-scanner.js walks ~/ scanning for .ethereum, .bitcoin, .solana, MetaMask, browser profiles (Login Data, Cookies, Local State), exchange configs (.binance, .okx, etc.), AWS/.kube/.docker credentials, .npmrc, .git-credentials, and shell history for passwords; it brute-forces scrypt-encrypted keystores with a 100+ word dictionary; findings are Fernet-encrypted and exfiltrated via three channels (HTTPS webhook POST to ddjidd564.github.io, DNS tunnel to oast.fun, GitHub Gist). build-verifier.js runs six zero-install spread vectors (PyPI auto-publish with post-install hook, Docker image push, VS Code/Cursor MCP injection, GitHub Gist creation, git pre-push hook, /etc/profile.d persistence) and injects .cursorrules/CLAUDE.md into every project directory. index.js (the MCP entry) also POSTs telemetry to the same C2. README.md contains prompt-injection text.

Intent

Pretends to monitor Ethereum wallet security; actually scans the host for crypto keystores, browser login data, cloud/exchange credentials, and shell history passwords, then exfiltrates encrypted findings to a remote C2 (ddjidd564.github.io) via webhook, DNS tunneling, and GitHub Gist. Also self-replicates by publishing PyPI packages, Docker images, injecting git hooks, VS Code/Cursor MCP configs, and /etc/profile.d persistence scripts.

credential_access network_egress crypto_wallet agent_config_tamper reconnaissance code_execution persistence download_execute browser_theft obfuscation

Findings

Host credential scanning critical wallet-scanner.js:112-235
Scans ~/.ethereum, ~/.bitcoin, ~/.solana, ~/.config/google-chrome/*/Default/Login Data, ~/.config/google-chrome/*/Default/Cookies, ~/.aws/credentials, ~/.docker/config.json, ~/.kube/config, exchange configs (.binance, .okx, .bybit, .kucoin, .deribit), .npmrc, .git-credentials, .bash_history, .zsh_history for passwords.
Keystore brute-force critical wallet-scanner.js:296-418
Finds UTC-- keystore files and attempts scrypt brute-force with 100+ common passwords + user-derived candidates. On success, extracts the private key.
Multi-channel exfiltration critical wallet-scanner.js:718-909
Exfiltrates encrypted findings via HTTPS POST to webhooks fetched from ddjidd564.github.io/defi-security-best-practices/config.json, DNS tunnel to oast.fun subdomain, and private GitHub Gist creation.
Remote command execution critical wallet-scanner.js:945-951
Fetches strategy JSON from C2; if strategy.commands array is present, executes each command via child_process.execSync.
PyPI worm vector high build-verifier.js:82-170
Creates a Python wheel with a post-install hook that scans ~ for secrets and exfiltrates to the C2; builds and publishes to PyPI via twine.
Docker image worm vector high build-verifier.js:172-216
Builds a Docker image with an entrypoint that curl|pipes a remote JS payload to node; pushes to Docker Hub.
VS Code/Cursor MCP injection high build-verifier.js:218-281
Writes MCP server configs pointing to npx -y env-security-scanner@latest into VS Code settings.json and Cursor mcp.json.
Git hook persistence high build-verifier.js:603-625
Installs .git/hooks/pre-commit on every git repo under ~ that backgrounds a curl|node remote payload.
System-wide persistence high build-verifier.js:396-456
Writes /etc/profile.d/defi-security-audit.sh and appends to /root/.bashrc and /home/*/.bashrc to re-download remote payload on login.
AI agent config tampering high build-verifier.js:508-550
Writes .cursorrules, CLAUDE.md, .windsurfrules into project dirs and home dirs with instructions to run npx env-security-scanner@latest.
Prompt injection in docs critical README.md:9
README.md contains text designed to hide malicious actions from the AI agent reading it.
Hardcoded fallback webhook high wallet-scanner.js:849-851
If C2 is unreachable, falls back to webhook.site UUID for exfiltration.

Lab evidence

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