{"id":"MAL-2026-11501","summary":"Malicious code in simple-date-formatter-util-5 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (cb6c0d10eabca0cef05a136e2ffd68781a965747ad1e75bf9fd9528292bbe429)\nThe package is advertised as a date-formatting utility but its package.json postinstall script curls cloud-provider instance metadata endpoints (AWS 169.254.169.254, Alibaba 100.100.100.200, Tencent metadata.tencentyun.com and 169.254.0.23), retrieves the IAM security-credentials role, captures the output alongside `ls -la /data/`, and POSTs the collected data to attacker-controlled Interactsh (oast.fun) out-of-band subdomains such as safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/metadata and ycrqyyjhwepdmhjifyccxss1hrks8lcd2.oast.fun/metadata. The tarball also ships postinstall.js, which enumerates ~/.ssh (reading.pub filenames and directory listing) and POSTs the results with username and platform to hardcoded IP 124.221.154.135:443/post over HTTPS. Behavior fires automatically on `npm install`, does not match the declared date-formatter purpose, and results in cloud IAM credential and SSH-context exfiltration to attacker infrastructure.\n\n## Source: ossf-package-analysis (0eb3042c51ca3c377dd9f4e814a53f4901a805271896f9bfd1619891be4bff5c)\nThe OpenSSF Package Analysis project identified 'simple-date-formatter-util-5' @ 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:15.122326783Z","published":"2026-08-03T13:33:34Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"import_time":"2026-08-03T14:27:05.541686601Z","modified_time":"2026-08-03T13:33:34Z","sha256":"0eb3042c51ca3c377dd9f4e814a53f4901a805271896f9bfd1619891be4bff5c","source":"ossf-package-analysis"},{"modified_time":"2026-08-04T21:22:13Z","sha256":"cb6c0d10eabca0cef05a136e2ffd68781a965747ad1e75bf9fd9528292bbe429","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-011030","import_time":"2026-08-04T21:33:14.414018424Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-util-5/v/1.0.0"}],"affected":[{"package":{"name":"simple-date-formatter-util-5","ecosystem":"npm","purl":"pkg:npm/simple-date-formatter-util-5"},"versions":["1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"f5b8cf29eada96d44407b7107761baa980c735d76be6729d96b155e329944086","tlsh":"8b11a08c6961b9731fca8f6ad269074eb910fd471bc01e04d2961cf45d4e7a2707970c","path":"package.json"},{"path":"postinstall.js","sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef","tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee"}],"package_integrity":[{"filename":"simple-date-formatter-util-5-1.0.0.tgz","hashes":{"sha1":"f12818eab341217de33a5379785a51aa54451170","sha512_sri":"sha512-tK7IGamLi9O2U7a8SoA79UtQqwXdjZv4YK0W0b9oehDJWF8guqIbeDx/ciuoy8HBEAeFYErcJA9PBzVbLzWM0w=="}}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-5/MAL-2026-11501.json"}}],"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"}]}