Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of build-scripts-utils

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 00:36 UTC by yolo in 14 tool calls, with lab detonation

Summary

postinstall (lib/setup.js) spawns lib/worker.js as a detached background process. worker.js walks ~/.ssh, ~/.aws, ~/.kube, browser profiles (.ethereum, .bitcoin, .solana, Chrome/Brave/Edge Login Data + Cookies), reads dotfiles (.env, .npmrc, .git-credentials, .pgpass), scans file contents with regex patterns for private keys/API keys/passwords, brute-forces crypto keystores with a 100+ weak-password dictionary, encrypts findings with Fernet (AES-128-CBC), and exfiltrates via HTTPS POST to webhook.site URLs and anonymous GitHub Gists. Remote config is fetched from ddjidd564.github.io; a cached copy is persisted to ~/.local/share/.integrity_config.

Intent

Pretends to be build script utilities; actually a credential harvester and information stealer that scans the home directory for private keys, SSH keys, browser passwords/cookies, crypto wallet keystores, API tokens, and environment secrets, encrypts the data with Fernet, and exfiltrates it to remote webhook endpoints, GitHub Gists, and DNS queries.

credential_access credential_harvest network_egress download_execute obfuscation persistence reconnaissance agent_config_tamper crypto_wallet browser_theft

Findings

Credential-harvesting file list critical lib/worker.js:172-237
EXFIL_DIRS array lists ~70 sensitive paths including .env, .bash_history, .npmrc, .git-credentials, .pgpass, .aws/credentials, .kube/config, browser Login Data, Cookies, Local State, exchange configs (.binance, .bybit, .okx, .kucoin, .deribit).
Private-key / secret scan patterns critical lib/scanner-core.js:86-96
SCAN_PATTERNS regexes match 64-char hex private keys, BEGIN PRIVATE KEY blocks, recovery phrases, API_KEY=, secret=, ETH addresses, PASSWORD=, AWS_ACCESS_KEY_ID, NPM_TOKEN/GH_TOKEN.
Crypto-keystore brute-force critical lib/worker.js:74-98, ~1504-1540
COMMON_PASSWORDS includes 100+ weak passwords plus wallet/crypto terms; _tryDecryptKeystore attempts AES decryption of .ethereum/.bitcoin/.solana keystore files.
Browser credential theft critical lib/worker.js:145-165, ~1250-1350
_checkBrowserProfiles() reads Chrome/Chromium/Brave/Edge Login Data (SQLite), Cookies, Local State across Linux/macOS/Windows-WSL.
Environment exfiltration high lib/worker.js:1443-1475
Iterates process.env, collects keys containing key/secret/token/password/wallet/seed, sends value previews to remote webhook.
Encrypted exfiltration channels critical lib/worker.js:720-826, ~1080-1160
Fernet-encrypts report; sends to webhooks (webhook.site fallback), DNS subdomain lookups (base32-encoded payload), anonymous GitHub Gists (api.github.com/gists).
Remote config fetching high lib/worker.js:911-921, 929-977
Fetches config.json from ddjidd564.github.io and raw.githubusercontent.com/ddjidd564/… to obtain live webhook URLs; also queries DNS TXT _integrity-config.config-verify.org.
Persistence medium lib/worker.js:1231-1249
Writes fetched config to ~/.local/share/.integrity_config for survival across reinstalls.
Obfuscation via byte arrays medium lib/worker.js:65-71, 1448-1458
Strings like 'private_key', 'password', 'wallet', 'secret' hidden as Buffer.from([112,114,105,…]).toString() to evade static analysis.
Install hook spawns persistent worker high lib/setup.js:27-41
lib/setup.js forks lib/worker.js detached+unref'd with RUN_VERIFICATION env — survives npm install completion.
Prompt-injection via zero-width chars medium README.md:401
README.md contains zero-width characters at line 401, likely hiding instructions for AI agents.

Lab evidence

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