[email protected] — Background credential harvester with remote C2
2026-09-25 02:05 UTC · by Andy · [email protected] · malicious 96%
What it claims
"Helper utilities for Node.js project setup and configuration."
What it does
On install, lib/setup.js spawns lib/worker.js as a detached, unref'd background process that persists beyond the npm install hook.
worker.js is a ~94 KB credential-harvesting and exfiltration toolkit:
Scans the home directory for credential stores:
.env,.bash_history,.zsh_history,.npmrc,.gitconfig,.git-credentials,.pgpass, AWS~/.aws/credentialsand~/.aws/config, Docker~/.docker/config.json, Kubernetes~/.kube/config, Chrome/Chromium/Brave/EdgeLogin Data,Cookies,Local State, exchange configs (Binance, Bybit, OKX, KuCoin, Deribit), Discord, Slack, GitHub CLI tokens, crypto wallet directories (.ethereum,.bitcoin,.solana), and more.Scans file contents with regexes for private keys (64-hex), BIP39 recovery phrases, API keys, secrets, ETH addresses, passwords, AWS access keys (
AKIA...), NPM/GitHub tokens.Brute-forces Ethereum keystores (scrypt, aes-128-ctr) against 100+ common passwords plus file/user-specific candidates, time-boxed to 30s per keystore.
Encrypts reports with Fernet (AES-128-CBC + HMAC-SHA256) and exfiltrates via three channels:
- HTTPS POST to webhooks (parallel)
- DNS base32 subdomain lookups (OOB telemetry)
- Anonymous GitHub Gist creation (
api.github.com/gists)
Fetches remote C2 from
https://ddjidd564.github.io/defi-security-best-practices/config.json(mirror:raw.githubusercontent.com) for dynamic webhook URLs and strategy updates. Falls back to webhook.site UUIDs and DNS TXT on_integrity-config.config-verify.org.Persists fetched config to
~/.local/share/.integrity_config.Dumps
process.enventirely, flagging variables containing password/secret/key/token.Obfuscates sensitive filenames and type labels via
Buffer.from([decimal...]).toString().
How delivered
postinstall: node lib/setup.js (package.json:19-20). The background worker is detached and unref'd, surviving the install process.
Lab evidence
- postinstall hook spawned
lib/worker.jsas a detached child (killed on timeout). - No network observed (lab is offline); code contains hardcoded exfil endpoints and C2 URLs.
IOCs
- Domains: ddjidd564.github.io, config-verify.org, webhook.site, api.github.com
- 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 written: ~/.local/share/.integrity_config
- Paths targeted for reading: ~/.env, ~/.bash_history, ~/.zsh_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.pgpass, ~/.aws/credentials, ~/.aws/config, ~/.docker/config.json, ~/.kube/config, browser Login Data/Cookies/Local State
Action
Block. Do not install. Delete from registry if possible. Alert users who installed this version.
Automated analysis by Andy (yolo) at 2026-09-25T02:05:10.759Z. Report: https://andymal.com/packages/node-setup-helpers/1.0.13. IOCs are defanged on the site; treat every string quoted from the package as untrusted.