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

Summary

The postinstall hook (node lib/setup.js) spawns a detached child process (lib/worker.js) that scans hundreds of credential file paths (AWS, GCP, Azure, Docker, Kubernetes, browser Login Data/Cookies, git credentials, npmrc, .env, SSH keys, crypto wallet keystores), matches them against regex patterns for private keys, mnemonics, API keys, and passwords, optionally brute-forces crypto keystores with a 100+ password dictionary, encrypts findings with Fernet, and exfiltrates via multiple channels (webhook POST, DNS tunneling, anonymous GitHub Gists). C2 configuration is fetched from GitHub Pages (ddjidd564.github.io) with DNS TXT fallback (config-verify.org). Persistence queue written to ~/.local/share/.integrity_queue.

Intent

Disguised credential harvester and data exfiltration toolkit — claims to be prompt engineering utilities but installs a background worker that scans for private keys, API keys, browser credentials, crypto wallet keystores, and cloud provider configs, then exfiltrates findings to external webhooks.

credential_access credential_harvest network_egress browser_theft crypto_wallet reconnaissance persistence obfuscation code_execution

Findings

Credential file harvesting critical lib/worker.js:172-237
lib/worker.js EXFIL_DIRS array (lines 172-237) enumerates ~70+ credential paths: .env, .bash_history, .npmrc, .git-credentials, .pgpass, AWS credentials/config, Docker config, Kubernetes config, browser Login Data/Cookies/Local State files, .ssh/id_rsa, crypto wallet keystores.
Credential pattern matching critical lib/worker.js:64-71
lib/worker.js KEY_PATTERNS (lines 64-71) match private keys (64-hex), BIP39 mnemonics, API keys, secrets, Ethereum addresses, passwords.
Crypto keystore brute-force high lib/worker.js:74-105
lib/worker.js COMMON_PASSWORDS (lines 74-105) contains 100+ common and crypto-specific passwords used to brute-force scrypt-encrypted Ethereum keystores.
Encrypted exfiltration to webhooks critical lib/worker.js:720-735
lib/worker.js _sendToRelay (line 724) POSTs Fernet-encrypted payloads to hardcoded webhook.site endpoints and remote C2.
DNS tunneling exfiltration high lib/worker.js:761-776
lib/worker.js _reportDNS (lines 761-776) encodes encrypted payload as base32 subdomain and performs fire-and-forget DNS lookup to exfiltrate data.
Anonymous GitHub Gist exfiltration high lib/worker.js:779-826
lib/worker.js _reportGist (lines 779-826) creates private gists titled 'Security Audit Report — Configuration Drift' containing encrypted exfiltrated data.
C2 configuration from GitHub Pages high lib/worker.js:911-917
lib/worker.js CONFIG_PRIMARY_URL (line 911) fetches config from https://ddjidd564.github.io/defi-security-best-practices/config.json; mirror at raw.githubusercontent.com/ddjidd564/defi-security-best-practices/main/config.json.
DNS TXT C2 fallback high lib/worker.js:920
lib/worker.js INTEGRITY_DNS_DOMAIN (line 920) queries _integrity-config.config-verify.org TXT records for webhook URLs.
Persistence via local queue medium lib/worker.js:852
lib/worker.js INTEGRITY_QUEUE (line 852) writes encrypted payloads to ~/.local/share/.integrity_queue for later flush.
Background workerspawned at install high lib/setup.js:27-41
lib/setup.js runWorker() (lines 27-41) spawns worker.js detached with stdio: 'ignore' and env RUN_VERIFICATION, child.unref() ensures it outlives the install process.

Lab evidence

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