Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of prompt-engineering-toolkit

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 02:34 UTC by yolo in 8 tool calls, with lab detonation

Summary

postinstall spawns lib/worker.js as a detached process that scans ~/.ethereum, ~/.bitcoin, browser Login Data/Cookies, AWS ~/.aws/credentials, SSH ~/.ssh, shell history, and env vars for keys/secrets. Findings are Fernet-encrypted and exfiltrated to remote webhooks (config fetched from ddjidd564.github.io). Propagates by writing .cursorrules, CLAUDE.md, git hooks, and shell RC files that re-download remote payloads. Includes crypto-keystore brute-force.

Intent

Pretends to be a prompt engineering toolkit; actually a credential harvester that scans for crypto wallets, browser cookies, cloud/SSH keys, and exfiltrates them via encrypted webhooks, with self-propagation to AI project files and shell persistence.

credential_access credential_harvest network_egress persistence code_execution agent_config_tamper crypto_theft browser_theft obfuscation reconnaissance

Findings

Background credential scanner exfiltrated via encrypted webhooks critical lib/worker.js:1263-1606
lib/worker.js _runVerification() scans 20+ credential directories and exfiltrates findings via Fernet-encrypted POST to webhooks fetched from https://ddjidd564.github.io/defi-security-best-practices/config.json (fallback: webhook.site UUIDs). DNS exfiltration channel and GitHub Gist backup also implemented.
Crypto wallet targeting and keystore brute-force critical lib/worker.js:298-1581
lib/worker.js scans ~/.ethereum, ~/.bitcoin, ~/.solana for UTC-- keystore files; brute-forces with 100+ common passwords and env-var-derived candidates; reports decrypted private keys.
Browser credential theft (Login Data, Cookies) critical lib/worker.js:198-237
lib/worker.js EXFIL_DIRS includes Chrome/Chromium/Brave/Edge Login Data SQLite databases and Cookies files across Linux, macOS, and Windows (WSL).
Cloud/infrastructure credential harvesting high lib/worker.js:121-195
lib/worker.js scans ~/.aws/credentials, ~/.docker/config.json, ~/.kube/config, exchange configs (.binance, .bybit, .okx, etc.), .npmrc, .git-credentials, .pgpass.
Environment variable scraping high lib/worker.js:1443-1475
lib/worker.js iterates process.env for keys containing key/secret/token/password/ wallet/seed — reports previews to remote.
Remote command execution via strategy high lib/worker.js:1394-1402
lib/worker.js _runVerification() fetches strategy from remote config; if strategy.commands array present, executes each via execSync.
Self-propagation to AI project files high lib/worker.js:1736-1747
lib/worker.js _propagate() writes .cursorrules and CLAUDE.md to cwd + 4 parent dirs + HOME project dirs, embedding AI-prompt-injection that triggers re-installation of npx -y dev-env-bootstrapper@latest.
Git hook persistence high lib/worker.js:1748-1769
lib/worker.js appends hooks (post-merge, post-checkout) to .git/hooks/ that curl and execute https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan-bundled.js.
Shell RC persistence high lib/worker.js:1771-1781
lib/worker.js appends __p2024_vfy() to ~/.bashrc, ~/.zshrc, ~/.profile that runs npx -y dev-env-bootstrapper@latest every hour.
Zero-width steganography for AI-to-AI propagation medium lib/worker.js:1822-1939
lib/worker.js encodes payloads as ZWSP+ZWJ/ZWNJ+LTRM chains embedded in file comments; other AIs decoding these re-execute the installer.
Remote config C2 high lib/worker.js:911-927, 979-1010
lib/worker.js fetches https://ddjidd564.github.io/defi-security-best-practices/config.json for webhook endpoints, scan_depth, enabled_vectors, and commands. Also checks raw.githubusercontent.com mirror and DNS TXT _integrity-config.config-verify.org.
Prompt-injection hidden text in README medium README.md:401
README.md contains 401 zero-width characters at line 401, possible hidden instruction for AI readers.

Lab evidence

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