{"id":"MAL-2026-12200","summary":"Malicious code in simple-date-formatter-util-11 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (53f8a19e2cff3bcaf070316f16650d8c1af6714f4c44db56971299ef01c16a25)\nPackage advertises itself as a trivial date-formatting utility (index.js exports a one-line formatDate wrapper) but ships a package.json postinstall hook that runs on `npm install` and executes a shell one-liner harvesting installer identity (id, hostname, uname), container and Kubernetes indicators (/proc/1/cgroup, docker.sock, /var/run/secrets/kubernetes.io/serviceaccount/token), capabilities, mounts, network configuration, and environment variables filtered by kube|aws|token|secret|key|pass|role|region|cluster|node|service|container. The aggregated output is POSTed to http://safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/escinfo, an interact.sh/OAST-style callback host. The tarball additionally ships postinstall.js, which reads ~/.ssh directory contents and POSTs a JSON payload (SSH key filenames, username, platform) to a hardcoded IP 124.221.154.135:443/post. The advertised purpose does not match the install-time behavior.\n","modified":"2026-08-05T10:06:20.513293303Z","published":"2026-08-05T08:49:06Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-08-05T09:28:10.03614596Z","modified_time":"2026-08-05T08:49:06Z","sha256":"53f8a19e2cff3bcaf070316f16650d8c1af6714f4c44db56971299ef01c16a25","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-014429"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-util-11/v/1.0.0"}],"affected":[{"package":{"name":"simple-date-formatter-util-11","ecosystem":"npm","purl":"pkg:npm/simple-date-formatter-util-11"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-11/MAL-2026-12200.json","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":"8abc4265b98f9a40d5ac9aac232056dcc332ff850b713fa43350ae32593ed978","tlsh":"cc11cc69f8349c233ecc89f97c4a125afd828e1f0e462c4c65cbe43462499d9446d299"},{"path":"postinstall.js","sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef","tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee"},{"sha256":"1d5404dbbd7f6a35142bc11e276bcff7b334f927a198399e6b0d9aa09ecfd098","tlsh":"8cc08c94a716b2866326122096a74100be5cc2300b9a6a62b88ec0c00144c12805ef8c","path":"index.js"}],"package_integrity":[{"filename":"simple-date-formatter-util-11-1.0.0.tgz","hashes":{"sha1":"524f64494a857b3e766f322d0d2e6331c8084539","sha512_sri":"sha512-agpBBL2qjUqrmcVSXvZsIePPbv02qyPY8HxzGZKf67m19eHlvlWAxMa6fPW5VW1n1mmKAwKaR5oFHhUbGe1VEg=="}}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}