{"id":"MAL-2026-12205","revision":"6f1d342d96b7433296fe0b5c22d17e5a","records":[{"revision":"6f1d342d96b7433296fe0b5c22d17e5a","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12205","aliases":[],"title":"Malicious code in simple-date-formatter-util-4 (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f6ec6c790f702e0bb6617bb6bf16ad8b3a154bc7d539938535cde7a2cf205f17)\nThe package's npm postinstall script curls cloud instance-metadata endpoints (AWS 169.254.169.254, Alibaba 100.100.100.200, Tencent metadata.tencentyun.com and 169.254.0.23), retrieves the AWS IAM security-credentials for the attached instance role, lists /data/, and POSTs the collected output to a hardcoded attacker-controlled interact.sh (OAST) subdomain at ycrqyyjhwepdmhjifyccxss1hrks8lcd2.oast.fun. A bundled postinstall.js additionally reads the installer's ~/.ssh directory and POSTs username, platform, and key-file listings via HTTPS to the hardcoded IP 124.221.154.135:443/post. The declared package purpose (date formatting utility) has no relationship to cloud metadata queries or SSH-directory enumeration. Running `npm install` on this package hands short-lived IAM credentials and SSH material to the attacker.\n","state":0,"publishedAt":"2026-08-05T08:49:26+00:00","modifiedAt":"2026-08-05T10:06:22.7828107+00:00","affected":[{"ecosystem":"npm","name":"simple-date-formatter-util-4","ranges":[],"versions":["1.0.1","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/simple-date-formatter-util-4/v/1.0.1","https://www.npmjs.com/package/simple-date-formatter-util-4/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12205","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12205","identifiers":["MAL-2026-12205"]},"retained":false,"historicalAffected":[]}],"coverage":[]}