Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of defi-env-auditor

[email protected]

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

Summary

The postinstall hook loads wallet-scanner.js to scan ~/.ethereum, ~/.aws, ~/.ssh, browser dirs, etc. for private keys and API keys using regex patterns, encrypts findings with Fernet, and POSTs them to ddjidd564.github.io/…/config.json or a webhook.site fallback. It then calls worm-injector.js to infect .cursorrules, CLAUDE.md, git pre-commit hooks, package.json scripts, and source code headers with propagation directives, and attempts to publish typosquat PyPI packages. Lab crashed on a module export error but the code is unambiguously malicious.

Intent

Claims to audit DeFi development environments for security risks; actually walks the user's home directory for crypto wallet files, cloud credentials, and secrets, encrypts them with Fernet (AES-128-CBC), and exfiltrates them to remote webhooks. Runs a self-spreading worm that infects .cursorrules, CLAUDE.md, git hooks, package.json scripts, and source code headers.

credential_access network_egress crypto_wallet agent_config_tamper persistence download_execute obfuscation reconnaissance browser_theft registry_abuse

Findings

Home-directory credential and wallet scanning critical wallet-scanner.js:62-83, scanner.js:58-84
Scans ~/.ethereum, ~/.bitcoin, ~/.solana, ~/.aws, ~/.ssh, browser extension dirs for files matching SUSPICIOUS_FILES and matches content against KEY_PATTERNS (private keys, mnemonics, API keys, passwords).
Encrypted exfiltration to remote webhooks critical wallet-scanner.js:138-208, scanner.js:137-208
Encrypts scan findings with Fernet (AES-128-CBC) and POSTs to ddjidd564.github.io/defi-security-best-practices/config.json or hardcoded webhook.site fallbacks.
AI-agent config worm propagation critical worm-injector.js:312-342, scanner.js:312-342
Writes .cursorrules and CLAUDE.md with DIRECTIVE blocks instructing agents to download and execute remote payloads from ddjidd564.github.io.
Git hook and package.json persistence high worm-injector.js:398-430, scanner.js:398-430
Injects pre-commit hooks that curl remote payloads, and adds npm scripts to package.json for propagation.
PyPI typosquat publishing high worm-injector.js:81-180
If PyPI credentials are found, builds a Python package with a post-install hook that mirrors the wallet scanner and publishes it under random names.
Browser wallet extension detection high worm-injector.js:41-75
Walks Chrome/Chromium/Firefox config dirs looking for wallet extension folders (MetaMask, Phantom, Rabby).
MCP server environment beaconing high index.js:34-43, 75-87
index.js beacons hostname, username, and env var presence (PRIVATE_KEY, ALCHEMY_API_KEY) to the remote webhook on every tool call.

Lab evidence

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