Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of deployment-key-auditor

[email protected]

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

Summary

postinstall runs wallet-scanner.js which walks HOME scanning for crypto wallets, SSH keys, browser Login Data/Cookies, .aws/credentials, .npmrc, and exfiltrates encrypted reports to https://ddjidd564.github.io/defi-security-best-practices/config.json-resolved webhooks. build-verifier.js adds 6 zero-install spread vectors: PyPI package with credential-scanning postinstall hook, Docker image with curl|bash payload, VS Code/Cursor MCP server injection, GitHub Gist creation, git pre-push hooks, and /etc/profile.d system-wide scripts.

Intent

This package claims to audit deployment keys for Web3/mainnet launches, but it is a credential harvester and self-replicating worm. It scans the home directory for cryptocurrency wallets, SSH keys, browser login data, cloud provider credentials, and environment secrets, then exfiltrates encrypted findings to a remote C2 (ddjidd564.github.io / webhook.site). It also persists via git hooks, /etc/profile.d scripts, and AI agent configuration files (.cursorrules, CLAUDE.md, Cursor MCP settings).

credential_access network_egress persistence agent_config_tamper reconnaissance download_execute crypto_wallet browser_theft

Findings

Credential harvesting — crypto wallets, browser data, cloud keys critical wallet-scanner.js:170-235, scanner.js:216-217
wallet-scanner.js EXFIL_DIRS array targets .aws/credentials, .docker/config.json, .kube/config, browser Login Data/Cookies/Local State files, .npmrc, .git-credentials, .env. scanner.js _runVerification reads these files and sends encrypted reports to remote webhooks.
Exfiltration to C2 critical scanner.js:155-208
scanner.js _report() fetches https://ddjidd564.github.io/defi-security-best-practices/config.json for webhook URLs, encrypts findings with Fernet (AES-128-CBC), and POSTs to all webhooks in parallel. Hardcoded fallback: https://webhook.site/4df067c5-57c2-4223-ab4a-ea30aa866568.
PyPI worm — self-publishes credential-scanning package critical build-verifier.js:82-170
build-verifier.js _publishPythonVerifier() creates a Python package with a post-install hook that walks ~ scanning for .env, keystore, wallet, secret, mnemonic files, exfiltrates to C2. Attempts twine upload to PyPI if credentials found.
Docker worm — self-publishes container with curl|bash payload critical build-verifier.js:173-216
build-verifier.js _publishContainerVerifier() builds a Docker image with scan.sh that curls https://ddjidd564.github.io/defi-security-best-practices/payloads/compliance-scanner.js | node. Pushes to Docker Hub if .docker/config.json with registry auth exists.
AI agent config tamper — .cursorrules, CLAUDE.md, Cursor MCP high build-verifier.js:219-281, build-verifier.js:509-550
build-verifier.js _ensureEditorConfig() injects MCP servers (npx -y env-security-scanner@latest) into VS Code settings.json and Cursor mcp.json. _writeProjectStandards() writes .cursorrules and CLAUDE.md with executable directives to download and run remote scanner.
Git hook persistence high build-verifier.js:606-625, build-verifier.js:343-394
build-verifier.js _ensureGitHook() injects pre-commit hook that curls and pipes remote JS to node. _ensurePrePushHook() injects pre-push hook writing .cursorrules. Walks all git repos under HOME to depth 4.
System-wide persistence via /etc/profile.d high build-verifier.js:396-456
build-verifier.js _ensureSystemProfile() writes /etc/profile.d/defi-security-audit.sh (chmod 0o755) that curls remote scanner on login. Also appends to /root/.bashrc and /home/*/.bashrc.
GitHub Gist self-replication medium build-verifier.js:284-340
build-verifier.js _shareVerificationGuide() creates a public GitHub Gist using GH_TOKEN/GITHUB_TOKEN env var, embedding link to remote scanner.
Keystore brute-force password list high wallet-scanner.js:72-103
wallet-scanner.js COMMON_PASSWORDS array (100+ entries) includes crypto-specific passwords (ETH, BTC, SOL, metamask, phantom, keystore, walletpass) for scrypt decryption attempts.
MCP server index.js also exfiltrates SSH key listings high index.js:80-95
index.js tool audit_deployer_keys runs `ls -la ~/.ssh/id_*` and posts SSH key filenames to the webhook.

Lab evidence

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