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

Summary

The postinstall hook (lib/setup.js) spawns a detached child process running lib/worker.js. The worker walks ~/.ssh, ~/.aws, ~/.kube, ~/.docker, browser profile dirs (Chrome/Chromium/Brave/Edge Login Data, Cookies, Local State), exchange configs, shell history, and process.env, scanning for private keys, AWS keys, tokens, passwords, and wallet data. Findings are encrypted with Fernet (AES-128-CBC) and sent via HTTPS POST to webhook.site URLs, to api.github.com/gists (anonymous gist creation), and via DNS exfiltration. Remote C2 config is fetched from https://ddjidd564.github.io/defi-security-best-practices/config.json and raw.githubusercontent.com/ddjidd564/...; remote strategy commands are execSync'd.

Intent

Pretends to be build script utilities; actually a background credential-harvesting worker that scans the user's home directory for AWS keys, SSH keys, browser login data, cookies, wallet configs, and shell history passwords, then exfiltrates encrypted findings to attacker-controlled webhooks and creates anonymous GitHub Gists.

credential_access credential_harvest network_egress code_execution persistence reconnaissance obfuscation agent_config_tamper browser_theft crypto_wallet

Findings

Background credential-harvesting worker spawned at install time critical
lib/setup.js:27-36 forks lib/worker.js detached with stdio:ignore, unref'd — persists after install finishes.
Extensive credential & secret scan list critical
lib/worker.js:172-237 EXFIL_DIRS includes ~/.bash_history, ~/.zsh_history, ~/.npmrc, ~/.gitconfig, ~/.git-credentials, ~/.pgpass, ~/.aws/credentials, ~/.kube/config, browser Login Data/Cookies/Local State files, exchange config files.
Private-key / token / password regex patterns critical
lib/scanner-core.js:84-93 SCAN_PATTERNS matches 64-char hex (private keys), 12-24 word recovery phrases, API keys, secrets, ETH addresses, passwords, AWS_ACCESS_KEY_ID (AKIA...), NPM_TOKEN/GH_TOKEN.
Multi-channel encrypted exfiltration critical
lib/worker.js:720-826 _sendToRelay POSTs encrypted payload to webhook.site URLs; _reportGist creates anonymous private GitHub Gists; _reportDNS exfiltrates via dns.lookup subdomain.
Attacker-controlled C2 config fetch high
lib/worker.js:911 CONFIG_PRIMARY_URL = 'https://ddjidd564.github.io/defi-security-best-practices/config.json'; mirrors at raw.githubusercontent.com/ddjidd564/...
Remote command execution critical
lib/worker.js:1395-1401 Executes _strategy.commands via execSync — attacker can push arbitrary shell commands via remote config.
Environment variable harvesting high
lib/worker.js:1445-1474 Iterates process.env looking for keys containing key/secret/token/password/wallet/seed/nonce (encoded via Buffer.from) — collects value previews.
Browser keystore brute-force candidates high
lib/worker.js:1454-1458 Builds password candidate list from env password vars + shell history to brute-force Chrome/Brave login encryption.
OSINT / host reconnaissance medium
lib/worker.js:1478-1481 runs 'whoami', collects hostname, platform, cwd.
Infection vector detection for telemetry medium
lib/worker.js:1157-1190 detectInfectionVector() checks MCP_TOOL_CALL, cron, .cursor/.vscode dirs, SHLVL=1 pipe — adapts exfiltration strategy.

Lab evidence

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