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

chai-as-promised-plusnpm

chai-as-promised-plus is a confirmed malicious npm package (MAL-2026-13703) that typosquats a legitimate package to trick installs (malicious version 6.1.3). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in chai-as-promised-plus (npm)

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

What this malware does

The package name mimics the widely-used chai-as-promised assertion helper and reuses its README/description. lib/chai-as-promised-plus.js defines the legitimate plugin factory and then overwrites module.exports with require('./config/config'), so any consumer that imports the package loads lib/config/config.js. That file is a 3,546,568-byte single-line javascript-obfuscator.io bundle (rotated string array of length 20721, two decoder functions, control-flow-flattening dispatcher of the form while(!![]){try{...}catch(o){y.push(y.shift())}}, hex-keyed object literals). A test-assertion helper has no legitimate need to ship a multi-megabyte obfuscated blob that replaces its exports at load time; the concealed payload runs in the consumer's Node.js process on require, which is the standard shape of a typosquat supply-chain attack delivering attacker-controlled code to the installer.

Malicious versions

1 flagged
6.1.3

Indicators of compromise (SHA-256)

be02bee1e19ad24ae6091f0793dc22af62e54030388bbdc7d1aa29b078ac17a5

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-as-promised-plus (version 6.1.3). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging chai-as-promised-plus across your stack and pipelines.

  2. If you installed it — respond

    chai-as-promised-plus is a typosquat — you almost certainly intended a legitimately-named package. Remove chai-as-promised-plus, 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-as-promised-plus 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-as-promised-plus 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-as-promised-plus on npm has been identified as a malicious package (version 6.1.3 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-017270

References

Credits

  • Amazon Inspector · finder

Detect & block this

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