-= Per source details. Do not edit below this line.=-
The package advertises itself as a date-formatting utility but ships a postinstall.js that npm auto-executes on install via scripts.postinstall. postinstall.js opens a TCP connection to the hardcoded remote 8.135.48.40:4444 and wires /bin/bash stdio to that socket, giving the remote endpoint an interactive shell on the installer's machine. Three redundant methods are attempted (python3 pty.spawn, python3 subprocess, and Node net+child_process.spawn of '/bin/bash -i'). The index.js date-formatting code is a cover story unrelated to the postinstall payload.
{
"malicious-packages-origins": [
{
"versions": [
"1.0.0"
],
"modified_time": "2026-08-14T14:12:26Z",
"id": "IN-MAL-2026-017762",
"sha256": "360a94a10ce13edded9e4a99c7c01de1ebfdd73a9af4ec49260f2cec165a609b",
"source": "amazon-inspector",
"import_time": "2026-08-14T14:28:07.005680843Z"
}
]
}{
"package_integrity": [
{
"hashes": {
"sha512_sri": "sha512-hvZBQRZyTceFZ71HT/apoUh7nfMLmAsxRdKem5iy21tQgadfzKhvQDARn26pDDaCF3ELL5nyg0WociATDLVg0w==",
"sha1": "413867c05647bbb16037f2af15cc0c3427395341"
},
"filename": "datefmt-core-utils-1.0.0.tgz"
}
],
"evidence_files": [
{
"path": "postinstall.js",
"tlsh": "f911edf553ebe238efba20b4786e906336a393032782dad8341e47019f535540c92ae1",
"sha256": "26fcaa78b7a6707b39d80122863ca90e2e7d39302810c1c209f9a1e0f327cff3"
}
]
}
[
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
}
]
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/datefmt-core-utils/MAL-2026-14031.json"