{"id":"MAL-2026-12201","summary":"Malicious code in simple-date-formatter-util-12 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (cdd747d615be16a4af8508b6151d829c49f8ba2e1d045b8c1cbc9d8f2f219de9)\npackage.json declares a postinstall script that, on npm install, collects installer reconnaissance (id, hostname, uname, cgroups, docker.sock, Linux capabilities, the Kubernetes service-account token at /var/run/secrets/kubernetes.io/serviceaccount/token, mounts, network config, ARP, PID1 cmdline, and environment variables filtered for kube/aws/token/secret/key/pass/role/region/cluster) and POSTs the collected data over plain HTTP to a Project Discovery interact.sh subdomain (http://ycrqyyjhwepdmhjifyccxss1hrks8lcd2.oast.fun/escinfo). The tarball also ships postinstall.js which enumerates the user's ~/.ssh directory and POSTs the contents plus username/platform to a hardcoded IP (https://124.221.154.135/post). The advertised functionality is a one-line formatDate wrapper around toLocaleDateString in index.js, which serves only as a cover for the malicious install-time payload.\n","modified":"2026-08-05T10:06:21.492504725Z","published":"2026-08-05T08:49:14Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-05T08:49:14Z","sha256":"cdd747d615be16a4af8508b6151d829c49f8ba2e1d045b8c1cbc9d8f2f219de9","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-014430","import_time":"2026-08-05T09:28:10.114898047Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-util-12/v/1.0.0"}],"affected":[{"package":{"name":"simple-date-formatter-util-12","ecosystem":"npm","purl":"pkg:npm/simple-date-formatter-util-12"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-12/MAL-2026-12201.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"hashes":{"sha1":"4b95cf777b406a4760058ff6f56dba8790c01f20","sha512_sri":"sha512-9qB3Ypi9ktE5IkJWWbRS5ucjzptUp/OvzsmDLSZtRS1fWIBUU503roli5kUVdxuROzDFisVQ28cbDAh0YA6WFQ=="},"filename":"simple-date-formatter-util-12-1.0.0.tgz"}],"evidence_files":[{"sha256":"90f05e93e1496c4267ff558059c350b72c33437d2f11d03b1f0526fa1ef9f655","tlsh":"1111ef69f8349c233edd89f97c4a1216fc858e1f0e562c0c75cbe434624d9d9446d699","path":"package.json"},{"tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee","path":"postinstall.js","sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef"},{"tlsh":"8cc08c94a716b2866326122096a74100be5cc2300b9a6a62b88ec0c00144c12805ef8c","path":"index.js","sha256":"1d5404dbbd7f6a35142bc11e276bcff7b334f927a198399e6b0d9aa09ecfd098"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}