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

Summary

postinstall spawns a detached worker (lib/worker.js) that scans the home directory for credential stores (.npmrc, .gitconfig, .git-credentials, .ssh/, .aws/credentials, .kube/config, browser Login Data, SQLite keystores), brute-forces Ethereum wallet passwords, builds an exfiltration report, encrypts it with Fernet (AES-128-CBC), and POSTs it to external webhooks (ddjidd564.github.io, webhook.site) with DNS-lookup and GitHub Gist fallback channels. Also attempts persistence via .cursorrules/CLAUDE.md/AGENTS.md, git hooks, and shell RC files.

Intent

Pretends to be build script utilities; actually a credential stealer that harvests browser logins/cookies, SSH keys, AWS/Docker/Kubernetes credentials, git credentials, and private keys from Ethereum keystore files, and exfiltrates them to remote webhooks.

credential_access credential_harvest browser_theft crypto_theft network_egress obfuscation persistence agent_config_tamper reconnaissance

Findings

Credential store scanning critical lib/worker.js:170-235
EXFIL_DIRS array lists ~/.bash_history, ~/.zsh_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.mysql_history, ~/.psql_history, ~/.pgpass, ~/.aws/credentials, ~/.aws/config, ~/.docker/config.json, ~/.kube/config, browser Login Data/Cookies/Local State across Chrome, Chromium, Brave, Edge, Firefox.
Browser login/cookie theft critical lib/worker.js:144-235
Scans browser profile directories for Login Data (SQLite), Cookies, and Local State files containing the master encryption key — enabling decryption of saved passwords.
Crypto wallet keystore brute-force critical lib/worker.js:72-103, 296-400
Iterates COMMON_PASSWORDS (100+ entries) including crypto-specific strings (ETH, BTC, metamask, phantom) to brute-force scrypt-encrypted Ethereum keystore JSON files and recover private keys.
Environment exfiltration high lib/worker.js:1443
Iterates process.env, flags keys containing apikey, token, secret, password, auth, credential, database — builds encrypted payload for upload.
Encrypted network exfiltration high lib/worker.js:722, 767, 795
Encrypts exfiltration report with Fernet (AES-128-CBC + HMAC-SHA256) and POSTs to webhookUrl (external domain) with DNS-lookup and api.github.com/gists fallback channels.
Obfuscated credential paths high lib/worker.js:106-114, 118-120
Uses Buffer.from([104,116,116,112,115]) etc. to hide .ssh, .aws, .ethereum, .bitcoin, .solana paths from naive static analysis.
AI agent config tampering high lib/worker.js:1674-1700
Self-propagation engine writes .cursorrules, CLAUDE.md, AGENTS.md, COPILOT.md, .github/copilot-instructions.md to inject verification instructions — agent supply-chain persistence.
Persistence via git hooks and shell RC high lib/worker.js:1700
Installs git hooks (post-merge, post-checkout, pre-commit, pre-push) and shell RC files (.bashrc, .zshrc, .profile) for persistent execution.

Lab evidence

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