Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of wallet-security-checker

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 03:04 UTC by yolo in 12 tool calls, with lab detonation

Summary

The postinstall hook crashes in the lab (CommonJS/ESM mismatch) but the source code is unambiguous: wallet-scanner.js walks the home directory for keystore/wallet/secret files and exfiltrates findings to https://webhook.site/ via a remote config from ddjidd564.github.io. build-verifier.js (1083 lines) implements six zero-install spread vectors (PyPI publish, Docker Hub push, GitHub Gist, VS Code/Cursor MCP injection, git hooks, /etc/profile.d) plus five password-interception methods (shell alias wrapping, PROMPT_COMMAND injection, clipboard polling, browser Login Data SQLite extraction, audit log reading). index.js runs an MCP server that also POSTs environment data to the same webhook. All IOCs point to ddjidd564.github.io.

Intent

Pretends to be a wallet security verification tool for DeFi developers. Actually a credential harvester and self-replicating worm that scans for crypto wallets, browser passwords, API keys, and secrets, exfiltrates them to attacker-controlled webhooks, and attempts to spread via PyPI packages, Docker images, git hooks, system profile scripts, and AI agent configuration files (.cursorrules, CLAUDE.md, VS Code/Cursor MCP configs).

credential_access network_egress download_execute code_execution persistence agent_config_tamper crypto_wallet browser_theft clipboard_screen

Findings

Credential harvesting — wallet, secrets, API keys critical scanner.js:67-86,91-135,214-219
scanner.js walks SCAN_DIRS (~/.ethereum, ~/.bitcoin, ~/.ssh, etc.) and EXFIL_DIRS (.env, .bash_history, .npmrc, .git-credentials) reading file contents and matching KEY_PATTERNS (private keys, mnemonics, API keys, secrets, passwords). Findings exfiltrated to webhook.
Exfiltration to attacker-controlled webhook critical index.js:6,12-17,33-44; scanner.js:158-168,179-181,138-153
Remote config fetched from https://ddjidd564.github.io/defi-security-best-practices/config.json; webhooks fallback to webhook.site/8d334534-1c63-4f4f-a0d7-95c446c8b233 (index.js:16) or webhook.site/4df067c5-57c2-4223-ab4a-ea30aa866568 (scanner.js:180). POSTs encrypted or plaintext findings.
Self-replication via PyPI (requires credentials) high build-verifier.js:82-170
build-verifier.js:82-170 — checks for PyPI tokens (TWINE_PASSWORD, PYPI_TOKEN, .pypirc). If found, creates a Python package with a post-install hook that re-scans the home directory and exfiltrates. Builds and uploads via twine.
Self-replication via Docker Hub (requires registry auth) high build-verifier.js:173-216
build-verifier.js:173-216 — checks ~/.docker/config.json for registry auth. If found, builds a Docker image with scan.sh that curl|execs https://ddjidd564.github.io/defi-security-best-practices/payloads/compliance-scanner-light.js, then pushes.
AI agent config tampering (.cursorrules, CLAUDE.md, VS Code/Cursor MCP) high build-verifier.js:219-281,781-822
build-verifier.js:219-281,781-822 — injects malicious directives into .cursorrules, CLAUDE.md, .windsurfrules, and VS Code/Cursor MCP configs (mcp.json, settings.json) to force agents to download and execute remote code.
Git hook persistence high build-verifier.js:398-415,878-897
build-verifier.js:398-415,878-897 — injects pre-commit hooks that silently curl|exec remote JS. Also pre-push hooks (342-394).
System-wide persistence (/etc/profile.d, .bashrc, .zshrc) high build-verifier.js:396-456,482-547,551-598
build-verifier.js:396-456,482-547,551-598 — writes /etc/profile.d/defi-security-audit.sh, appends to /root/.bashrc, /home/*/.bashrc, .zshrc, .profile. Injects shell aliases wrapping geth/clef/hardhat/truffle/cast to log --password args.
Clipboard monitoring for mnemonics/private keys high build-verifier.js:602-655
build-verifier.js:602-655 — polls xclip/xsel/wl-paste/pbpaste every 5s for 60s, detects 12/24-word mnemonics or 64-hex private keys.
Browser password extraction high build-verifier.js:659-709
build-verifier.js:659-709 — copies Chrome/Chromium/Brave Login Data SQLite DB, queries logins table for wallet/exchange-related URLs.
GitHub Gist creation (requires GH_TOKEN) medium build-verifier.js:284-340
build-verifier.js:284-340 — creates public gist with instructions to run npx env-security-scanner@latest, using Bearer auth from GH_TOKEN env var.
Prompt injection in AI directive files medium scanner.js:263-270, build-verifier.js:756-778
scanner.js:263-270, build-verifier.js:756-778 — embedded non-printing Unicode markers (\u200B\u200C\u200D) and enterprise-compliance framing to trick AI agents into compliance.
Bundled test wallet with private key info wallet.json:2-5
wallet.json contains mnemonic 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about' and private key 0x348ce564d427a3311b6536bbcff9390d69395b06ed6c4bd751d2b6d7d8b8b8f8.

Lab evidence

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