{"id":"MAL-2026-11546","summary":"Malicious code in simple-date-formatter-util-6 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e3c4633742f36d29ca968a2ce71c97cb81e9cb2d2c76738742bb39de671cb115)\nPackage advertises a trivial formatDate utility but ships a malicious npm postinstall hook. The postinstall script launches a backgrounded interactive bash reverse shell via /dev/tcp/124.221.154.135/4444, granting a remote party shell access on the installer's host at install time. A companion postinstall.js reads the installer's ~/.ssh directory listing along with OS username/platform information and POSTs it over HTTPS to the same hardcoded IP (124.221.154.135:443, path /post). The advertised formatDate export in index.js is a decoy; the package name pattern and empty author metadata are consistent with a typosquat/decoy lure whose sole functional effect is install-time compromise of the installer machine.\n","modified":"2026-08-04T23:05:30.755676876Z","published":"2026-08-04T22:07:28Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"id":"IN-MAL-2026-011340","import_time":"2026-08-04T22:30:11.733157595Z","modified_time":"2026-08-04T22:07:28Z","sha256":"e3c4633742f36d29ca968a2ce71c97cb81e9cb2d2c76738742bb39de671cb115","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-util-6/v/1.0.0"}],"affected":[{"package":{"name":"simple-date-formatter-util-6","ecosystem":"npm","purl":"pkg:npm/simple-date-formatter-util-6"},"versions":["1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"fc6bb6ac7be9b0492ed1b9a6a7454a7d62673feaccfa3d83aa8b3fdac8174fb2","tlsh":"47e0c640ce208c3337d886bc9a568512aa159e1b002c3c0ab3cb2208a38fab344bc70e","path":"package.json"},{"tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee","path":"postinstall.js","sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef"}],"package_integrity":[{"hashes":{"sha1":"a2536294aa0ef2afb2165bdff1dc3bc64af112da","sha512_sri":"sha512-zam9rHJu1GkUBD7zyvQzIl8OWOc90Vsf1uZ3rb6iqZ/hgOY3gLGkUO1m7xn97HULhYBhSbwV427DMD+SlhWY7w=="},"filename":"simple-date-formatter-util-6-1.0.0.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-6/MAL-2026-11546.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}