MAL-2026-2895

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-as-optimized/MAL-2026-2895.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-2895
Aliases
  • GHSA-g99c-rjxw-f6jg
Published
2026-04-16T20:36:13Z
Modified
2026-04-23T21:14:11.469392Z
Summary
Malicious code in chai-as-optimized (npm)
Details

chai-as-optimized is a malicious npm package that when imported downloads a C2 dropper from https://api.npoint[.]io/0ac7efbc0b6b1a53b305 and executes it (similar to malware in to chai-await-test).


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

Source: amazon-inspector (9aae79ba651c775fb9210d21e89a5fe445914455de8d8ac349099a9eb0e305f5)

The package chai-as-optimized was found to contain malicious code.

Source: ghsa-malware (838c65b4d08471333988eaebfdc666b60a9d9202e80c8190ed84c9a2ba5e620a)

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": [
        {
            "source": "ghsa-malware",
            "modified_time": "2026-04-23T12:15:02Z",
            "id": "GHSA-g99c-rjxw-f6jg",
            "import_time": "2026-04-23T12:38:49.306357579Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "sha256": "838c65b4d08471333988eaebfdc666b60a9d9202e80c8190ed84c9a2ba5e620a"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-04-23T20:43:56Z",
            "import_time": "2026-04-23T20:48:57.964839084Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "sha256": "9aae79ba651c775fb9210d21e89a5fe445914455de8d8ac349099a9eb0e305f5"
        }
    ],
    "iocs": {
        "urls": [
            "https://api.npoint.io/0ac7efbc0b6b1a53b305"
        ]
    }
}
References
Credits

Affected packages

npm / chai-as-optimized

Package

Affected ranges

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

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-as-optimized/MAL-2026-2895.json"
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]