MAL-2026-18689

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/loader-utils-kit/MAL-2026-18689.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18689
Published
2026-10-26T00:00:00Z
Modified
2026-11-13T04:30:04Z
Summary
Malicious code in loader-utils-kit (npm)
Details

loader-utils-kit ships lib/contract.js, byte-identical to the pino-testkit payload: an obfuscated module that decodes and evaluates code at load. It is a new name for the pino-testkit (MAL-2026-16484) campaign; the file hashes below match that record's evidence. The package presents itself as an ordinary utility, so the code runs on import or install without the user knowing.


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

Source: amazon-inspector (4c8b82f4bc4ed348fbe3bf289dee3c31ea0daca432e56d46237cee30878e0494)

Package loader-utils-kit impersonates webpack's loader-utils: package.json sets author to 'Tobias Koppers @sokra' and repository.url to https://github.com/webpack/loader-utils.git, and the README is copied from upstream. The tarball adds a file lib/contract.js not present in upstream loader-utils, which contains a seeded-permutation string decoder that reconstructs a code body and executes it through the Function constructor after assigning require and module onto global. The file is not referenced from the declared main (lib/index.js) and no lifecycle scripts are declared, so the payload does not fire on npm install or on require('loader-utils-kit') in this version — it activates only if a consumer explicitly requires ./contract. The combination of identity-spoof metadata (author, repository URL, README) with an obfuscated Function-constructor payload shipped as a dormant trap is characteristic of a staged typosquat rather than a legitimate fork.

Database specific
{
    "iocs":  {
        "domains":  [],
        "files":  [
            {
                "digests":  {
                    "sha256":  "c6a9028513792f288fec1d7c217c55d9541d96d436cb119ef0553c3fd49d6c41"
                },
                "paths":  [
                    "lib/contract.js"
                ]
            }
        ],
        "ips":  [],
        "urls":  []
    },
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-022715",
            "import_time":  "2026-11-13T03:36:36.409558637Z",
            "modified_time":  "2026-11-13T03:36:13Z",
            "sha256":  "4c8b82f4bc4ed348fbe3bf289dee3c31ea0daca432e56d46237cee30878e0494",
            "source":  "amazon-inspector",
            "versions":  [
                "4.2.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-022723",
            "import_time":  "2026-11-13T04:13:26.303334671Z",
            "modified_time":  "2026-11-13T03:37:09Z",
            "sha256":  "458db12d6077d844c3e50245f0f34f566d8d4f71a662e7e329f6c616a44afb50",
            "source":  "amazon-inspector",
            "versions":  [
                "4.3.5"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / loader-utils-kit

Package

Name
loader-utils-kit
View open source insights on deps.dev
Purl
pkg:npm/loader-utils-kit

Affected ranges

Affected versions

4.*
4.2.1
4.3.5

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "lib/contract.js",
            "sha256":  "c6a9028513792f288fec1d7c217c55d9541d96d436cb119ef0553c3fd49d6c41",
            "tlsh":  "22a16b125f9676bd58226287ed0e04058d3136fc63f4f0ae604ef5a158e634e433ecea"
        },
        {
            "path":  "package.json",
            "sha256":  "24dca788e0710614a82b7ab2b7f79b2ef5edb04a5cd4d8b2a70c22431045f55e",
            "tlsh":  "ae019020c815dc7307e9969abc1e4143a6a59c079945fc1d77d3636c4b8d2af51f827c"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "loader-utils-kit-4.2.1.tgz",
            "hashes":  {
                "sha1":  "aea3c77928406e6b0e92251229b2b72d2dc48cbd",
                "sha512_sri":  "sha512-vsIsmQmhxULaBngBsQMUO3xb/4n3JanRrpkvK/R1viePa8zTQjuHP0UorIqhTQJh4GZ/VIRZUSdv71Eg3P60jA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/loader-utils-kit/MAL-2026-18689.json"