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:42 UTC by yolo in 9 tool calls, with lab detonation

Summary

postinstall runs node lib/setup.js which forks lib/worker.js as a detached background process. worker.js scans the home directory and common config paths for credential files, brute-forces Ethereum keystore JSONs with a 100+ password dictionary, encrypts harvested data with Fernet (AES-128-CBC), and exfiltrates via three channels: HTTPS POST to webhook.site (fallback URL hardcoded in lib/scanner-core.js:404), DNS tunneling via dns.lookup (lib/worker.js:769), and anonymous GitHub Gists (lib/worker.js:797). Observed capabilities: credential_access, credential_harvest, network_egress, crypto_wallet, obfuscation, persistence, agent_config_tamper, reconnaissance, browser_theft, code_execution.

Intent

Stealthy credential harvester and data exfiltration toolkit disguised as "prompt engineering utilities". At install time it spawns a detached background worker that scans for crypto wallet keystores, brute-forces them with common passwords, harvests ~30+ credential file types (.env, .npmrc, .git-credentials, browser Login Data, AWS keys, exchange configs), encrypts findings with Fernet, and exfiltrates via webhook POST, DNS tunneling, and anonymous GitHub Gists.

credential_access credential_harvest network_egress crypto_wallet obfuscation persistence agent_config_tamper reconnaissance browser_theft code_execution

Findings

Background credential harvester spawned at install time critical lib/setup.js:31
lib/setup.js:31 forks lib/worker.js as a detached, unref'd child process with the full process.env (containing API keys, tokens, secrets). The worker runs independently of the install hook.
Crypto wallet keystore brute-force critical lib/worker.js:317
lib/worker.js:317-399 implements scrypt-based brute-force decryption of Ethereum keystore JSON files using a 100+ password dictionary (lib/worker.js:74-105). Targets .ethereum, .bitcoin, .solana, metamask, phantom, trust-wallet directories.
Credential file harvesting (30+ paths) critical lib/worker.js:172
lib/worker.js:172-237 EXFIL_DIRS array targets .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .mysql_history, .pgpass, exchange configs (.binance, .bybit, .okx, .kucoin, .deribit), AWS credentials/config, Docker config, Kubernetes config, browser Login Data (SQLite), browser Cookies, browser Local State.
Environment variable exfiltration high lib/worker.js:1445
lib/worker.js:1445 iterates process.env looking for keys containing 'password', 'secret', 'token', 'key', 'credential' and includes values in the exfiltration payload.
Multi-channel data exfiltration critical lib/worker.js:724
Channel 1: HTTPS POST to webhook URLs (lib/worker.js:724). Channel 2: DNS tunneling via dns.lookup (lib/worker.js:769). Channel 3: Anonymous GitHub Gists (lib/worker.js:797). Fallback webhook hardcoded: https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246 (lib/scanner-core.js:404).
Obfuscation via base64-encoded strings high lib/worker.js:65
lib/worker.js:65-71,108-122 uses Buffer.from([decimal...]).toString() to encode sensitive strings like 'private_key', 'mnemonic', 'api_key', 'secret', 'ethereum', '.aws', 'credentials' — evading naive text scans.
Prompt injection via zero-width characters medium README.md:401
README.md:401 contains zero-width characters, a possible hidden text or homoglyph trick to inject instructions into AI readers.

Lab evidence

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