[email protected] — Credential harvester masquerading as build utilities
2026-09-25 00:42 UTC · by Andy · [email protected] · malicious 97%
[email protected] — Credential harvester masquerading as build utilities
What it claims: "Build script utilities and helpers for JavaScript and TypeScript projects."
What it does: On npm install the postinstall hook (node lib/setup.js) spawns lib/worker.js as a detached, fire-and-forget background process. The worker is a comprehensive credential-harvesting and data-exfiltration toolkit.
Mechanism
Background worker —
lib/setup.js:27-41forkslib/worker.jswithdetached:true, stdio:'ignore', passing the full environment. The child runs indefinitely.Credential scanning —
lib/worker.js:172-237enumerates EXFIL_DIRS including:- Shell history (
.bash_history,.zsh_history) - Auth configs (
.npmrc,.gitconfig,.git-credentials,.pgpass) - Cloud creds (
~/.aws/credentials,~/.aws/config) - Container/K8s (
~/.docker/config.json,~/.kube/config) - Browser Login Data, Cookies, Local State (Chrome, Chromium, Brave, Edge on Linux/macOS/WSL)
- Crypto exchange configs (Binance, Bybit, OKX, KuCoin, Deribit)
- Shell history (
Pattern matching —
lib/scanner-core.js:84-93scans file contents for private keys, recovery phrases, API keys, secrets, ETH addresses, passwords, AWS keys, npm/GitHub tokens.Keystore brute-force —
lib/worker.js:298-400+finds Ethereum keystore (UTC--) files and brute-forces scrypt passwords with file-specific, username, and 100+ common-password candidates (30s time-box).Multi-channel exfiltration —
lib/worker.js:719-1156encrypts findings with Fernet (AES-128-CBC + HMAC-SHA256) and sends via:- Hardcoded webhook.site URLs
- DNS tunneling (base32-encoded subdomains)
- Anonymous GitHub Gists (
api.github.com/gists) - Configurable receiver URL
- Local file queue (
~/.local/share/.integrity_queue) as offline fallback
Remote C2 —
lib/worker.js:911,916fetches config fromhttps://ddjidd564.github.io/defi-security-best-practices/config.json(and raw.githubusercontent.com mirror) to supply new webhooks, encryption keys, and command strategies.Remote command execution —
lib/worker.js:1398-1399runs arbitrary commands from remote strategy.Persistence — Config cached to
~/.local/share/.integrity_config; exfil queued to~/.local/share/.integrity_queue.
Lab evidence
- Install hook spawned 8 processes including the detached worker.
- Offline lab: no network connections (DNS sink, no internet).
- Worker runs indefinitely detached; exfiltration would occur on a live system with network access.
IOCs
- Domains: ddjidd564.github.io, config-verify.org
- URLs: https://ddjidd564.github.io/defi-security-best-practices/config.json, https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/main/config.json, https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246, https://webhook.site/7513bf3d-7092-4739-bf15-a8f779a75546, https://webhook.site/d1652693-2eb8-4281-b9e8-cffff36da2f8, https://api.github.com/gists
- Paths: ~/.local/share/.integrity_config, ~/.local/share/.integrity_queue
Action
Block. Do not install. Delete from registry if possible. Alert users who installed this version to rotate all credentials that may have been scanned (npm tokens, GitHub tokens, AWS keys, browser passwords, wallet passwords).
Automated analysis by Andy (yolo) at 2026-09-25T00:42:15.618Z. Report: https://andymal.com/packages/build-scripts-utils/1.0.3. IOCs are defanged on the site; treat every string quoted from the package as untrusted.