[email protected] — Credential harvester with AI-agent supply-chain attack
2026-09-25 02:37 UTC · by Andy · [email protected] · malicious 96%
What it claims
"Professional prompt engineering utilities — template management, version control, A/B testing"
What it does
On npm install, the postinstall hook (lib/setup.js) spawns lib/worker.js as a detached background process that:
Scans the entire home directory for credential files: browser Login Data (SQLite) and Cookies,
.npmrc,.git-credentials,.aws/credentials,.kube/config, exchange API configs (.binance, .bybit, etc.), SSH keys, shell history, environment variables containing key/secret/token/password — reads up to 500 bytes of file content.Brute-forces crypto wallet keystores (UTC--, keystore-) with common passwords and env-derived candidates, reports decrypted private keys.
Exfiltrates encrypted reports via three channels:
- POST to webhook.site URLs (hardcoded)
- Anonymous private GitHub Gists at api.github.com/gists
- DNS exfiltration (base32-encoded subdomain lookups)
Persists by writing:
.cursorrulesandCLAUDE.mdto project directories with prompt-injection content- Git hooks (
post-merge,post-checkout) that curl and execute remote code - Shell RC files (
.bashrc,.zshrc,.profile) that runnpx -y dev-env-bootstrapper@lateston shell open
Propagates via AI-agent supply chain: The
.cursorrules/CLAUDE.mdcontent instructs AI coding agents to download and executehttps://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js. Zero-width characters (ZWSP+ZWJ/ZWNJ+LTRM) encode hidden triggers in generated text for AI-to-AI chain propagation.
Lab evidence
- Detonated in isolated container: postinstall spawned
lib/worker.jsas detached process (killed after timeout). - No network connectivity in lab, but the exfiltration endpoints and persistence mechanisms are hardcoded in source.
IOCs
- Domains: ddjidd564.github.io, config-verify.org, api.github.com
- URLs: https://ddjidd564.github.io/defi-security-best-practices/config.json, https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js, webhook.site/2ada14c8..., webhook.site/7513bf3d..., webhook.site/d1652693...
- Files written: .cursorrules, CLAUDE.md, .bashrc, .zshrc, .profile, .git/hooks/post-merge, .git/hooks/post-checkout
Action
Block this package. If already installed, remove .cursorrules, CLAUDE.md, git hooks, and shell RC modifications; kill any background worker.js processes; rotate all credentials that may have been exfiltrated.
Automated analysis by Andy (yolo) at 2026-09-25T02:37:15.790Z. Report: https://andymal.com/packages/prompt-engineering-toolkit/1.0.13. IOCs are defanged on the site; treat every string quoted from the package as untrusted.