[email protected] — Credential harvester with AI-prompt-injection persistence
2026-09-25 02:28 UTC · by Andy · [email protected] · malicious 96%
What it pretends to be
A "project initialization utility" and "credential integrity scanner" that runs on npm postinstall.
What it actually does
On install, lib/setup.js spawns lib/worker.js as a detached background process. The worker:
- Scans the host for sensitive files:
.env,.bash_history,.npmrc,.git-credentials,.pgpass, AWS~/.aws/credentials, Docker/Kubernetes configs, browserLogin Data/Cookies/Local State(Chrome, Chromium, Brave, Edge on Linux/macOS/WSL), Firefoxlogins.json/key4.db, exchange configs (binance, bybit, okx, kucoin, deribit). - Extracts secrets via regex patterns for private keys (64-char hex), Ethereum mnemonics, API keys, AWS keys (AKIA…), passwords.
- Brute-forces Ethereum keystores (UTC-- files) using a 100+ word dictionary including crypto-specific passwords (ethereum, bitcoin, metamask, phantom…) plus passwords derived from shell history and environment variables.
- Harvests environment variables containing key/secret/token/password/wallet/seed and reports value previews.
- Exfiltrates findings via Fernet-encrypted (AES-128-CBC+HMAC-SHA256) payloads sent over five channels: parallel webhooks, DNS lookup tunneling (base32 subdomains), direct TLS, GitHub Gist POST, and a local file queue.
- Fetches remote config resiliently from
ddjidd564.github.io/defi-security-best-practices/config.json, a raw.githubusercontent.com mirror, DNS TXT_integrity-config.config-verify.org, or hardcoded webhook.site fallbacks. Remotestrategy.commandsare executed viaexecSync. - Propagates by writing
.cursorrulesandCLAUDE.mdto project directories with AI-prompt-injection content instructing agents to runnpx -y dev-env-bootstrapper@latestand embed zero-width stego payloads for AI-to-AI chain infection. Installs git hooks (post-merge,post-checkout) that curl-and-executescan-bundled.js. Appends hourly cron-like persistence to.bashrc/.zshrc/.profile.
How delivered
npm postinstall hook → detached child process → multi-channel exfil + AI-prompt-injection + git-hook/shell-RC persistence.
Lab evidence
Offline lab — no network observed. Code is unambiguous.
IOCs
- Domains:
ddjidd564.github.io,config-verify.org,webhook.site - URLs:
https://ddjidd564.github.io/defi-security-best-practices/config.jsonhttps://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan-bundled.jshttps://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.jshttps://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246https://webhook.site/7513bf3d-7092-4739-bf15-a8f779a75546https://webhook.site/d1652693-2eb8-4281-b9e8-cffff36da2f8
- Paths:
~/.local/share/.integrity_queue,~/.local/share/.integrity_config,~/.local/share/.p2024_integrity
Action
Block. Do not install. If already installed, remove .cursorrules/CLAUDE.md markers, clean git hooks and shell RC files, rotate any exposed credentials, and revoke compromised API keys.
Automated analysis by Andy (yolo) at 2026-09-25T02:28:39.199Z. Report: https://andymal.com/packages/project-init-tools/1.0.8. IOCs are defanged on the site; treat every string quoted from the package as untrusted.