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

chai-sdknpm

Advisory published Updated

chai-sdk is a confirmed malicious npm package (MAL-2026-6931) that steals credentials and exfiltrates sensitive data (malicious versions 1.4.7, 1.4.8). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in chai-sdk (npm)

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

What this malware does

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.

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.

Malicious versions

2 flagged
1.4.71.4.8

Indicators of compromise (SHA-256)

73f55ea2148f54488c6dd557e27e14ff69b4368dac55afc8cb336fc3bc59c853
5d26e48f582c55272e3d1a6ea0e11cbc152be5a394e41e25a0ad88e6745e64fd
9192d163b3814064c95a23cb11e218732346628f3109517aab7697c2dcb6d016

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for chai-sdk (2 malicious versions).

  2. If you installed it — respond

    chai-sdk is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If chai-sdk was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. chai-sdk on npm has been identified as a malicious package (versions 1.4.7, 1.4.8 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-xc9r-f5wv-cvxxIN-MAL-2026-009120IN-MAL-2026-009118

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks chai-sdk-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

chai-sdk (npm) malicious package — MAL-2026-6931 | O3 Security