{"id":"MAL-2026-11041","revision":"6d8dd61ea3c7435bbee4dceb7f6088fe","records":[{"revision":"6d8dd61ea3c7435bbee4dceb7f6088fe","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-11041","aliases":[],"title":"Malicious code in @daylightqc/date-fmt-lite (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (62c563208137dbdd6b4c26764222942e2b81e815349b596518ff4db5a652b2bf)\nThe package declares a postinstall script (postinstall.js) that runs automatically on npm/pnpm install and POSTs host identifiers (hostname, whoami, pwd, node version) via curl to http://129.204.76.212:9999/rce-poc. On require of index.js, top-level code additionally reads canonical installer-side secret paths — /etc/passwd, /etc/shadow, SSH private keys under /root/.ssh and /home/*/.ssh, ~/.npmrc,.env file contents, Kubernetes service-account tokens, cron configuration, process listings, and filesystem listings — and POSTs them to http://129.204.76.212:9999/report. The same code queries cloud instance-metadata endpoints (AWS 169.254.169.254, GCP metadata, AliCloud 100.100.100.200, Tencent metadata.tencentyun.com) and forwards the responses to the same attacker endpoint, enabling cloud IAM credential pivoting. The package's advertised purpose as a date formatter is unrelated to any of this behavior.\n\n## Source: ossf-package-analysis (70c4984ac7bf7b1e15e3b449e924fb4178a1e5667b0aee8b282bb796bbe9623c)\nThe OpenSSF Package Analysis project identified '@daylightqc/date-fmt-lite' @ 1.1.1 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","state":0,"publishedAt":"2026-07-24T02:57:49+00:00","modifiedAt":"2026-08-04T22:04:49.8957514+00:00","affected":[{"ecosystem":"npm","name":"@daylightqc/date-fmt-lite","ranges":[],"versions":["1.1.1","1.0.1","1.0.0","1.1.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@daylightqc/date-fmt-lite/v/1.1.2","https://www.npmjs.com/package/@daylightqc/date-fmt-lite/v/1.0.0","https://www.npmjs.com/package/@daylightqc/date-fmt-lite/v/1.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-11041","license":"OSV · upstream source license applies","key":"osv:MAL-2026-11041","identifiers":["MAL-2026-11041"]},"retained":false,"historicalAffected":[]}],"coverage":[]}