MAL-2026-12201

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-12/MAL-2026-12201.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12201
Published
2026-08-05T08:49:14Z
Modified
2026-08-05T10:06:21.492504725Z
Summary
Malicious code in simple-date-formatter-util-12 (npm)
Details

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

Source: amazon-inspector (cdd747d615be16a4af8508b6151d829c49f8ba2e1d045b8c1cbc9d8f2f219de9)

package.json declares a postinstall script that, on npm install, collects installer reconnaissance (id, hostname, uname, cgroups, docker.sock, Linux capabilities, the Kubernetes service-account token at /var/run/secrets/kubernetes.io/serviceaccount/token, mounts, network config, ARP, PID1 cmdline, and environment variables filtered for kube/aws/token/secret/key/pass/role/region/cluster) and POSTs the collected data over plain HTTP to a Project Discovery interact.sh subdomain (http://ycrqyyjhwepdmhjifyccxss1hrks8lcd2.oast.fun/escinfo). The tarball also ships postinstall.js which enumerates the user's ~/.ssh directory and POSTs the contents plus username/platform to a hardcoded IP (https://124.221.154.135/post). The advertised functionality is a one-line formatDate wrapper around toLocaleDateString in index.js, which serves only as a cover for the malicious install-time payload.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-08-05T08:49:14Z",
            "id": "IN-MAL-2026-014430",
            "import_time": "2026-08-05T09:28:10.114898047Z",
            "versions": [
                "1.0.0"
            ],
            "source": "amazon-inspector",
            "sha256": "cdd747d615be16a4af8508b6151d829c49f8ba2e1d045b8c1cbc9d8f2f219de9"
        }
    ]
}
References
Credits

Affected packages

npm / simple-date-formatter-util-12

Package

Name
simple-date-formatter-util-12
View open source insights on deps.dev
Purl
pkg:npm/simple-date-formatter-util-12

Affected ranges

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-12/MAL-2026-12201.json"
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-9qB3Ypi9ktE5IkJWWbRS5ucjzptUp/OvzsmDLSZtRS1fWIBUU503roli5kUVdxuROzDFisVQ28cbDAh0YA6WFQ==",
                "sha1": "4b95cf777b406a4760058ff6f56dba8790c01f20"
            },
            "filename": "simple-date-formatter-util-12-1.0.0.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "package.json",
            "tlsh": "1111ef69f8349c233edd89f97c4a1216fc858e1f0e562c0c75cbe434624d9d9446d699",
            "sha256": "90f05e93e1496c4267ff558059c350b72c33437d2f11d03b1f0526fa1ef9f655"
        },
        {
            "path": "postinstall.js",
            "tlsh": "273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee",
            "sha256": "f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef"
        },
        {
            "path": "index.js",
            "tlsh": "8cc08c94a716b2866326122096a74100be5cc2300b9a6a62b88ec0c00144c12805ef8c",
            "sha256": "1d5404dbbd7f6a35142bc11e276bcff7b334f927a198399e6b0d9aa09ecfd098"
        }
    ]
}