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

chai-as-attestednpm

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

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

What this malware does

Package impersonates a pino-style logger (exports module.exports.pino, ships pino-like DEFAULT_LEVELS, keywords fast/logger/stream/json) but the exported middleware spawns a detached node lib/initializeCaller.js that fetches a JSON document from a hardcoded free file-hosting URL (https://amethyst-lorrin-26.tiiny.site/index.json) and executes the cookie field of the response via new Function.constructor('require', response)(require), granting the remote payload full Node require access. The endpoint URL and request headers are base64-encoded inside fake process.env-named constants and decoded at runtime with atob to evade scanners; the fetch is retried 5 times. Any consumer who imports the package and invokes the middleware (or runs the package's smoke script) executes attacker-controlled code on the host. The package name and pino-mimicking API surface are a lure — chai-as-attested has no relation to chai-as-promised or to pino.

Malicious versions

1 flagged
6.0.3

Indicators of compromise (SHA-256)

88e27467366a90f482eb47476458b1f74d5a41ac63371572e527f2e60e4e0b51

Frequently asked questions

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

Campaign

IN-MAL-2026-007072

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-as-attested (npm) malicious package — MAL-2026-6218 | O3 Security