MAL-2026-13947Malicious code in date-fmt-utils-helper (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | date-fmt-utils-helper | 1.0.0 |
{"modified":"2026-08-13T17:15:48Z","published":"2026-08-13T17:15:48Z","schema_version":"1.7.4","id":"MAL-2026-13947","summary":"Malicious code in date-fmt-utils-helper (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4ae88f68f30ebd69a595537393ce95c4ce5e543b558572769fa2c608fa1b1b0d)\nThe package presents itself as a date-formatting utility, but its index.js is a trivial cover and a source comment explicitly labels the library as a disguise. The package.json postinstall hook runs node postinstall.js on npm install, which opens a TCP connection to the hardcoded remote host 8.135.48.40:4444 and pipes /bin/sh stdio over the socket, with bash -i >& /dev/tcp/... and python3 pty.spawn fallbacks, giving the remote party interactive shell access on the installer's machine at install time. On failure the script beacons error details via HTTP GET to http://8.135.48.40/shell/failed and /shell/error, confirming the destination is attacker-controlled command-and-control infrastructure.\n","affected":[{"package":{"ecosystem":"npm","name":"date-fmt-utils-helper"},"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":"postinstall.js","sha256":"6da6821e4a53bdd6c0e40a6f81a0491b98031c5444cf7582b3ec40c08e4718a2","tlsh":"9811ebe905fad07caf7b247866bfa426211342077819eee4b8ce0b03af125680c123a1"},{"path":"package.json","sha256":"724028717cf7d5d93d5542907b905ed89cac57d01a24ca318a46c81a47fa02d3","tlsh":"7ee0c2368a419d336af446a95e660a06fa109f1f12280c0b70b7654c83a3ab284ae709"}],"package_integrity":[{"filename":"date-fmt-utils-helper-1.0.0.tgz","hashes":{"sha1":"81ff7782b5a63d4d0d5c56e041100188db05bc57","sha512_sri":"sha512-ohY02mqAHhlkAO6V+CZCzc4Txn3ULGvpRLCMLEk6jn7ZZ9c9YQ0qD6Q0xWo8UZDGnBNN1anupAv9R8bXU39nhw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/date-fmt-utils-helper/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-017635","import_time":"2026-08-13T17:24:45.349696053Z","modified_time":"2026-08-13T17:15:48Z","sha256":"4ae88f68f30ebd69a595537393ce95c4ce5e543b558572769fa2c608fa1b1b0d","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0