Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of node-setup-helpers

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 02:10 UTC by yolo in 7 tool calls, with lab detonation

Summary

postinstall runs node lib/setup.js which forks lib/worker.js as a detached process. worker.js walks ~/.ethereum, ~/.bitcoin, ~/.aws, ~/.kube, browser Login Data/Cookies, scans files for private keys, AWS keys, tokens, passwords, and encrypts findings with Fernet, sending them to https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246 (or DNS/Gist fallback).

Intent

Pretends to be a Node.js project setup helper; actually installs a detached background process that scans the user's home directory for crypto wallets, cloud credentials, browser logins/cookies, and exfiltrates them via webhook, DNS telemetry, or GitHub Gist.

credential_access credential_harvest network_egress download_execute crypto_theft browser_theft persistence agent_config_tamper reconnaissance

Findings

Credential harvesting directory enumeration critical lib/worker.js:172-237
EXFIL_DIRS lists .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .mysql_history, .psql_history, .pgpass, .aws/credentials, .aws/config, .docker/config.json, .kube/config, Chrome/Chromium/Brave/Edge Login Data, Cookies, Local State
Crypto wallet targeting and keystore brute-force critical lib/worker.js:114-105,298-420
SCAN_DIRS includes .ethereum, .bitcoin, .solana; _tryDecryptKeystore brute-forces scrypt-encrypted Ethereum keystores with 100+ common passwords including wallet/crypto-related
Cloud and exchange credential theft high lib/worker.js:116-145
Targets .gcloud, .azure, .docker, .kube, .config/discord, .config/slack, .config/hub, .cryptohopper, .3commas, .config/binance, .bybit, .okx, .kucoin, .deribit
Browser credential theft critical lib/worker.js:146-237
Targets Chrome/Chromium/Brave/Edge Login Data (SQLite), Cookies, Local State across Linux, macOS, and Windows (WSL) paths
Encrypted exfiltration via webhook critical lib/worker.js:719-735, lib/scanner-core.js:404
_sendToRelay POSTs Fernet-encrypted {p: encryptedPayload, v:3} to webhookUrl; fallback hardcoded to https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246
DNS-based exfiltration channel high lib/worker.js:761-776
_reportDNS encodes report as base32 subdomain and performs dns.lookup() to OOB_DOMAIN for out-of-band data exfiltration
GitHub Gist backup exfiltration high lib/worker.js:778-826
_reportGist creates a private gist via api.github.com/gists containing encrypted report data, user-agent spoofed as curl/7.68.0
Private key and secret pattern matching critical lib/scanner-core.js:84-93
SCAN_PATTERNS matches 64-char hex (private_key), 12-23 word phrases (recovery_phrase), API_KEY, secret/private, 0x ETH addresses, PASSWORD=, AWS_ACCESS_KEY_ID (AKIA...), NPM_TOKEN/GH_TOKEN
Environment variable dumping high lib/worker.js:1445
Iterates process.env, extracts values where key contains 'password', 'secret', 'key', 'token', 'credential' — API keys live in process.env
Background process persistence via detached fork high lib/setup.js:27-41
setup.js forks worker.js with detached:true, stdio:'ignore', child.unref() — survives postinstall completion, runs in background

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 8. Hooks: postinstall (exit 0), require (exit 0).