{"id":"MAL-2026-12202","summary":"Malicious code in simple-date-formatter-util-13 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fe9863d2e47d22ca16f42efd68d0c79e0b2730b48984bf68b040f6f920fb70ec)\nPackage presents itself as a date-formatting utility (index.js is a four-line toLocaleDateString wrapper) but its package.json postinstall hook runs an inline shell pipeline that reads /proc/self/status, /dev, /home/work, /wenchain, and /etc/hosts, probes internal Kubernetes API endpoints, and POSTs the collected output to an attacker-controlled Interactsh OAST endpoint at safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/escinfo2. The tarball also ships postinstall.js, which enumerates the installer's ~/.ssh directory, gathers filenames plus username and platform, and POSTs the JSON payload over HTTPS to the hardcoded IP 124.221.154.135. Both behaviors auto-execute on npm install.\n","modified":"2026-08-05T10:06:21.546207233Z","published":"2026-08-05T08:48:57Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-08-05T09:28:09.925031113Z","modified_time":"2026-08-05T08:48:57Z","sha256":"fe9863d2e47d22ca16f42efd68d0c79e0b2730b48984bf68b040f6f920fb70ec","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-014428"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-util-13/v/1.0.0"}],"affected":[{"package":{"name":"simple-date-formatter-util-13","ecosystem":"npm","purl":"pkg:npm/simple-date-formatter-util-13"},"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"fa6d87b2976151129f955aa37b38b8f5319fef55e0db744f745656c368277777","tlsh":"cd1104cae600dc7356cc8595255f02e9fd95994f1e463c0da2c7953c62894f3d1bce2e"},{"path":"postinstall.js","sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef","tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee"}],"package_integrity":[{"filename":"simple-date-formatter-util-13-1.0.0.tgz","hashes":{"sha1":"89fe37b9f5d2da221d06cb5401f2e0d2c6e68bfa","sha512_sri":"sha512-dczKFVE5UFLcttpIHTaBDc6jDxHLsSxIovpoCBK8iWnupTpwGDX6Ut401p3vxIozMXD5dPEabQO4qSIF8ZVlZw=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-13/MAL-2026-12202.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}