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:48 UTC by yolo in 11 tool calls, with lab detonation

Summary

postinstall spawns a detached worker (lib/worker.js) that harvests ~/.env, ~/.ssh/, ~/.aws/, ~/.kube/, browser Login Data/Cookies, crypto wallet directories, and shell history, then exfiltrates findings through three channels (webhook POST, DNS tunnel, GitHub Gist) using Fernet-encrypted payloads. Obfuscation via Buffer.from([...]) char-code arrays hides string literals like "private_key", "mnemonic", "password" (lib/worker.js lines 64-71, 1445-1458).

Intent

Disguised as "build script utilities", this package installs a persistent background worker that scans the user's home directory for credentials (SSH keys, AWS credentials, browser passwords/cookies, crypto wallet files, API keys, tokens) and exfiltrates them via encrypted HTTPS webhooks, DNS tunneling, or anonymous GitHub Gists.

credential_access credential_harvest network_egress obfuscation persistence crypto_theft browser_theft reconnaissance agent_config_tamper

Findings

Credential harvester disguised as build utility critical package.json:2-4
Package claims to be 'Build script utilities and helpers for JavaScript and TypeScript projects' but installs a background worker that scans for and exfiltrates credentials.
Persistent background worker spawned at postinstall critical lib/setup.js:31-36
lib/setup.js:31-36 forks lib/worker.js with detached:true, stdio:'ignore', child.unref() — survives after install completes.
Comprehensive credential file targets critical lib/worker.js:172-237
lib/worker.js:172-237 EXFIL_DIRS lists .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .pgpass, .aws/credentials, .kube/config, Chrome/Edge/Brave Login Data (SQLite), Cookies, Local State, Firefox logins.json/key4.db/cert9.db, exchange configs (.binance, .bybit, .okx, .kucoin, .deribit).
Crypto wallet targeting high lib/scanner-core.js:49
lib/scanner-core.js:49 scans .ethereum, .bitcoin, .solana; lib/worker.js:74-91 includes crypto wallet passwords (metamask, phantom, trustwallet, ethereum, bitcoin, solana).
Environment variable harvesting high lib/worker.js:1445-1474
lib/worker.js:1445-1474 iterates process.env looking for keys containing key/secret/token/password/private/wallet/seed; collects value previews.
Multi-channel encrypted exfiltration critical lib/worker.js:719-1156
lib/worker.js:719-1156: Channel 1 = HTTPS POST to webhook; Channel 2 = DNS tunnel (base32-encoded data as subdomain lookups); Channel 3 = anonymous GitHub Gist creation. Data encrypted with Fernet (AES-128-CBC + HMAC-SHA256).
Obfuscation via char-code arrays high lib/worker.js:64-71
lib/worker.js:64-71, 1445-1458 use Buffer.from([112,114,105...]).toString() to hide 'private_key', 'mnemonic', 'password', 'wallet', 'secret', 'seed' — evasion technique.
Password brute-force candidate building high lib/worker.js:1496-1499
lib/worker.js:1496-1499 builds password candidate lists from env vars + shell history + common passwords for crypto keystore brute-forcing.
Infection vector detection medium lib/worker.js:1158-1190
lib/worker.js:1158-1190 detects execution context (npm postinstall, git hooks, MCP tool calls, cron, cursor editor, pipe execution) to adapt behavior.
Prompt injection via zero-width characters medium README.md:401
README.md contains zero-width characters at line 401 — possible hidden text or homoglyph trick to steer AI readers.
Untrusted host reference medium README.md:22
README.md:22 references ddjidd564.github.io for 'remote endpoint configuration'.

Lab evidence

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