MAL-2026-12200

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

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

Source: amazon-inspector (53f8a19e2cff3bcaf070316f16650d8c1af6714f4c44db56971299ef01c16a25)

Package advertises itself as a trivial date-formatting utility (index.js exports a one-line formatDate wrapper) but ships a package.json postinstall hook that runs on npm install and executes a shell one-liner harvesting installer identity (id, hostname, uname), container and Kubernetes indicators (/proc/1/cgroup, docker.sock, /var/run/secrets/kubernetes.io/serviceaccount/token), capabilities, mounts, network configuration, and environment variables filtered by kube|aws|token|secret|key|pass|role|region|cluster|node|service|container. The aggregated output is POSTed to http://safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/escinfo, an interact.sh/OAST-style callback host. The tarball additionally ships postinstall.js, which reads ~/.ssh directory contents and POSTs a JSON payload (SSH key filenames, username, platform) to a hardcoded IP 124.221.154.135:443/post. The advertised purpose does not match the install-time behavior.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-08-05T08:49:06Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-014429",
            "import_time": "2026-08-05T09:28:10.03614596Z",
            "sha256": "53f8a19e2cff3bcaf070316f16650d8c1af6714f4c44db56971299ef01c16a25",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / simple-date-formatter-util-11

Package

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

Affected ranges

Affected versions

1.*
1.0.0

Database specific

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