MAL-2026-13697Malicious code in simple-date-formatter-new-10 (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | simple-date-formatter-new-10 | 1.0.0 |
{"modified":"2026-08-10T11:53:39Z","published":"2026-08-10T11:53:39Z","schema_version":"1.7.4","id":"MAL-2026-13697","summary":"Malicious code in simple-date-formatter-new-10 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c1cc0707c5a58067075648ef1c040ceeb07c2550b9f06d53b5c8c41ec167c841)\nsimple-date-formatter-new-10@1.0.0 presents itself as a trivial date-formatting utility but ships two attack payloads that fire when npm installs the package. The package.json postinstall script opens an interactive bash reverse shell over /dev/tcp to 124.221.154.135:4444, giving the publisher remote command execution on the installer's host. A bundled postinstall.js reads the installer's ~/.ssh directory and POSTs its contents together with username and platform to https://124.221.154.135/post, the same C2 endpoint. The advertised date-formatting API (index.js exporting formatDate) is a cover story for the reverse-shell and SSH-key-theft payloads.\n","affected":[{"package":{"ecosystem":"npm","name":"simple-date-formatter-new-10"},"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":[{"path":"package.json","sha256":"5d17ead0cfd3f403ba2b3dd92a1a4713ecc159c7af346c0c2373cde4b44118ef","tlsh":"c1e07d40cd208c7326c185bd855285026b18ee1f00003d0db39b1609a79fe7355fc70e"},{"path":"postinstall.js","sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef","tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee"}],"package_integrity":[{"filename":"simple-date-formatter-new-10-1.0.0.tgz","hashes":{"sha1":"5f1762fc3e8d99f0f7653ecce53fa07d3c60ce76","sha512_sri":"sha512-JFRe2l95Y6b7mr98e9yjIbGRGZHYghkDFNeamdoClnF40lbwehrW9ZYe9x6q5s3hiEWuoIFgo8rrOWoKRLXFTA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-new-10/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-017229","import_time":"2026-08-10T12:24:44.057145262Z","modified_time":"2026-08-10T11:53:39Z","sha256":"c1cc0707c5a58067075648ef1c040ceeb07c2550b9f06d53b5c8c41ec167c841","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0