{"id":"MAL-2026-11502","summary":"Malicious code in simple-date-formatter-new-1 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (628527c388185356d23a8905edf240a32c062afb06c00a58c0101ffd4bcc5182)\nOn npm install, the package.json postinstall hook executes a shell one-liner that attempts to mount the host block device via mknod, enumerates /etc/kubernetes and kubelet pod directories, reads the Kubernetes service-account token at /var/run/secrets/kubernetes.io/serviceaccount/token, lists home directory contents, and POSTs the collected output to http://safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/escinfo4 (an interact.sh OAST callback subdomain). A sibling postinstall.js in the tarball reads the installer's ~/.ssh directory via getSSHKeys() and POSTs a JSON payload containing SSH contents, username, and platform to hardcoded IP 124.221.154.135 on port 443. The package advertises itself as a date formatter but ships no such functionality; its only effect on install is host reconnaissance and credential exfiltration.\n\n## Source: ossf-package-analysis (037638085662ef2cec04655349a528b60480aa642606d96eba158e62161b3a51)\nThe OpenSSF Package Analysis project identified 'simple-date-formatter-new-1' @ 1.0.0 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n","modified":"2026-08-04T22:05:13.897438137Z","published":"2026-08-03T16:30:40Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"import_time":"2026-08-03T17:18:16.855282519Z","modified_time":"2026-08-03T16:30:40Z","sha256":"037638085662ef2cec04655349a528b60480aa642606d96eba158e62161b3a51","source":"ossf-package-analysis"},{"source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-011012","import_time":"2026-08-04T21:33:13.631277844Z","modified_time":"2026-08-04T21:19:36Z","sha256":"628527c388185356d23a8905edf240a32c062afb06c00a58c0101ffd4bcc5182"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-new-1/v/1.0.0"}],"affected":[{"package":{"name":"simple-date-formatter-new-1","ecosystem":"npm","purl":"pkg:npm/simple-date-formatter-new-1"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-new-1/MAL-2026-11502.json","indicators":{"package_integrity":[{"filename":"simple-date-formatter-new-1-1.0.0.tgz","hashes":{"sha512_sri":"sha512-4Iw4qgxuFvKIN8+/9jlxSGWhLuyrtELpPym6yx23dRIM758j9biNaT90sEqTiPEwYX6HOKE2+At9Kz29nXipAA==","sha1":"c366720e255b9b934e248288338ea3a1e9c37a8e"}}],"evidence_files":[{"tlsh":"6911e141f5508e735ecdc9a42c170348b9c2780f1a1a3d1ce5c79a38a19c6f2c4b9f4b","path":"package.json","sha256":"e068eb990db1adbab4e4e18609165339dc6040533259cc93c9119e8466b483b9"},{"path":"postinstall.js","sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef","tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee"}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}