Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of defi-threat-scanner

[email protected]

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

Summary

postinstall runs wallet-scanner.js which walks ~/.ethereum, ~/.aws, ~/.docker, ~/.kube, browser profile dirs (Login Data, Cookies, Local State), exchange configs, and dotfiles (.npmrc, .git-credentials, .bash_history) looking for private keys, mnemonics, API tokens, and passwords. Findings are Fernet-encrypted and POSTed to webhooks fetched from ddjidd564.github.io (fallback: webhook.site). build-verifier.js contains 6 zero-install spread vectors: PyPI auto-publish (if .pypirc/twine creds found), Docker Hub auto-publish (if .docker/config.json found), GitHub Gist creation (if GH_TOKEN found), VS Code/Cursor MCP injection, Git pre-push hook injection, and /etc/profile.d persistence. index.js (MCP server) beacons tool calls including env var presence (PRIVATE_KEY, MNEMONIC, WALLET_KEY) to the same webhook. Install hook crashes on this run due to ESM/CommonJS mismatch (package.json has "type":"module" but wallet-scanner.js uses module.exports) — a bug, not a safety mechanism.

Intent

Claims to be a DeFi security threat scanner. Actually scans the local machine for cryptocurrency wallets, SSH keys, cloud credentials, browser login data, exchange configs, and .env files; exfiltrates findings to attacker-controlled webhooks; and attempts to self-replicate via PyPI, Docker Hub, GitHub Gists, AI agent config files (.cursorrules, CLAUDE.md), and system-wide persistence.

credential_access network_egress download_execute obfuscation persistence agent_config_tamper reconnaissance crypto_wallet

Findings

Credential and wallet scanning critical wallet-scanner.js:105-235
Scans ~/.ethereum, ~/.bitcoin, ~/.solana, ~/.aws, ~/.docker, ~/.kube, browser Login Data/Cookies/Local State, exchange configs (.binance, .bybit, .okx, .kucoin, .deribit), .npmrc, .git-credentials, .bash_history, .zsh_history for private keys, mnemonics, API keys, passwords using regex patterns.
Keystore weak password brute-force list high wallet-scanner.js:72-103
Contains 100+ common passwords used to brute-force Ethereum keystore JSON (scrypt) files.
Exfiltration to attacker webhook critical wallet-scanner.js:138-208
Encrypted findings POSTed to https://ddjidd564.github.io/defi-security-best-practices/config.json webhooks, with hardcoded fallback to https://webhook.site/8d334534-1c63-4f4f-a0d7-95c446c8b233.
PyPI self-replication vector critical build-verifier.js:82-170
If PyPI credentials found (.pypirc, TWINE_PASSWORD, PYPI_TOKEN), builds a malicious Python package with post-install hook and publishes to PyPI to spread credential scanning.
Docker Hub self-replication vector critical build-verifier.js:173-216
If Docker registry auth found (.docker/config.json), builds and pushes a Docker image with entrypoint that curl|bash downloads and executes payload from ddjidd564.github.io.
GitHub Gist self-replication high build-verifier.js:284-340
If GH_TOKEN/GITHUB_TOKEN found in env, creates a public GitHub Gist containing the same malicious payload URL for distribution.
AI agent config injection high build-verifier.js:219-281
Injects malicious MCP servers into VS Code settings.json and Cursor mcp.json pointing to npx -y env-security-scanner@latest and web3-dev-toolkit@latest.
Git pre-push hook injection high build-verifier.js:342-394
Walks all .git repos under HOME and injects pre-push hooks that create .cursorrules and CLAUDE.md with compliance references.
System-wide persistence high build-verifier.js:396-447
Writes /etc/profile.d/defi-security-audit.sh that curl|bash downloads and executes payload on every user login.
MCP server telemetry beacon high index.js:34-43
index.js beacons tool_name, parameters, and env var presence (PRIVATE_KEY, MNEMONIC, WALLET_KEY) to attacker webhook on every tool call.
ESM/CommonJS incompatibility bug info package.json:32, wallet-scanner.js:261
postinstall hook crashes (TypeError: require(...)._runVerification is not a function) because package.json has "type":"module" but wallet-scanner.js uses module.exports. This is a bug, not a safety mechanism.

Lab evidence

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