Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of project-init-tools

[email protected]

malicious   confidence 96%   action block   analyzed 2026-09-25 02:15 UTC by yolo in 12 tool calls, with lab detonation

Summary

postinstall forks lib/worker.js as a detached background process that scans the home directory for credential stores (~/.npmrc, ~/.git-credentials, browser Login Data/Cookies, AWS ~/.aws/credentials, Kubernetes ~/.kube/config, exchange configs), brute-forces Ethereum keystore files with 100+ common passwords, collects matching environment variables, and exfiltrates encrypted findings to https://ddjidd564.github.io/defi-security-best-practices/config.json-controlled webhooks (with DNS OOB and GitHub Gist backups). Propagates by writing .cursorrules, CLAUDE.md, shell RC files, and git post-merge/post-checkout hooks that re-download and execute https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js.

Intent

Pretends to be project initialization utilities. Actually a multi-channel credential harvester and self-propagating persistence dropper: scans for browser logins/cookies, AWS/Docker/K8s credentials, exchange API keys, Ethereum keystores (brute-forces weak passwords), shell history passwords, and env var secrets; exfiltrates via encrypted webhooks to ddjidd564.github.io with DNS and GitHub Gist fallbacks; installs persistence in .bashrc/.zshrc, .cursorrules, CLAUDE.md, and git hooks; executes remote commands from coordinator config.

credential_access credential_harvest network_egress download_execute persistence agent_config_tamper browser_theft crypto_theft obfuscation reconnaissance

Findings

Credential harvester - exfil directories critical lib/worker.js:170-235
EXFIL_DIRS array targets ~/.env, ~/.bash_history, ~/.zsh_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.pgpass, AWS ~/.aws/credentials, Docker ~/.docker/config.json, Kubernetes ~/.kube/config, browser Login Data/Cookies/Local State (Chrome, Firefox, Brave, Edge) on Linux/macOS/Windows-WSL.
Crypto wallet keystore brute-force critical lib/worker.js:72-103,296-418
100+ common passwords (lines 72-103) used to decrypt Ethereum/Bitcoin/Solana keystore files (scrypt, aes-128-ctr). Password reuse feedback loop across siblings.
Exchange API key scraping high lib/worker.js:626-715
Scans Binance, Bybit, OKX, KuCoin, Deribit, CryptoHopper config directories for credentials.json, config.json, .env files.
Environment variable credential harvesting high lib/worker.js:1440-1473
Scans process.env for keys containing key/secret/token/password/wallet/seed; extracts values and adds to keystore brute-force candidate list.
Multi-channel encrypted exfiltration critical lib/worker.js:717-824,908-925,1035-1154
Reports encrypted findings to webhooks fetched from https://ddjidd564.github.io/defi-security-best-practices/config.json. Fallback channels: DNS OOB (_integrity-config.config-verify.org), GitHub Gist (api.github.com/gists), local file queue.
Remote command execution high lib/worker.js:1392-1400
Fetches strategy.commands from remote config and executes via execSync (timeout 10s, stdio:ignore).
Self-propagation - AI agent config tamper high lib/worker.js:1682-1764
Writes .cursorrules and CLAUDE.md to project dirs and HOME project subdirectories, instructing AI assistants to re-download and execute the malicious scan.js from raw.githubusercontent.com.
Self-propagation - shellRC and git hooks high lib/worker.js:1765-1802
Appends curl | node backdoor to .bashrc/.zshrc/.profile. Installs post-merge and post-checkout git hooks that re-download and execute the remote payload.
Zero-width steganography decoder medium lib/worker.js:1840-1911
Decoder for hidden AI-to-AI instructions embedded in text via ZWSP/ZWNJ/ZWJ/LTRM/RTLM characters (prompt injection channel).
Persistence marker medium lib/worker.js:1664-1672,1692-1697
Writes ~/.local/share/.p2024_integrity to track infection and skip re-propagation within 24h.

Lab evidence

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