MAL-2026-11501

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-5/MAL-2026-11501.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11501
Published
2026-08-03T13:33:34Z
Modified
2026-08-04T22:05:15Z
Summary
Malicious code in simple-date-formatter-util-5 (npm)
Details

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

Source: amazon-inspector (cb6c0d10eabca0cef05a136e2ffd68781a965747ad1e75bf9fd9528292bbe429)

The package is advertised as a date-formatting utility but its package.json postinstall script curls cloud-provider instance metadata endpoints (AWS 169.254.169.254, Alibaba 100.100.100.200, Tencent metadata.tencentyun.com and 169.254.0.23), retrieves the IAM security-credentials role, captures the output alongside ls -la /data/, and POSTs the collected data to attacker-controlled Interactsh (oast.fun) out-of-band subdomains such as safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/metadata and ycrqyyjhwepdmhjifyccxss1hrks8lcd2.oast.fun/metadata. The tarball also ships postinstall.js, which enumerates ~/.ssh (reading.pub filenames and directory listing) and POSTs the results with username and platform to hardcoded IP 124.221.154.135:443/post over HTTPS. Behavior fires automatically on npm install, does not match the declared date-formatter purpose, and results in cloud IAM credential and SSH-context exfiltration to attacker infrastructure.

Source: ossf-package-analysis (0eb3042c51ca3c377dd9f4e814a53f4901a805271896f9bfd1619891be4bff5c)

The OpenSSF Package Analysis project identified 'simple-date-formatter-util-5' @ 1.0.0 (npm) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.

  • The package executes one or more commands associated with malicious behavior.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-08-03T14:27:05.541686601Z",
            "modified_time": "2026-08-03T13:33:34Z",
            "sha256": "0eb3042c51ca3c377dd9f4e814a53f4901a805271896f9bfd1619891be4bff5c",
            "source": "ossf-package-analysis",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-011030",
            "import_time": "2026-08-04T21:33:14.414018424Z",
            "modified_time": "2026-08-04T21:22:13Z",
            "sha256": "cb6c0d10eabca0cef05a136e2ffd68781a965747ad1e75bf9fd9528292bbe429",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / simple-date-formatter-util-5

Package

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

Affected ranges

Affected versions

1.*
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": "package.json",
            "sha256": "f5b8cf29eada96d44407b7107761baa980c735d76be6729d96b155e329944086",
            "tlsh": "8b11a08c6961b9731fca8f6ad269074eb910fd471bc01e04d2961cf45d4e7a2707970c"
        },
        {
            "path": "postinstall.js",
            "sha256": "f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef",
            "tlsh": "273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee"
        }
    ],
    "package_integrity": [
        {
            "filename": "simple-date-formatter-util-5-1.0.0.tgz",
            "hashes": {
                "sha1": "f12818eab341217de33a5379785a51aa54451170",
                "sha512_sri": "sha512-tK7IGamLi9O2U7a8SoA79UtQqwXdjZv4YK0W0b9oehDJWF8guqIbeDx/ciuoy8HBEAeFYErcJA9PBzVbLzWM0w=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-5/MAL-2026-11501.json"