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

Package name and metadata impersonate the legitimate chaijs check-error utility (same author string, same repo URL, same description). index.js adds a resolveConfig() function called at module top-level that fetches a base64-obfuscated URL — https://jsonkeeper.com/b/JOCBY (encoded as anNvbmtlZXBlci5jb20vYi9KT0NCWQ== and decoded with Buffer.from(..., 'base64').toString()) — parses the JSON response, and passes the .cookie field into new Function('require',...)(require), evaluating attacker-controlled JavaScript with require injected. The same index.js is wired both as postinstall (node index.js) and as the package main, so the remote-code-execution path fires automatically on npm install and again on every require('chai-check-error'). jsonkeeper.com is a public, mutable, anonymous paste host — the author can swap the executed payload at any time without republishing. The combination of typosquat impersonation, base64-hidden C2, mutable remote payload, and eval-with-require gives the attacker arbitrary code execution on any installer or consumer machine.

Malicious versions

1 flagged
2.1.3

Indicators of compromise (SHA-256)

6729e2583827bdee33f9ebcd86d9de182db68c10bf9534bf053f370fa12d7ffc
fd1d58d0dff4bf33802ce6bf775a5de16f3b9c726a3bcc9b7a271ac5d25c01f3

Frequently asked questions

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

Campaign

IN-MAL-2026-005301IN-MAL-2026-005300

References

Credits

  • Amazon Inspector · finder

Scan your dependencies

O3 Security blocks malicious packages like this at install time and in CI.

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