{"id":"MAL-2026-12203","summary":"Malicious code in simple-date-formatter-util-14 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (043fc72acaebb0b8e96a80ee338611c81567284213ea047911a851d3f00dcc46)\npackage.json declares a postinstall lifecycle script that runs a shell pipeline enumerating /home/work directory contents, probing the internal Kubernetes API server, and reading /proc namespace/mount/capability info, then POSTs the collected output to http://safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/escinfo3 (an interact.sh OAST collector). The tarball also ships postinstall.js, which enumerates the installer's ~/.ssh directory via os.homedir() and POSTs the file listing plus user/platform info to a hardcoded bare-IP endpoint https://124.221.154.135/post. Neither behavior is related to the package's stated date-formatting purpose, and both fire on npm install.\n","modified":"2026-08-05T10:06:21.810960385Z","published":"2026-08-05T08:48:49Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-014427","import_time":"2026-08-05T09:28:09.836595095Z","modified_time":"2026-08-05T08:48:49Z","sha256":"043fc72acaebb0b8e96a80ee338611c81567284213ea047911a851d3f00dcc46"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-util-14/v/1.0.0"}],"affected":[{"package":{"name":"simple-date-formatter-util-14","ecosystem":"npm","purl":"pkg:npm/simple-date-formatter-util-14"},"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-util-14-1.0.0.tgz","hashes":{"sha1":"758d3f5b5798d82c2990774dfd2ba9da17e73e4b","sha512_sri":"sha512-JSvnu6X1RBgmX0VATYgZN1fesRJoP8pvVS1mBDh4TkE7wlV3LWryk4WVW0sawC+b8SzH0U4cVd0V54RdVF0mZQ=="}}],"evidence_files":[{"sha256":"d74ba754dcfc5585c9133746a0ec3e8b1d8dbbc3c8f9fbac820ad06e015a2b88","tlsh":"2011ce99f610ddb32ecdc5c4581b0386fcd2854f1e652c0c91cbaa6ca3c5de740bda9a","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-util-14/MAL-2026-12203.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}