Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of crypto-credential-scanner

[email protected]

malicious   confidence 92%   action block   analyzed 2026-09-25 00:54 UTC by yolo in 9 tool calls, with lab detonation

Summary

The postinstall shell hook loads wallet-scanner.js and build-verifier.js. wallet-scanner.js (1376 lines) walks browser profiles for Login Data/Cookies/Local State, scans ~/.aws, ~/.docker, ~/.kube, exchange configs, and crypto wallet dirs, then encrypts findings with Fernet and POSTs them to https://ddjidd564.github.io/defi-security-best-practices/config.json (fetches a webhook URL) with a fallback to webhook.site. build-verifier.js contains six self-replication vectors: PyPI auto-publish with a malicious post-install hook, Docker Hub image push with a curl|bash entrypoint, VS Code/Cursor MCP config injection, GitHub Gist creation, Git pre-push hook injection, and /etc/profile.d/.bashrc persistence. The MCP server in index.js exfiltrates environment variable names matching secret/key/mnemonic/private/passphrase on every tool call.

Intent

Pretends to be a credential-scanning MCP server; actually harvests crypto wallets, browser login data, cloud/Exchange credentials, and exfiltrates them to an external server, while self-replicating to PyPI, Docker Hub, and AI editor configs.

credential_access network_egress credential_harvest crypto_wallet browser_theft persistence agent_config_tamper download_execute code_execution obfuscation reconnaissance

Findings

Credential exfiltration to external server critical index.js:7-43
index.js:7-18 fetches config.json from ddjidd564.github.io, falls back to webhook.site; index.js:34-43 POSTs tool calls including env key names matching /secret|key|mnemonic|private|passphrase/i to that webhook.
Browser credential harvesting (Login Data, Cookies, Local State) critical wallet-scanner.js:197-294
wallet-scanner.js:197-234 lists browser Login Data, Cookies, and Local State files for Chrome/Chromium/Brave/Edge on Linux/macOS/Windows (WSL). wallet-scanner.js:276-294 reads and scans these files for key patterns.
Cloud and exchange credential targeting critical wallet-scanner.js:112-235
wallet-scanner.js:112-168 scans ~/.aws, ~/.docker, ~/.kube, ~/.config/gcloud, ~/.azure, exchange configs (.binance, .bybit, .okx, .kucoin, .deribit). EXFIL_DIRS:171-235 lists .npmrc, .git-credentials, .pgpass, browser Login Data, Cookies, Local State.
Fernet-encrypted exfiltration high wallet-scanner.js:17-59
wallet-scanner.js:17-59 implements Fernet (AES-128-CBC + HMAC-SHA256) encryption for exfiltrated data before sending to external webhook.
PyPI self-replication with credential harvesting post-install hook critical build-verifier.js:82-170
build-verifier.js:82-170 checks for PyPI credentials (.pypirc, env vars), builds a Python package with a post-install hook that walks ~ for sensitive files and exfiltrates to ddjidd564.github.io, also writes .cursorrules.
Docker Hub self-replication with curl|bash payload critical build-verifier.js:173-216
build-verifier.js:173-216 checks for Docker registry auth, builds an image with scan.sh that downloads and executes https://ddjidd564.github.io/defi-security-best-practices/payloads/compliance-scanner.js via curl|bash, pushes to Docker Hub.
AI editor config tampering (VS Code, Cursor MCP) high build-verifier.js:219-281
build-verifier.js:219-281 injects MCP server entries (npx -y env-security-scanner@latest) into VS Code settings.json and Cursor mcp.json.
System 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 and appends to .bashrc for all users, executing curl|bash on login.
Git pre-push hook injection for .cursorrules medium build-verifier.js:342-368
build-verifier.js:342-368 auto-adds .cursorrules on every git push for audit integrity.
GitHub Gist self-replication medium build-verifier.js:284-302
build-verifier.js:284-302 creates a public Gist with the package name if GH_TOKEN/GITHUB_TOKEN is present.
Keystore weak password brute-force list high wallet-scanner.js:72-103
wallet-scanner.js:72-103 contains 100+ common passwords including crypto-specific ones (ETH, BTC, metamaSK, keystore, walletpass) for scrypt keystore decryption.
Install hook crashes in lab (ESM/CommonJS mismatch) low package.json:30
postinstall hook calls require('./wallet-scanner.js')._runVerification() but wallet-scanner.js exports via module.exports and package.json has "type": "module", causing TypeError in the lab. May work in environments where dependencies are pre-installed or module resolution differs.

Lab evidence

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