MAL-2026-14491

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-as-otc/MAL-2026-14491.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14491
Published
2026-08-25T14:10:16Z
Modified
2026-08-25T23:50:05.926722447Z
Summary
Malicious code in chai-as-otc (npm)
Details

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

Source: amazon-inspector (cf771adc4f92ba0d79ea56bdcc1e42db57d1bc7421f0dadb0544f619e16b5ca1)

On module load, lib/initializeCaller.js (required from index.js) runs an IIFE that POSTs the full process.env to a base64-obfuscated endpoint decoding to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df, then passes the HTTP response body to new Function("require", response.data) and invokes it with require, yielding arbitrary Node code execution on the installer's host at load time. The package is framed as a pino-style logging middleware with a 'Successfully synced!' cover string, but the actual behavior is a covert credential harvester and remote loader.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-018737",
            "sha256": "cf771adc4f92ba0d79ea56bdcc1e42db57d1bc7421f0dadb0544f619e16b5ca1",
            "source": "amazon-inspector",
            "versions": [
                "1.0.5"
            ],
            "import_time": "2026-08-25T14:21:11.784318666Z",
            "modified_time": "2026-08-25T14:10:16Z"
        }
    ]
}
References
Credits

Affected packages

npm / chai-as-otc

Package

Affected ranges

Affected versions

1.*
1.0.5

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-as-otc/MAL-2026-14491.json"
indicators
{
    "evidence_files": [
        {
            "path": "lib/initializeCaller.js",
            "sha256": "6ae47651f95735e18c7370aa04d1577ffbd19c20eed57729c777cac6d4a83f4b",
            "tlsh": "9bf08b5d28ba203942ae64e2bf1b14561453f82232d5d865f7cc836a0f8dd4daaa36d8"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "7d9f011889a48e4dbee099af2593c725828b8020",
                "sha512_sri": "sha512-yxbmIFpaG/MgpeCu2fX3eUiFT0ok3+gT2OGVYgWSrfwOl/g/L9b0/EwsxKFtjCgYUVN5ctjVxRlDtiatmF02RA=="
            },
            "filename": "chai-as-otc-1.0.5.tgz"
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]