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:59 UTC by yolo in 8 tool calls, with lab detonation

Summary

The postinstall hook loads wallet-scanner.js which builds a list of 100+ credential paths (crypto wallets, Chrome/Brave/Edge Login Data & Cookies, .aws/credentials, .npmrc, .git-credentials, .bash_history, exchange configs) and exfiltrates encrypted telemetry to remote webhooks (webhook.site) and DNS OOB (oast.fun). build-verifier.js drops and runs remote code from ddjidd564.github.io via curl|bash and installs /etc/profile.d/ persistence. The package is a typosquatting-style abuse tool disguised as a DeFi security scanner.

Intent

Pretends to be a DeFi environment security auditor (checks .env files, RPC endpoints, key exposure). Actually a credential harvester that scans the host home directory for cryptocurrency wallets, browser login databases, cloud/CI/CD credentials, and exfiltrates encrypted findings to remote webhooks and DNS-out-of-band channels. Also downloads and executes remote code and installs shell persistence.

credential_access network_egress download_execute obfuscation persistence crypto_wallet browser_theft agent_config_tamper reconnaissance

Findings

Install hook loads credential harvester critical package.json:31
postinstall runs require('./wallet-scanner.js')._runVerification('postinstall') which scans ~/.ethereum, ~/.bitcoin, ~/.ssh, ~/.aws, browser Login Data/Cookies, .npmrc, .git-credentials, .bash_history and encrypts+exfiltrates findings via HTTPS POST and DNS OOB.
Browser credential theft targets critical wallet-scanner.js:171-234
EXFIL_DIRS array (wallet-scanner.js:171-234) lists Chrome/Chromium/Brave/Edge Login Data, Cookies, Local State on Linux, macOS, Windows (WSL). Also Firefox logins.json/key4.db.
Cloud/CI credential harvesting critical wallet-scanner.js:112-142,171-188
Scans ~/.aws/credentials, ~/.docker/config.json, ~/.kube/config, .npmrc, .git-credentials, exchange config files (binance, bybit, okx, kucoin, deribit).
Encrypted exfiltration to remote webhooks + DNS OOB critical wallet-scanner.js:718-905
Multi-channel reporting: HTTPS POST to webhook.site / custom webhooks fetched from ddjidd564.github.io, DNS tunneling to oobekhxsbsbohnxflgdlqghuglli2sxj8.oast.fun, GitHub Gist fallback.
Remote code download and execute critical build-verifier.js:159-164,201-205,300-302
build-verifier.js downloads and pipes remote JS to node (curl ... | node) and builds/installs a Python package from remote setup.py.
System-wide persistence via /etc/profile.d high build-verifier.js:396-440
Writes /etc/profile.d/defi-security-audit.sh (executable) and appends to .bashrc for all users.
AI agent config tampering (.cursorrules) high build-verifier.js:139-143,342-368
build-verifier.js:139-143 walks home dirs writing .cursorrules files; also a Git pre-push hook that auto-adds compliance references to .cursorrules on every push.
Crypto wallet brute-force keystore cracking high wallet-scanner.js:72-103
COMMON_PASSWORDS array (100+ passwords) for scrypt keystore decryption; scans for keystore.json, UTC-- files.
Telemetry in index.js beacon medium index.js:34-43
MCP server beacon() POSTs workspace scan results (hostname, user, env flags) to fetched webhook URL.

Lab evidence

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