Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

chai-check-errornpm

Malicious code in chai-check-error (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-5526
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall chai-check-error

What this malware does

[email protected] impersonates the legitimate chaijs/check-error utility (copied README, author metadata, repository URL, and exported API surface) and adds a malicious payload. package.json declares "postinstall": "node index.js", and index.js calls _initMsgCache() at module top level so the same code path also fires on every require(). _initMsgCache derives an AES-256-CBC key/IV from a hardcoded byte array _d mixed via a _sbox(0x9E3779B1,...) routine, decrypts a 165-byte ciphertext into an HTTPS URL, fetches that URL with require('https').get(...), parses the JSON response, and executes the cookie field as JavaScript through new Function('require', mod)(require). The destination URL is intentionally obfuscated and the surrounding comments frame the routine as a benign "internal message cache" / "locale-aware message formatting" feature, but getMessage never reads _msgCache — the cache framing is cover-story. Any developer who installs this package — whether intentionally or by confusing it with chai's check-error — runs arbitrary attacker-controlled JavaScript under their Node process at install time and again on every import.

Malicious versions

5 flagged
2.1.32.1.52.1.62.1.72.1.8

Indicators of compromise (SHA-256)

6729e2583827bdee33f9ebcd86d9de182db68c10bf9534bf053f370fa12d7ffc
fd1d58d0dff4bf33802ce6bf775a5de16f3b9c726a3bcc9b7a271ac5d25c01f3
72cdc7381ca318201e855e9d562385b4b4e5f18fdd3d4eaf6909f66f544dade4
ef56ad75d91a0e619a82488c117c9b46a21630367ccd7186c66285021b071fde
6e290b42de2cbd4aa74afa6550fc9a0381dfcb0f6996dcdc22254268b391f9f8
b7b136bc4142a0c8e772db77fa7002ae8c5ec90fd55535f70f82b69b263eff09
f56367a495d1618bbda1a2398f36c56249d73f567b459196f25361f93f768514
16db8159d1eab352e1ba3164aa2e63c5469a5a332cd4575496f42ccc1e2771b2

Detection & response playbook

Typosquat
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for chai-check-error (5 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging chai-check-error across your stack and pipelines.

  2. If you installed it — respond

    chai-check-error is a typosquat — you almost certainly intended a legitimately-named package. Remove chai-check-error, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.

  3. Did it already run?

    If chai-check-error was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks chai-check-error before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. chai-check-error on npm has been identified as a malicious package (versions 2.1.3, 2.1.5, 2.1.6, 2.1.7, 2.1.8 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-005301IN-MAL-2026-005300IN-MAL-2026-005685IN-MAL-2026-005686IN-MAL-2026-005806IN-MAL-2026-005807IN-MAL-2026-006784IN-MAL-2026-006843

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks chai-check-error-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

chai-check-error (npm) malicious package — MAL-2026-5526 | O3 Security