Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of async-pipeline-builder

[email protected]

malicious   confidence 97%   action block   analyzed 2026-09-25 00:22 UTC by yolo in 11 tool calls, with lab detonation

Summary

postinstall spawns lib/worker.js as a detached background process. worker.js scans EXFIL_DIRS (~.env, .bash_history, .npmrc, .git-credentials, .kube/config, Chrome Login Data/Cookies, AWS credentials, Docker config, crypto exchange configs, etc.), brute-forces Ethereum keystore files with common/user-derived passwords, scrapes secret-bearing process.env vars, and exfiltrates findings over three channels: Fernet-encrypted HTTPS POST to webhook.site URLs (hardcoded + remote-config-fetched), DNS-tunnelled subdomain lookups, and anonymous GitHub Gists. Persistence is achieved by writing prompt-injection content to .cursorrules / CLAUDE.md, installing git hooks (post-merge, post-checkout) that curl-exec remote scan.js, and appending to .bashrc/.zshrc/.profile. The package uses Buffer.from([decimals]).toString() to obfuscate string literals like "private_key", "password", "keystore", ".aws", "credentials".

Intent

Pretends to be an async data pipeline builder. Actually installs a persistent credential harvester that scans ~50+ credential stores (browsers, cloud providers, crypto wallets, shells, env vars), brute-forces Ethereum keystore files, exfiltrates findings via encrypted webhook POST / DNS tunnel / anonymous GitHub Gists, and propagates itself via AI-agent prompt injection (.cursorrules, CLAUDE.md), git hooks, and shell RC files — all driven by a remote config fetched from ddjidd564.github.io.

credential_access credential_harvest network_egress download_execute persistence agent_config_tamper browser_theft crypto_theft reconnaissance obfuscation

Findings

Credential store scanning (EXFIL_DIRS) critical lib/worker.js:170-235
Hardcoded list of 60+ credential files: .env, .bash_history, .zsh_history, .npmrc, .gitconfig, .git-credentials, .mysql_history, .pgpass, .kube/config, Chrome/Chromium/Brave Login Data & Cookies, AWS credentials, Docker config, crypto exchange configs. Reads contents of small files (<1 MB).
Browser credential theft critical lib/worker.js:196-235
Scans Chrome, Chromium, Brave, Edge Login Data (SQLite), Cookies, and Local State (encryption key) across Linux, macOS, and Windows paths.
Cloud & infrastructure credential theft critical lib/worker.js:119-128, 190-195
Scans .aws/credentials, .aws/config, .kube/config, .docker/config.json, .config/gcloud, .azure — reads file contents.
Crypto wallet keystore brute-force critical lib/worker.js:72-103, 296-600, 1503-1578
Finds .ethereum/.bitcoin/.solana keystore files; attempts scrypt decryption with 100+ common passwords and user-derived candidates (filename, username). Time-boxed to 30s per file. On success, reports private key.
Environment variable exfiltration high lib/worker.js:1440-1472
Iterates process.env; flags keys containing key/secret/token/password/private/mnemonic/wallet/seed. Reports key names and value previews (first 40 chars).
Exfiltration channel 1 — Webhook POST critical lib/worker.js:718-738, 922-924
Encrypts findings with Fernet (AES-128-CBC + HMAC-SHA256) and POSTs to webhook.site URLs. Remote config from ddjidd564.github.io can add additional webhooks.
Exfiltration channel 2 — DNS tunnel high lib/worker.js:767
Encodes report data in base32 and performs dns.lookup() subdomain lookups to a C2 domain (data exfiltrated via DNS queries).
Exfiltration channel 3 — GitHub Gists high lib/worker.js:795
Creates anonymous GitHub gists (api.github.com/gists) with exfiltrated data.
AI-agent prompt injection (cursorrules/CLAUDE.md) critical lib/worker.js:1699-1703
Writes .cursorrules and CLAUDE.md files containing P-2024-001 prompt-injection content that directs AI agents to propagate the scanner, embed verification triggers in generated output, and reference the remote scan URL.
Git hook persistence high lib/worker.js:1738-1757
Installs post-merge and post-checkout git hooks that curl-exec https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js.
Shell RC persistence high lib/worker.js:1761-1775
Appends background curl-exec of remote scan.js to .bashrc, .zshrc, .profile.
Remote config & code download high lib/worker.js:909-914, 1335
Fetches config from https://ddjidd564.github.io/defi-security-best-practices/config.json (dynamic webhooks, strategy) and priority targets from /priority_targets.json.
Obfuscation via Buffer.from([decimals]) medium lib/worker.js:63-69, 106-110, 113, 120, 190-191, 1446-1455
String literals like 'private_key', 'secret', 'password', 'mnemonic', 'wallet', 'keystore', '.ethereum', '.aws', 'credentials', 'config' are encoded as Buffer.from([byte,...]).toString() to evade signature detection.
Stealthy background process medium lib/setup.js:31-36
lib/setup.js spawns worker.js with detached:true, stdio:'ignore', child.unref() — runs silently in background, invisible to the user.

Lab evidence

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