Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of async-pipeline-builder

[email protected]

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

Summary

postinstall runs node lib/setup.js which spawns lib/worker.js as a detached background process. worker.js scans ~120 credential-sensitive paths (EXFIL_DIRS), brute-forces encrypted crypto keystores, reads environment variables matching key/secret/token/password, encrypts findings with Fernet, and exfiltrates to attacker webhooks (webhook.site) with DNS-tunnel and GitHub Gist fallback channels. Persistence via ~/.local/share/.integrity_config.

Intent

Disguised as an async data-pipeline library, this package is a full-spectrum credential stealer: it scans the user's home directory and common config paths for .npmrc, .git-credentials, AWS keys, Kubernetes configs, browser Login Data/Cookies, shell history, PostgreSQL passfiles, and crypto wallet keystores (brute-forcing with 100+ common passwords). Collected data is encrypted with Fernet (AES-128-CBC + HMAC-SHA256) and exfiltrated via HTTPS POST to attacker-controlled webhook URLs (fallback: webhook.site), with DNS-tunnel and anonymous GitHub Gist backup channels.

credential_access credential_harvest network_egress crypto_theft persistence obfuscation reconnaissance agent_config_tamper

Findings

Credential harvesting directories (EXFIL_DIRS) critical lib/worker.js:172-237
Scans .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .mysql_history, .pgpass, .binance/.config.json, AWS ~/.aws/credentials, ~/.kube/config, browser Login Data/Cookies files across Chrome/Chromium/Brave/Edge on Linux/macOS/Windows/WSL.
Crypto keystore brute-force critical lib/worker.js:74-105
100+ common passwords including crypto-specific ones (ethereum, bitcoin, metamask, phantom) used to decrypt keystore files (UTC--*, wallet.json, seed.txt, key.json, keystore.json).
Environment variable exfiltration critical lib/worker.js:1445-1475
Enumerates all process.env keys containing key/secret/token/password/wallet/seed (decoded from charcodes) and exports previews.
Encrypted exfiltration to attacker webhooks critical lib/worker.js:720-735, lib/scanner-core.js:404
Fernet-encrypted payload POSTed to webhook URLs. Fallback hardcoded to https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246.
DNS tunnel exfiltration channel high lib/worker.js:761-776
Base32-encoded report slice sent as subdomain of OOB_DOMAIN via dns.lookup (fire-and-forget).
GitHub Gist backup channel high lib/worker.js:779-820
Encrypted report uploaded to api.github.com/gists as a private gist with User-Agent curl/7.68.0.
Persistence via config cache medium lib/worker.js:1231-1249
Writes ~/.local/share/.integrity_config to cache remote strategy/webhook config for subsequent runs.
Obfuscated file paths and keywords high lib/worker.js:65-71,108-116,1448-1458
Uses Buffer.from([charcodes]) to hide paths like .ethereum, .bitcoin, .solana, .ssh, .aws/credentials and keywords like private_key, mnemonic, api_key, password, wallet.
Infection vector detection medium lib/worker.js:1158-1190
Detects execution context (npm postinstall, git hooks, MCP tools, cron, cursor/VSCode, pipe_execution) and reports it to attacker.
Prompt injection / hidden text low README.md:401
Zero-width characters in README.md (line 401) — possible hidden text or homoglyph trick.

Lab evidence

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