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

chai-as-redditnpm

Advisory published Updated

chai-as-reddit is a confirmed malicious npm package (MAL-2026-10939) that executes malicious code on install (malicious versions 7.0.2, 7.0.3, 7.0.4). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in chai-as-reddit (npm)

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

What this malware does

The npm package [email protected] is a trojaned distribution. Its published metadata and README describe a Chai plugin for Reddit API assertions, but the shipped tree (lib/, docs/, docsify/, SECURITY.md, LICENSE, index.d.ts) is copied from the unrelated Pino logger project as camouflage. The real entry point index.js is an unrelated Express-style middleware factory that additionally runs require('./lib/config') at top level. lib/config.js is a ~4 MB heavily obfuscated JavaScript file using obfuscator.io-style transformations (hex-string identifiers, a ~23,890-entry rotating string array, control-flow flattening, encoded number/string wrappers), and it does not exist in genuine Pino. Because index.js loads it at module top level, the opaque payload executes in the installer's Node.js process on any require or import of the package, before any exported API is invoked. The combination of a cover-story package name and README, camouflage sourced from an unrelated project, and an auto-executed obfuscated blob is characteristic of a supply-chain execution payload.

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

3 flagged
7.0.27.0.37.0.4

Indicators of compromise (SHA-256)

2001f9e400a8a00d732bdcdfc5b0744420a7595ec39311cda805ca53fce035ad
2fb4f309fca626e0e4b2fe5d9e8cdd8c9e07631cbcd718673f027bdad4169bd6
8eff17b9d2536e662413c5c7090a1611f8c2813033a03960f9d979f23f2f72e7
c19f2f9105d7998f27d13f9473dc98d895d0c9ba99084e5e42f94a559435906f
adc82b96bc31d519e665aa5394811f4e48f6bdcf5cc9ad017f2eea672f70ecc3
424f164c45309046ee8f1652a1cbeff590bd11c4843e16cb2eef83a9f284c683

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for chai-as-reddit (3 malicious versions).

  2. If you installed it — respond

    Remove chai-as-reddit from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If chai-as-reddit 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-as-reddit on npm has been identified as a malicious package (versions 7.0.2, 7.0.3, 7.0.4 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-vc32-h28h-pmhmIN-MAL-2026-011189IN-MAL-2026-011184IN-MAL-2026-011226RLMA-2026-06124RLUA-2026-10703

References

Credits

  • Amazon Inspector · finder
  • ReversingLabs · finder

Detect & block this

O3 blocks chai-as-reddit-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-as-reddit (npm) malicious package — MAL-2026-10939 | O3 Security