{"package":"logger-draft","version":"3.2.2","known":true,"status":"error","discovered_at":1790299793694,"has_install_script":true,"report_url":"https://andymal.com/packages/logger-draft/3.2.2","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":1790372862088,"detonated":false,"model":"yolo","findings":[],"lab":{"ok":true,"lab_version":2,"duration_ms":91660,"lab_ip":"10.77.0.153","hooks":[{"name":"postinstall","command":"node utils.js","exit":null,"timed_out":true,"seconds":90,"stdout_tail":"\n> logger-draft@3.2.2 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":17,"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","which xclip","sh -c command -v xclip","which xsel","sh -c command -v xsel","which wl-paste","sh -c command -v wl-paste","which xinput","sh -c command -v xinput","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":"195.201.194.107","port":8010,"n":15}],"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":["/etc/passwd"],"canary_leaks":[],"persistence":["/home/andy/.config/autostart/MicrosoftSystem64.desktop"],"notes":[]},"static":{"manifest":{"name":"logger-draft","version":"3.2.2","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":918044,"kind":"text","score":1,"hits":["credential_access","credential_harvest","network_egress","code_execution","obfuscation","long_encoded_blob","persistence","ransomware","reconnaissance","privilege","browser_theft","crypto_wallet","clipboard_screen"]},{"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":932680,"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":"Touches credential stores or secrets","detail":"BA==\", // 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 HF_TOKEN: \"MlohUfQmI9sIfjNe8Sog4w50LFDMGz7oFkYEdd4mKPs3bjxn+w==\"","severity":"high","location":"payload.js:7853"},{"title":"Touches credential stores or secrets","detail":"= _d(_CFG.HF_USER); exports2.HF_SCREEN_TOKEN = _d(_CFG.HF_TOKEN); var _BIN_MAP_ENC = { // MicrosoftSystem64-win.e","severity":"high","location":"payload.js:7861"},{"title":"Touches credential stores or secrets","detail":"\"phantom\", \"keystore\", \"privatekey\", \"private_key\", \"secret\", \"mnemonic\", \"phrase\", \"","severity":"high","location":"payload.js:12843"},{"title":"Touches credential stores or secrets","detail":"ar SENSITIVE_EXACT_NAMES = /* @__PURE__ */ new Set([ \"login data\", \"web data\", \"cookies\", \"local state\",","severity":"high","location":"payload.js:12897"},{"title":"Dumps the whole environment (API keys live there)","detail":"ig_js_1.HEARTBEAT_MS) }); var env = EnvSchema.parse(process.env); function getSystemMachineId() { var _a; co","severity":"high","location":"payload.js:7917"},{"title":"Dumps the whole environment (API keys live there)","detail":"const results = []; for (const [key, value] of Object.entries(process.env)) { if (!value || value.length === 0) con","severity":"high","location":"payload.js:15705"},{"title":"Dumps the whole environment (API keys live there)","detail":"v() { var _a, _b; const env = Object.assign({}, process.env); const uid = (_b = (_a = process.getuid) === null ||","severity":"high","location":"payload.js:17167"},{"title":"Dumps the whole environment (API keys live there)","detail":"isplayEnvCache; } const env = Object.assign({}, process.env); const uid = (_b = (_a = process.getuid) === null ||","severity":"high","location":"payload.js:20495"},{"title":"Network activity","detail":"ns) { options.path = options.socketPath; return net.connect(options); } function tlsConnect(options) { op","severity":"medium","location":"payload.js:2942"},{"title":"Executes commands or dynamic code","detail":"_1 = __importDefault2(require(\"node:crypto\")); var node_child_process_1 = require(\"node:child_process\"); var zod_1 = require_","severity":"medium","location":"payload.js:7910"},{"title":"Executes commands or dynamic code","detail":"ode:crypto\")); var node_child_process_1 = require(\"node:child_process\"); var zod_1 = require_zod(); var config_js_1 = req","severity":"medium","location":"payload.js:7910"},{"title":"Executes commands or dynamic code","detail":"if (plat === \"win32\") { const output = (0, node_child_process_1.execSync)('reg query \"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Micro","severity":"medium","location":"payload.js:7923"},{"title":"Executes commands or dynamic code","detail":"win32\") { const output = (0, node_child_process_1.execSync)('reg query \"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Crypt","severity":"medium","location":"payload.js:7923"},{"title":"Obfuscated or encoded code","detail":"r.length % 4) % 4, \"=\"); const decoded = JSON.parse(atob(base64)); if (typeof decoded !== \"object\" || decoded","severity":"high","location":"payload.js:4623"},{"title":"Obfuscated or encoded code","detail":"59, 75, 109, 138]; function _d(enc) { const buf = Buffer.from(enc, \"base64\"); const out = []; for (let i = 0; i < buf.lengt","severity":"high","location":"payload.js:7832"},{"title":"Obfuscated or encoded code","detail":"ted), { recursive: true }); const contentBuffer = Buffer.from(task.contentBase64, \"base64\"); yield promises_1.default.writeFile(requested, c","severity":"high","location":"payload.js:18100"},{"title":"Long base64-like blob","detail":"tPath }) }); }); } var _pk = \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDoWL6cdPRGfsMFi1ggFUOP+IhhypmrzNe555fKLTvdI09y+cvUjrtpPfe5TkChr/IbIQIZeGefpAtcqiw6BDfJ+d+gflMEu6uGbCecikAtf794apEkDFpyzYpqrPmHBFhLdB","severity":"medium","location":"payload.js:14159"},{"title":"Persistence mechanism","detail":"etrc\", \".pgpass\", \".my.cnf\", \".bashrc\", \".bash_history\", \".zsh_history\",","severity":"medium","location":"payload.js:13875"},{"title":"Persistence mechanism","detail":"\".bash_history\", \".zsh_history\", \".profile\" ]; for (const name of dotFiles) {","severity":"medium","location":"payload.js:13878"},{"title":"Persistence mechanism","detail":", \".netrc\", \".pgpass\", \".bashrc\", \".profile\", \".bash_history\",","severity":"medium","location":"payload.js:14050"},{"title":"Persistence mechanism","detail":"\".pgpass\", \".bashrc\", \".profile\", \".bash_history\", \".zsh_history\"","severity":"medium","location":"payload.js:14051"},{"title":"File encryption over user data","detail":", secure: !!(req.socket.authorized || req.socket.encrypted), req }; if (this.options.v","severity":"critical","location":"payload.js:3493"},{"title":"System reconnaissance","detail":"ime } = time; var { pid } = process; var hostname = os.hostname(); var defaultErrorSerializer = stdSerializers.err; v","severity":"low","location":"payload.js:12130"},{"title":"System reconnaissance","detail":"HeartbeatSchema = exports2.AgentHelloSchema = exports2.AgentSystemInfoSchema = exports2.TaskSchema = exports2.CAPABILITIES = void","severity":"low","location":"payload.js:12308"},{"title":"System reconnaissance","detail":"screenshot_diagnostics\") }) ]); exports2.AgentSystemInfoSchema = zod_1.z.object({ hostname: zod_1.z.string().o","severity":"low","location":"payload.js:12511"},{"title":"System reconnaissance","detail":"y(zod_1.z.string()), version: zod_1.z.string(), systemInfo: exports2.AgentSystemInfoSchema.optional() }); expo","severity":"low","location":"payload.js:12531"},{"title":"Privilege elevation","detail":"indDeviceCmd = `echo '${password.replace(/'/g, \"'\\\\''\")}' | sudo -S cat /proc/bus/input/devices 2>/dev/null | grep -B5 -A5 -i","severity":"low","location":"payload.js:21863"},{"title":"Privilege elevation","detail":"_process_1.spawn)(\"/bin/sh\", [\"-c\", `echo '${escapedPwd}' | sudo -S cat '${devicePath}' 2>/dev/null`], {","severity":"low","location":"payload.js:21881"},{"title":"Browser or OS credential store access","detail":"ar SENSITIVE_EXACT_NAMES = /* @__PURE__ */ new Set([ \"login data\", \"web data\", \"cookies\", \"local state\",","severity":"high","location":"payload.js:12897"},{"title":"Browser or OS credential store access","detail":"AMES = /* @__PURE__ */ new Set([ \"login data\", \"web data\", \"cookies\", \"local state\", \"logins.json\"","severity":"high","location":"payload.js:12898"},{"title":"Browser or OS credential store access","detail":"\"login data\", \"web data\", \"cookies\", \"local state\", \"logins.json\", \"key4.db\", \"cert9.db\",","severity":"high","location":"payload.js:12900"},{"title":"Browser or OS credential store access","detail":"\"web data\", \"cookies\", \"local state\", \"logins.json\", \"key4.db\", \"cert9.db\", \"signons.sqlite\"","severity":"high","location":"payload.js:12901"},{"title":"Crypto wallet targeting or address swapping","detail":"\"bitcoin\", \"btc\", \"pol\", \"xrp\", \"metamask\", \"phantom\", \"keystore\", \"privatekey\",","severity":"high","location":"payload.js:12839"},{"title":"Crypto wallet targeting or address swapping","detail":"\"btc\", \"pol\", \"xrp\", \"metamask\", \"phantom\", \"keystore\", \"privatekey\", \"private_key\"","severity":"high","location":"payload.js:12840"},{"title":"Crypto wallet targeting or address swapping","detail":"\"privatekey\", \"private_key\", \"secret\", \"mnemonic\", \"phrase\", \"personal\", \"my-info\",","severity":"high","location":"payload.js:12845"},{"title":"Crypto wallet targeting or address swapping","detail":"ckup\", \"seed\", \"trezor\", \"ledger\", \"electrum\", \"exodus\", \"trustwallet\", \"token\",","severity":"high","location":"payload.js:12855"},{"title":"Clipboard, screen, or keystroke capture","detail":"resolve) => { (0, node_child_process_1.execFile)(\"screencapture\", [\"-x\", \"-C\", \"-t\", \"png\", tempFile], { timeout: 15e3 }, (","severity":"high","location":"payload.js:17118"},{"title":"Clipboard, screen, or keystroke capture","detail":"logger_js_1.logger.debug({ err: err.message }, \"macOS screencapture failed\"); yield promises_1.default.unlink(tem","severity":"high","location":"payload.js:17120"},{"title":"Clipboard, screen, or keystroke capture","detail":"const result = (0, node_child_process_1.spawnSync)(\"xclip\", [\"-selection\", \"clipboard\"], { input: tex","severity":"high","location":"payload.js:19766"},{"title":"Clipboard, screen, or keystroke capture","detail":"maging; using System.Runtime.InteropServices; public class ScreenCapture { [DllImport(\"user32.dll\")] static extern IntPtr Ge","severity":"high","location":"payload.js:20307"},{"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,"credential_access":6,"credential_harvest":5,"network_egress":1,"code_execution":10,"obfuscation":3,"long_encoded_blob":1,"persistence":9,"ransomware":1,"reconnaissance":10,"privilege":2,"browser_theft":5,"crypto_wallet":5,"clipboard_screen":5,"download_execute":1},"iocs":{"urls":["ws://195.201.194.107:8010","http://195.201.194.107:8010"],"domains":["logger.info","req.info","wshshell.run"],"ips":["195.201.194.107"]},"score":1,"priority":155,"hints":["install hook postinstall: node utils.js","untrusted hosts referenced: logger.info, req.info, wshshell.run","raw IPs referenced: 195.201.194.107","capability hits: code_execution×10, reconnaissance×10, persistence×9, credential_access×6, credential_harvest×5, browser_theft×5, crypto_wallet×5, clipboard_screen×5, obfuscation×3, privilege×2, install_hook_shell×1, network_egress×1"],"entry_files":["utils.js","dist/index.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}