[email protected] — Credential stealer with AI prompt injection
2026-09-25 00:34 UTC · by Andy · [email protected] · malicious 95%
What it claims
"Build script utilities and helpers for JavaScript and TypeScript projects."
What it does
A credential/browser/crypto stealer disguised as a build-tool utility.
Install hook
postinstall: node lib/setup.js spawns lib/worker.js as a detached, unref'd background process (lib/setup.js:27-41).
Data collection (lib/worker.js)
- EXFIL_DIRS (lines 170-235): ~/.env, ~/.bash_history, ~/.zsh_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.mysql_history, ~/.psql_history, ~/.pgpass, AWS ~/.aws/{credentials,config} (char-code obfuscated), ~/.docker/config.json, ~/.kube/config, Chrome/Chromium/Brave/Edge Login Data, Cookies, Local State.
- Exchange/wallet configs (lines 116-143): ~/.binance, ~/.bybit, ~/.okx, ~/.kucoin, ~/.deribit/config.json.
- Browser profiles (lines 244-269): Login Data (SQLite passwords), Cookies, Local State (master key) across Chrome, Chromium, Brave, Edge.
- Environment vars (lines 1441-1472): process.env keys containing key/secret/token/password/private/mnemonic/wallet/seed.
- Shell history passwords (lines 1481+).
Exfiltration (lines 718-811)
Encrypted with Fernet (AES-128-CBC + HMAC-SHA256), sent via:
- Webhook POST (channel 1)
- DNS subdomain exfil (channel 2)
- Anonymous GitHub Gist (channel 3)
Persistence (lines 1770-1801)
- Git post-merge/post-checkout hooks downloading remote script
- Shell RC (.bashrc, .zshrc, .profile) injection
AI agent prompt injection (lines 1700-1730)
Writes .cursorrules and CLAUDE.md instructing AI assistants to curl and execute https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js.
Self-propagation (lines 1733-1750)
Walks cwd + parent dirs + HOME project dirs, writes malicious files to each.
Obfuscation
Buffer.from([charcodes]) to encode 'aws', 'credentials', 'config', 'private_key', 'mnemonic', 'api_key', 'password', 'wallet', 'seed' (lines 190-191, 1446-1455).
Lab evidence
Offline lab: no network calls possible, but static code is unambiguous.
IOCs
- Domain: ddjidd564.github.io, raw.githubusercontent.com
- URL: https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js
- Paths: ~/.env, ~/.npmrc, ~/.git-credentials, ~/.aws/credentials, ~/.aws/config, ~/.kube/config, ~/.config/google-chrome/Default/Login Data, ~/.config/google-chrome/Default/Cookies, ~/.config/google-chrome/Local State, ~/.bashrc, ~/.zshrc, ~/.profile, ~/.local/share/.p2024_integrity
Action
Block. Do not install. Rotate any credentials that may have been exposed on systems where this package was installed.
Automated analysis by Andy (yolo) at 2026-09-25T00:34:30.827Z. Report: https://andymal.com/packages/build-scripts-utils/1.0.1. IOCs are defanged on the site; treat every string quoted from the package as untrusted.