MAL-2026-5611

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/datetime-toolkit/MAL-2026-5611.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5611
Aliases
  • GHSA-hjx5-46c8-fm8p
Published
2026-06-11T07:23:50Z
Modified
2026-08-20T04:00:12.067087406Z
Summary
Malicious code in datetime-toolkit (npm)
Details

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

Source: amazon-inspector (0dc38777296d43cff21c9e56d16208c8925c6dc25b5dec4227823da94096433d)

The package presents itself as a lightweight datetime utility but its main entry datetime.js invokes collect() from ./index.js at top level, so any require('datetime-toolkit') or import immediately triggers exfiltration. collect() serializes the entire process.env, the machine hostname, and a timestamp, AES-256-GCM-encrypts the JSON with a hardcoded key, and POSTs the result over plain HTTP to http://20.160.234.175:5000/collect. Strings and identifiers throughout index.js are obfuscated: the destination URL is built from \uXXXX escapes, the bearer token and encryption key are reverse-string literals ('nekot-terces'secret-token, 'yek-noitpyrcne-tikloot-emitetad'datetime-toolkit-encryption-key), and core APIs (http, crypto, os, process.env, POST, Authorization) are unicode-escaped. The package additionally ships a bin (cli.js) that runs the same collector behind a 'Collecting and sending…' spinner. The benign datetime/React helpers are a cover story; importing the package leaks CI secrets, cloud credentials, source tokens, and database passwords from any installer that loads it.

Source: ghsa-malware (7d997e277a4f73cc68d97e58d8296a07af2ff574861d1277634d628b27187488)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-06-11T07:49:42.482068492Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.4"
            ],
            "id": "IN-MAL-2026-005700",
            "modified_time": "2026-06-11T07:23:50Z",
            "sha256": "0dc38777296d43cff21c9e56d16208c8925c6dc25b5dec4227823da94096433d"
        },
        {
            "import_time": "2026-06-12T19:43:41.137147961Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ],
            "id": "IN-MAL-2026-005861",
            "modified_time": "2026-06-12T19:03:31Z",
            "sha256": "7724b8aace8cd3648792d8094d9434e47daff353c137b9df03849dd3a22b4943"
        },
        {
            "import_time": "2026-08-20T01:06:54.070385997Z",
            "source": "ghsa-malware",
            "id": "GHSA-hjx5-46c8-fm8p",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "modified_time": "2026-08-19T12:12:08Z",
            "sha256": "7d997e277a4f73cc68d97e58d8296a07af2ff574861d1277634d628b27187488"
        },
        {
            "import_time": "2026-08-20T03:49:52.060789518Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.7"
            ],
            "id": "IN-MAL-2026-018445",
            "modified_time": "2026-08-20T03:41:20Z",
            "sha256": "9cabde708bb395da5b87359c85472f1bff9da7e46e1881cad07c247a80ab9ff3"
        },
        {
            "import_time": "2026-08-20T03:49:51.781949124Z",
            "id": "IN-MAL-2026-018442",
            "versions": [
                "1.0.2"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-20T03:40:51Z",
            "sha256": "b312f9578e0376e86e5e623507841aea7c580b6dd906795b9c2eacc90f75f40e"
        },
        {
            "import_time": "2026-08-20T03:49:52.479557695Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ],
            "id": "IN-MAL-2026-018448",
            "modified_time": "2026-08-20T03:41:45Z",
            "sha256": "09550789b072ef4495603e59afe2f2f7cfe4c0c3283fafc1f2c497f2cb3e8820"
        },
        {
            "import_time": "2026-08-20T03:49:51.322499574Z",
            "id": "IN-MAL-2026-018438",
            "versions": [
                "1.0.5"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-20T03:40:15Z",
            "sha256": "09cb23aa526bb73decd054c5367bcbc478550eedc493c255cc7bf257c8a727d5"
        },
        {
            "import_time": "2026-08-20T03:49:51.515386525Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ],
            "id": "IN-MAL-2026-018440",
            "modified_time": "2026-08-20T03:40:34Z",
            "sha256": "2584500ccf0f5a2a68a6498f4be399813c946463e721cf2e7716a5a7216c9e11"
        },
        {
            "import_time": "2026-08-20T03:49:51.961158073Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.6"
            ],
            "id": "IN-MAL-2026-018444",
            "modified_time": "2026-08-20T03:41:12Z",
            "sha256": "6c0bbf5bcbd2bda55a0d08b905d017e2ef718d85a9c40a6fd4039cc97090c2e6"
        }
    ]
}
References
Credits

Affected packages

npm / datetime-toolkit

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/datetime-toolkit/MAL-2026-5611.json"
indicators
{
    "evidence_files": [
        {
            "path": "datetime.js",
            "tlsh": "b771efb020f4a145715bf1ad863b4214752df2213aaed866751db6811fcc82be23faf9",
            "sha256": "1fa02a488e4754612e6fec72eebcc15dc31afcc93854aa000a9e6278330dab8e"
        },
        {
            "path": "index.js",
            "tlsh": "efa19b9193b76efe99b55e00ac34ad29ecfd88a61fc7d12e45177889cc771f04380229",
            "sha256": "7bca411997c23e93e9e7bc1bf8da36e58de5cf17cde3be1d51b985f93c54e3ea"
        }
    ],
    "package_integrity": [
        {
            "filename": "datetime-toolkit-1.0.4.tgz",
            "hashes": {
                "sha1": "d403f1df606f1d29fed505abe2d55f40121113b3",
                "sha512_sri": "sha512-oGbMMUUwBiIiaj9NCKejtUmV4LO2XyiAkXdBrwLTcpX3Huy8I7QEE7CEhifTWZP1fgZZJ6HZyLZRTg5DkAb6og=="
            }
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]