Advisory

MAL-2026-13356

Also known as: GHSA-6ffq-phjp-69jj, GHSA-mx7q-w72x-jgrh, GHSA-p9jp-9h4v-vpgv, GHSA-qqcc-hmq5-37p5, GHSA-x29h-74hf-jq7x, MAL-2026-12223, MAL-2026-13348, SNYK-JS-BIGOPSRXPOSTMESSAGE-18551079

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in chai-foundry (npm)

Details

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

Source: amazon-inspector (94e40493af5310c6ee769911bff65e55538911ae3f286fba2a3474f9f8a38940)
[email protected] is a trojan package presenting itself as a chai plugin (README shows chai.use(chaiLeaf)) while its badges, documentation, and internal version metadata (lib/meta.js exports version 9.6.0) are copied from the pino logger. The package's main entry index.js immediately loads ./lib/config, a 3.5MB file that is heavily obfuscated with obfuscator.io-class transforms: a rotated string array of 20,855 entries, two runtime decoder functions, tens of thousands of decoder-wrapper indirections, and control-flow flattening (104,934 deobfuscation changes reported by webcrack). The file begins with a top-level IIFE, so its opaque body runs automatically the moment any consumer calls require('chai-foundry'). All destinations and string constants are reconstructed at runtime, so the payload's network endpoints and behaviors are hidden from static inspection. The combination of identity impersonation, mismatched metadata, and a multi-megabyte control-flow-flattened import-time loader in a package advertised as a small chai plugin is the canonical shape of a hostile npm dropper/stealer.

Source: ghsa-malware (7493f27a9dde87cd284125de3d582e1cd94870a2c4bac65ae9c6f1d764dfbee0)
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.

Severity

Not rated by the source.

Dates

Published
2026-08-05 16:37 UTC
Modified
2026-09-24 09:10 UTC

Affected packages and fixes

chai-foundry

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences