MAL-2026-10491

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/assertcoreutils/MAL-2026-10491.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10491
Aliases
  • GHSA-22qr-5q9r-7v6x
Published
2026-07-13T21:00:08Z
Modified
2026-07-15T05:19:45.627269904Z
Summary
Malicious code in assertcoreutils (npm)
Details

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

Source: amazon-inspector (1e53b085bfe045b4aeabe9ad77e1066ab0883f27304197377681191c3118b780)

assertcoreutils impersonates the popular chai assertion library: the README, the chai keyword, the lib/chai/ directory layout, and lib/chai.js are copied verbatim from chai. When a consumer runs require('assertcoreutils'), index.js calls child_process.spawn('node', ['lib/chai/utils/addAssertion.js',...], { detached: true, stdio: 'ignore' }) followed by .unref(), launching a hidden, detached child that survives the parent and produces no console output. lib/chai/utils/addAssertion.js is encoded with obfuscator.io string-array / RC4-base64 obfuscation (hex-named identifiers _0x2ff01b, _0x516b, etc.) that hides a hardcoded HTTPS URL plus query-key; the child performs an HTTPS GET to that URL and passes the response body into new Function('require', body)(require), giving the remote operator arbitrary Node-level code execution on every installer. The combination of typosquat lure, copied legitimate package contents as cover, obfuscated remote URL, detached silent child, and runtime new Function over fetched bytes is a supply-chain dropper.

Source: ghsa-malware (0a5a896a613d498f5908e70719f1b9046f145713db6f66e2c5f4ef101ff46a2b)

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-07-13T21:25:58.52557665Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-13T21:00:08Z",
            "sha256": "1e53b085bfe045b4aeabe9ad77e1066ab0883f27304197377681191c3118b780",
            "id": "IN-MAL-2026-010315",
            "versions": [
                "2.3.2"
            ]
        },
        {
            "import_time": "2026-07-13T21:25:58.657332313Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-13T21:00:17Z",
            "sha256": "2f936d52739c243822b0bbc6aa90d32c07e6c47f5dfd7360316493b1ab00c625",
            "id": "IN-MAL-2026-010316",
            "versions": [
                "2.3.3"
            ]
        },
        {
            "import_time": "2026-07-15T05:00:56.768743974Z",
            "source": "ghsa-malware",
            "modified_time": "2026-07-14T23:14:24Z",
            "sha256": "0a5a896a613d498f5908e70719f1b9046f145713db6f66e2c5f4ef101ff46a2b",
            "id": "GHSA-22qr-5q9r-7v6x",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        }
    ]
}
References
Credits

Affected packages

npm / assertcoreutils

Package

Affected ranges

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

Affected versions

2.*
2.3.2
2.3.3

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/assertcoreutils/MAL-2026-10491.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "0e477809901386e42bb76a346e60741d159eec0e98d8c0409b37c36a91cfe00d",
            "tlsh": "dc214720cd589ee31ada23e8286d001772718d434d54fc1e7baa3b5d0f8d0af657e66d",
            "path": "package.json"
        },
        {
            "sha256": "4291186f3e3d660d46de35995f6a7987936d5b1f6490ac5fe8549b0300b9bb5b",
            "tlsh": "29915e516b807890034fafbb3f2671e9e9265ccbaf04489bd324b82cfd16214d6d6b30",
            "path": "lib/chai/utils/addAssertion.js"
        },
        {
            "sha256": "e045f0b4ff409bcc00b1c2e74f687501740197295b26b41587f94c7d2f39c3d3",
            "path": "index.js",
            "tlsh": "19f0dcfa02c1aa286d31bbf18007442623e3c172f24040a8fafd90d26657b835233cbd"
        }
    ],
    "package_integrity": [
        {
            "filename": "assertcoreutils-2.3.2.tgz",
            "hashes": {
                "sha1": "ae8a7d44b5cea077ea678b6f2a62fdd0eb95918b",
                "sha512_sri": "sha512-S36Qm+jDutxRnbaC0EpPB9S2XYRhiIGQB/ekgoJ4T/NiYXMVVt3crxCqhC3iz6HcJN65JJ4MQDaGC0UKnV2VmQ=="
            }
        }
    ]
}
cwes
[
    {
        "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",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]