{"package":"ip-logger-bg","version":"1.0.0","known":true,"status":"error","discovered_at":1790299275010,"has_install_script":true,"report_url":"https://andymal.com/packages/ip-logger-bg/1.0.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":1790371793893,"detonated":false,"model":"yolo","findings":[],"lab":{"ok":true,"lab_version":2,"duration_ms":3501,"lab_ip":"10.77.0.152","hooks":[{"name":"postinstall","command":"node install.js","exit":1,"timed_out":false,"seconds":0,"stdout_tail":"\n> ip-logger-bg@1.0.0 postinstall\n> node install.js\n\n","stderr_tail":"node:internal/modules/cjs/loader:1433\n  throw err;\n  ^\n\nError: Cannot find module 'fs-extra'\nRequire stack:\n- /work/pkg/install.js\n    at Function._resolveFilename (node:internal/modules/cjs/loader:1430:15)\n    at defaultResolveImpl (node:internal/modules/cjs/loader:1040:19)\n    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1045:22)\n    at Function._load (node:internal/modules/cjs/loader:1216:25)\n    at wrapModuleLoad (node:internal/modules/cjs/loader:254:19)\n    at Module.require (node:internal/modules/cjs/loader:1527:12)\n    at require (node:internal/modules/helpers:147:16)\n    at Object.<anonymous> (/work/pkg/install.js:1:12)\n    at Module._compile (node:internal/modules/cjs/loader:1781:14)\n    at Object..js (node:internal/modules/cjs/loader:1913:10) {\n  code: 'MODULE_NOT_FOUND',\n  requireStack: [ '/work/pkg/install.js' ]\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 'fs-extra'\nRequire stack:\n- /work/pkg/index.js\n- /work/pkg/[eval]\n"}],"process_count":6,"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 install.js","node install.js","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":[],"files_deleted":[],"canary_reads":[],"canary_leaks":[],"persistence":[],"notes":[]},"static":{"manifest":{"name":"ip-logger-bg","version":"1.0.0","description":"Dịch vụ nền ghi log địa chỉ IP công cộng","scripts":{"start":"node index.js","postinstall":"node install.js"},"install_hooks":{"postinstall":"node install.js"},"bin":{"ip-logger":"./cli.js"},"main":"index.js","dependencies":["fs-extra","node-cron"],"author":"","license":"MIT","hasInstallScript":true},"files":[{"path":"install.js","size":1591,"kind":"text","score":0.8689,"hits":["download_execute","code_execution","persistence","privilege"],"role":"entry"},{"path":"index.js","size":1203,"kind":"text","score":0.37106666666666666,"hits":["network_egress","code_execution","reconnaissance"],"role":"entry"},{"path":"cli.js","size":634,"kind":"text","score":0.31089999999999995,"hits":["code_execution","persistence"],"role":"entry"},{"path":"README.md","size":568,"kind":"text","score":0.2005,"hits":["persistence"]},{"path":"package.json","size":455,"kind":"text","score":0.10033333333333333,"hits":["install_hook_shell"]}],"file_count":5,"unpacked_size":4451,"findings":[{"title":"Install hook","detail":"postinstall: node install.js","severity":"low","location":"package.json"},{"title":"Persistence mechanism","detail":"cần tải dịch vụ launchd: ```bash launchctl load ~/Library/LaunchAgents/com.iplogger.plist ``` Điều này sẽ khởi động dịch vụ và gi","severity":"medium","location":"README.md:16"},{"title":"Persistence mechanism","detail":"nền. Để dừng dịch vụ: ```bash launchctl unload ~/Library/LaunchAgents/com.iplogger.plist ``` ## Logs File logs IP được lưu tại","severity":"medium","location":"README.md:24"},{"title":"Executes commands or dynamic code","detail":"#!/usr/bin/env node const { spawn } = require('child_process'); const path = require('path'); const command = process.a","severity":"medium","location":"cli.js:3"},{"title":"Executes commands or dynamic code","detail":"=== 'start') { // Khởi động dịch vụ ở nền const child = spawn('node', [path.join(__dirname, 'index.js')], { detached:","severity":"medium","location":"cli.js:10"},{"title":"Persistence mechanism","detail":"e.log('Để dừng dịch vụ, sử dụng: launchctl unload ~/Library/LaunchAgents/com.iplogger.plist'); } else { console.log('Sử dụng: ip-l","severity":"medium","location":"cli.js:18"},{"title":"Network activity","detail":"ghi log IP function logIp() { try { // Thực thi lệnh curl exec('curl -s ifconfig.me', (error, stdout, stderr) => {","severity":"medium","location":"index.js:18"},{"title":"Network activity","detail":"ction logIp() { try { // Thực thi lệnh curl exec('curl -s ifconfig.me', (error, stdout, stderr) => { if (erro","severity":"medium","location":"index.js:19"},{"title":"Executes commands or dynamic code","detail":"'); const path = require('path'); const { exec } = require('child_process'); const cron = require('node-cron'); // Lấy đường dẫn thư","severity":"medium","location":"index.js:5"},{"title":"System reconnaissance","detail":"gIp() { try { // Thực thi lệnh curl exec('curl -s ifconfig.me', (error, stdout, stderr) => { if (error) {","severity":"low","location":"index.js:19"},{"title":"Download-and-execute chain","detail":"nts', 'ip-logger-err.log')}</string> </dict> </plist>`; fs.writeFileSync(plistPath, plistContent); console.log(`Đã tạo launch agent tại: ${plistPath}`); // Cấp quyền thực thi execSync(`chmod +x ${path","severity":"critical","location":"install.js:36"},{"title":"Executes commands or dynamic code","detail":"require('fs-extra'); const path = require('path'); const { execSync } = require('child_process'); // Lấy thư mục home của ngườ","severity":"medium","location":"install.js:3"},{"title":"Executes commands or dynamic code","detail":"const path = require('path'); const { execSync } = require('child_process'); // Lấy thư mục home của người dùng const homeDir = proc","severity":"medium","location":"install.js:3"},{"title":"Executes commands or dynamic code","detail":"ạo launch agent tại: ${plistPath}`); // Cấp quyền thực thi execSync(`chmod +x ${path.join(__dirname, 'index.js')}`); execSync(`","severity":"medium","location":"install.js:40"},{"title":"Executes commands or dynamic code","detail":"i execSync(`chmod +x ${path.join(__dirname, 'index.js')}`); execSync(`chmod +x ${path.join(__dirname, 'cli.js')}`); console.log","severity":"medium","location":"install.js:41"},{"title":"Persistence mechanism","detail":"omeDir = process.env.HOME || process.env.USERPROFILE; const launchAgentsDir = path.join(homeDir, 'Library', 'LaunchAgents'); const p","severity":"medium","location":"install.js:7"},{"title":"Persistence mechanism","detail":"ILE; const launchAgentsDir = path.join(homeDir, 'Library', 'LaunchAgents'); const plistPath = path.join(launchAgentsDir, 'com.iplogg","severity":"medium","location":"install.js:7"},{"title":"Persistence mechanism","detail":"ir, 'Library', 'LaunchAgents'); const plistPath = path.join(launchAgentsDir, 'com.iplogger.plist'); // Đảm bảo thư mục LaunchAgents","severity":"medium","location":"install.js:8"},{"title":"Persistence mechanism","detail":"launchAgentsDir, 'com.iplogger.plist'); // Đảm bảo thư mục LaunchAgents tồn tại fs.ensureDirSync(launchAgentsDir); // Tạo file pli","severity":"medium","location":"install.js:10"},{"title":"Privilege elevation","detail":"agent tại: ${plistPath}`); // Cấp quyền thực thi execSync(`chmod +x ${path.join(__dirname, 'index.js')}`); execSync(`chmod +x $","severity":"low","location":"install.js:40"},{"title":"Privilege elevation","detail":"(`chmod +x ${path.join(__dirname, 'index.js')}`); execSync(`chmod +x ${path.join(__dirname, 'cli.js')}`); console.log('Cài đặt","severity":"low","location":"install.js:41"},{"title":"Install hook runs a script","detail":"index.js\", \"scripts\": { \"start\": \"node index.js\", \"postinstall\": \"node install.js\" }, \"keywords\": [ \"ip\", \"logger\", \"backgroun","severity":"medium","location":"package.json:7"}],"injection_findings":[],"hits":{"persistence":8,"code_execution":7,"network_egress":2,"reconnaissance":1,"download_execute":1,"privilege":2,"install_hook_shell":1},"iocs":{"urls":[],"domains":["ifconfig.me"],"ips":[]},"score":1,"priority":155,"hints":["install hook postinstall: node install.js","untrusted hosts referenced: ifconfig.me","capability hits: persistence×8, code_execution×7, network_egress×2, privilege×2, reconnaissance×1, download_execute×1, install_hook_shell×1"],"entry_files":["install.js","index.js","./cli.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}