{"id":"MAL-2026-12199","summary":"Malicious code in simple-date-formatter-new-8 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4f0bf9e4040cf2940b0ca9a9e5cea7def2c660925afd0ba959ed69d28ca007b7)\nThe package.json postinstall script runs unconditionally on `npm install`, collecting host and internal-network reconnaissance (kernel version via `uname -r`, `/etc/resolv.conf`, `hostname -I`, `/proc/net/route`, internal TCP endpoint probes, and Kubernetes API probes against 10.45.196.x /version and /api/v1/namespaces) and POSTs the aggregated output via `curl` to an attacker-controlled interact.sh OAST collector at http://safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/escinfoF. A sibling postinstall.js enumerates the installer's `~/.ssh` directory and POSTs the contents along with username and platform to a hardcoded remote host at 124.221.154.135:443/post. The declared purpose is a trivial date formatter, which has no legitimate need to read SSH material, enumerate internal networks, or contact OAST infrastructure.\n","modified":"2026-08-05T10:06:20.255994457Z","published":"2026-08-05T08:48:09Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"id":"IN-MAL-2026-014422","import_time":"2026-08-05T09:28:09.367240758Z","modified_time":"2026-08-05T08:48:09Z","sha256":"4f0bf9e4040cf2940b0ca9a9e5cea7def2c660925afd0ba959ed69d28ca007b7","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-new-8/v/1.0.0"}],"affected":[{"package":{"name":"simple-date-formatter-new-8","ecosystem":"npm","purl":"pkg:npm/simple-date-formatter-new-8"},"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":{"package_integrity":[{"filename":"simple-date-formatter-new-8-1.0.0.tgz","hashes":{"sha1":"b2f143ce50f44899f68c2efbc2f62bf002e681d0","sha512_sri":"sha512-8A0eoUyP8eN9I0lgyfqPYDE0DACnnefoKRzg8FrEkYGnwkzToAvczSeS92vWChDcocMMY6GapbWa0b/aw5HFlA=="}}],"evidence_files":[{"sha256":"c0a1ff88d79aef5d0d7d5adc8962ddd7e32c13710c23be2a5c077a47b29da0ba","tlsh":"0221bc54e1209c33cbd98a99ce460a87ae5f984f5dfa3d88c4c34f7cd2496a610f92a5","path":"package.json"},{"path":"postinstall.js","sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef","tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-new-8/MAL-2026-12199.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}