MAL-2026-6931

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-sdk/MAL-2026-6931.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6931
Aliases
  • GHSA-xc9r-f5wv-cvxx
Published
2026-07-07T15:20:49Z
Modified
2026-07-09T16:31:54.276537172Z
Summary
Malicious code in chai-sdk (npm)
Details

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

Source: amazon-inspector (9192d163b3814064c95a23cb11e218732346628f3109517aab7697c2dcb6d016)

On require, index.js spawns a detached background node process that runs lib/initializeCaller.js. That module axios.get()s a base64-obfuscated URL (decodes to https://amethyst-lorrin-26.tiiny.site/index.json) and passes the response's cookie field to new Function('require',...) which is then invoked with the real require, giving the remote operator arbitrary Node.js execution inside the installer's process. The URL is stored as a base64 blob decoded via atob() and wrapped in a function named initializeCaller with comments framing it as routine middleware — deliberate cover for the exfiltration/execution primitive. The package is published as chai-sdk but its entrypoint exports an object named pino with pino's DEFAULT_LEVELS, messageKey, and mirror files (lib/proto.js, lib/multistream.js, lib/redaction.js), masquerading as the popular pino logger so consumers integrate it as a benign logging dependency. Import-time fetch is from an anonymous, mutable tiiny.site host with no pinning, hash, or signature — whatever JavaScript the operator serves runs with the consumer's Node privileges.

Source: ghsa-malware (73f55ea2148f54488c6dd557e27e14ff69b4368dac55afc8cb336fc3bc59c853)

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": [
        {
            "sha256": "73f55ea2148f54488c6dd557e27e14ff69b4368dac55afc8cb336fc3bc59c853",
            "id": "GHSA-xc9r-f5wv-cvxx",
            "import_time": "2026-07-07T16:09:37.899835941Z",
            "modified_time": "2026-07-07T15:20:50Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "versions": [
                "1.4.7"
            ],
            "id": "IN-MAL-2026-009120",
            "modified_time": "2026-07-09T15:31:11Z",
            "sha256": "5d26e48f582c55272e3d1a6ea0e11cbc152be5a394e41e25a0ad88e6745e64fd",
            "import_time": "2026-07-09T16:20:42.532418235Z",
            "source": "amazon-inspector"
        },
        {
            "sha256": "9192d163b3814064c95a23cb11e218732346628f3109517aab7697c2dcb6d016",
            "id": "IN-MAL-2026-009118",
            "import_time": "2026-07-09T16:20:42.323813759Z",
            "modified_time": "2026-07-09T15:30:54Z",
            "versions": [
                "1.4.8"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / chai-sdk

Package

Affected ranges

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

Affected versions

1.*
1.4.7
1.4.8

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "1fe0ab2d30f6117a0abe14d59a0b14872413f0313798d852f5ed63e20d46c0dbba3aec",
            "sha256": "b32a339edc73d309ff0ac8968653771e31632780df1866dfcd983695973ebb35",
            "path": "lib/initializeCaller.js"
        },
        {
            "sha256": "1f51184c197102444a2c8a23e4a8e54a6479750420512922fcb5d5f795c33911",
            "tlsh": "0f318545b5f21259126d98c4f6b4a5263cdf9437331b76b1cded93952bce2080032bc7",
            "path": "index.js"
        },
        {
            "sha256": "27c2483ec989e3f47babbe26f8fd623481d8467e987ba7bb5a33d6fde2117501",
            "tlsh": "6d5195a746e46bbe4b6300e1a1c275a9ef5f931cbb69606ddc98912c031d997813250a",
            "path": "README.md"
        }
    ]
}
cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "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."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-sdk/MAL-2026-6931.json"