{"id":"MAL-2026-12196","revision":"9ac38d90716d420db02778219cd70f98","records":[{"revision":"9ac38d90716d420db02778219cd70f98","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12196","aliases":[],"title":"Malicious code in simple-date-formatter-new-4 (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2f5ed3c402677fcfaeac396b55b9db5280445e9b0130133cc311a83f96f2a0de)\nPackage advertises itself as a date-formatting utility but its actual behavior on install is credential theft and internal-network reconnaissance. The `postinstall` script in package.json runs a shell one-liner that probes internal Kubernetes API endpoints, dumps `/etc/resolv.conf` and `ip route`, TCP-scans internal hosts, reads the pod's Kubernetes service-account token from `/var/run/secrets/kubernetes.io/serviceaccount/token`, and POSTs the aggregated output via curl to a hardcoded OAST (interact.sh) collector at http://safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/escinfo8. A bundled `postinstall.js` additionally enumerates `~/.ssh` (listing public keys), collects the local username and platform, and POSTs the JSON to a hardcoded IP 124.221.154.135 over HTTPS; in-file comments describe it as an SSH-key theft C2 demo. The library payload (`index.js`) is a three-line wrapper around `toLocaleDateString`, functioning solely as cover for the install-time attack.\n","state":0,"publishedAt":"2026-08-05T08:47:49+00:00","modifiedAt":"2026-08-05T10:06:18.9428182+00:00","affected":[{"ecosystem":"npm","name":"simple-date-formatter-new-4","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/simple-date-formatter-new-4/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12196","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12196","identifiers":["MAL-2026-12196"]},"retained":false,"historicalAffected":[]}],"coverage":[]}