MAL-2026-12202

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

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

Source: amazon-inspector (fe9863d2e47d22ca16f42efd68d0c79e0b2730b48984bf68b040f6f920fb70ec)

Package presents itself as a date-formatting utility (index.js is a four-line toLocaleDateString wrapper) but its package.json postinstall hook runs an inline shell pipeline that reads /proc/self/status, /dev, /home/work, /wenchain, and /etc/hosts, probes internal Kubernetes API endpoints, and POSTs the collected output to an attacker-controlled Interactsh OAST endpoint at safjhdvsfwzhieemkdzbgr54r0yjhrmok.oast.fun/escinfo2. The tarball also ships postinstall.js, which enumerates the installer's ~/.ssh directory, gathers filenames plus username and platform, and POSTs the JSON payload over HTTPS to the hardcoded IP 124.221.154.135. Both behaviors auto-execute on npm install.

Database specific
{
    "malicious-packages-origins": [
        {
            "source": "amazon-inspector",
            "sha256": "fe9863d2e47d22ca16f42efd68d0c79e0b2730b48984bf68b040f6f920fb70ec",
            "versions": [
                "1.0.0"
            ],
            "import_time": "2026-08-05T09:28:09.925031113Z",
            "modified_time": "2026-08-05T08:48:57Z",
            "id": "IN-MAL-2026-014428"
        }
    ]
}
References
Credits

Affected packages

npm / simple-date-formatter-util-13

Package

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

Affected ranges

Affected versions

1.*
1.0.0

Database specific

indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha1": "89fe37b9f5d2da221d06cb5401f2e0d2c6e68bfa",
                "sha512_sri": "sha512-dczKFVE5UFLcttpIHTaBDc6jDxHLsSxIovpoCBK8iWnupTpwGDX6Ut401p3vxIozMXD5dPEabQO4qSIF8ZVlZw=="
            },
            "filename": "simple-date-formatter-util-13-1.0.0.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "package.json",
            "sha256": "fa6d87b2976151129f955aa37b38b8f5319fef55e0db744f745656c368277777",
            "tlsh": "cd1104cae600dc7356cc8595255f02e9fd95994f1e463c0da2c7953c62894f3d1bce2e"
        },
        {
            "path": "postinstall.js",
            "sha256": "f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef",
            "tlsh": "273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee"
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-13/MAL-2026-12202.json"