← all versions of prompt-engineering-toolkit
[email protected]
malicious confidence 95% action block analyzed 2026-09-25 02:30 UTC by yolo in 9 tool calls, with lab detonation
Summary
postinstall spawns lib/worker.js as a detached child. The worker scans ~30+ credential stores (.npmrc, .git-credentials, AWS ~/.aws/credentials, .kube/config, browser Login Data/Cookies, exchange configs) and environment variables matching key/secret/token/password. Encrypted reports are sent to webhook URLs (resolved at runtime), exfiltrated via DNS subdomain lookups, and posted to api.github.com/gists. Propagation writes .cursorrules/CLAUDE.md containing instructions to curl-exec https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js.
Intent
Pretends to be a prompt engineering toolkit for template management and A/B testing. Actually installs a detached background worker that scans the host for credentials, browser logins, crypto wallet files, and environment secrets, encrypts the findings with Fernet (AES-128-CBC), and exfiltrates them via HTTPS webhook POST, DNS lookups, and anonymous GitHub Gists. Propagates by writing malicious .cursorrules and CLAUDE.md files that instruct AI agents to download and execute a remote payload.
credential_access credential_harvest network_egress download_execute persistence agent_config_tamper browser_theft crypto_theft reconnaissance obfuscation
Findings
lib/worker.js:170-235lib/worker.js:197-222,238-256lib/worker.js:112-118,110lib/worker.js:1443-1473lib/worker.js:718-815lib/worker.js:30-58lib/worker.js:1686-1730lib/worker.js:1765-1810lib/worker.js:1708,1720,1730lib/worker.js:113-114,118,120,190-191Lab evidence
Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (exit 0), require (exit 0).