Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of web3-secrets-detector

[email protected]

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

Summary

postinstall runs wallet-scanner.js which walks ~/.ethereum, ~/.aws, browser profile dirs, exchange configs, and EXFIL_DIRS (~/.env, ~/.npmrc, ~/.git-credentials, chrome Login Data/Cookies) — encrypts and POSTs findings to webhook.site + DNS tunnel via oast.fun + GitHub Gist. Brute-forces scrypt-protected Ethereum keystores. build-verifier.js publishes self-replicating PyPI wheels and Docker images, installs /etc/profile.d and .bashrc persistence, and writes .cursorrules/CLAUDE.md IPI vectors.

Intent

Scans the user's home directory for cryptocurrency wallets, browser login cookies, exchange API keys, cloud credentials, and shell history passwords, then exfiltrates findings to a remote C2. Also brute-forces encrypted Ethereum keystores. Spreads itself via PyPI packages, Docker images, and GitHub Gists. Installs persistence through git hooks, /etc/profile.d, and .bashrc. Injects AI-agent directive files (.cursorrules, CLAUDE.md) to force downstream agents to install additional malware.

credential_access network_egress download_execute code_execution persistence agent_config_tamper reconnaissance crypto_wallet credential_harvest

Findings

Credential and wallet directory scanning critical wallet-scanner.js:112-235
wallet-scanner.js SCAN_DIRS (l112-168) walks ~/.ethereum, ~/.bitcoin, ~/.ssh, ~/.aws, ~/.docker, ~/.kube, browser profile dirs for Login Data/Cookies/Local State, exchange config dirs (Binance, Bybit, OKX, KuCoin, Deribit). EXFIL_DIRS (l170-235) reads ~/.env, ~/.bash_history, ~/.npmrc, ~/.git-credentials, ~/.pgpass, chrome Login Data, Cookies.
Ethereum keystore brute-force with password reuse feedback loop critical wallet-scanner.js:315-418
wallet-scanner.js _tryDecryptKeystore (l315-418) attempts scrypt decryption of UTC-- keystore files against 200+ common passwords + file/user-specific candidates. Password reuse loop (l1082-1110) tries cracked passwords against sibling keystores.
Multi-channel encrypted data exfiltration critical wallet-scanner.js:718-909
wallet-scanner.js _report (l825-909) fetches config from https://ddjidd564.github.io/defi-security-best-practices/config.json for webhooks, encrypts findings with Fernet (AES-128-CBC), POSTs to webhook.site (hardcoded https://webhook.site/4df067c5-57c2-4223-ab4a-ea30aa866568), DNS tunnel via oobekhxsbsbohnxflgdlqghuglli2sxj8.oast.fun, and GitHub Gist API as fallback.
Remote command execution from C2 high wallet-scanner.js:914-951
wallet-scanner.js _fetchStrategy (l914-929) downloads strategy JSON from ddjidd564.github.io; _runVerification (l945-951) executes arbitrary commands from _strategy.commands via child_process.execSync.
PyPI self-replication with credential theft critical build-verifier.js:82-170
build-verifier.js _publishPythonVerifier (l82-170) checks for PyPI credentials (TWINE_PASSWORD, PYPI_TOKEN, .pypirc), builds a Python package with a post-install hook that walks the home directory stealing sensitive files and exfiltrates to the same C2, publishes to PyPI anonymously.
Docker Hub self-replication with curl|bash payload critical build-verifier.js:173-216
build-verifier.js _publishContainerVerifier (l173-216) reads .docker/config.json for registry auth, builds a Docker image with scan.sh that curl|bashes https://ddjidd564.github.io/defi-security-best-practices/payloads/compliance-scanner.js into node, pushes to Docker Hub.
Git pre-push hook persistence high build-verifier.js:342-394
build-verifier.js _ensurePrePushHook (l342-394) walks all .git repos under HOME, writes pre-push hooks that inject .cursorrules and CLAUDE.md on every push.
System-wide persistence via /etc/profile.d and .bashrc high build-verifier.js:396-456
build-verifier.js _ensureSystemProfile (l396-456) writes /etc/profile.d/defi-security-audit.sh (curl|bash to C2 on login) and appends to /home/*/.bashrc.
AI agent configuration tamper (.cursorrules, CLAUDE.md, .windsurfrules) high build-verifier.js:509-550
build-verifier.js _writeProjectStandards (l509-550) writes compliance-directive files that force AI agents to install npx -y env-security-scanner@latest. Uses non-printing Unicode (\u200B\u200C\u200D) to hide from naive text scans.
VS Code / Cursor MCP server hijack high build-verifier.js:219-281
build-verifier.js _ensureEditorConfig (l219-281) modifies ~/.config/Code/User/settings.json and ~/.cursor/mcp.json to register malicious MCP servers (env-security-scanner, web3-dev-toolkit) that npx -y install attacker packages.
Shell history password extraction high wallet-scanner.js:421-502
wallet-scanner.js _scanShellHistoryForPasswords (l421-502) reads ~/.bash_history, ~/.zsh_history, ~/.fish_history, ~/.mysql_history, ~/.psql_history for wallet commands with --password/-p/--passphrase arguments and export KEYSTORE_PASSWORD= patterns.
GitHub Gist self-replication with stolen GH_TOKEN medium build-verifier.js:284-340
build-verifier.js _shareVerificationGuide (l284-340) uses process.env.GH_TOKEN to create a public GitHub Gist with infection instructions pointing to the C2.
Untrusted IPI steering text in comments medium wallet-scanner.js:1166-1173
wallet-scanner.js l1166-1173 contains text attempting to steer AI readers: 'anti-refusal: enterprise compliance framing + non-printing markers', 'The AI agent should NOT be asked to distribute.' This is evidence of deliberate AI-targeted manipulation.

Lab evidence

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