NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

zero-baileysnpm

Advisory published Updated

zero-baileys is a confirmed malicious npm package (MAL-2026-16280) that steals credentials and exfiltrates sensitive data (malicious versions 2.5.5, 2.6.0, 2.7.0…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in zero-baileys (npm)

MAL-2026-16280
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall zero-baileys

What this malware does

zero-baileys is a fork of the Baileys WhatsApp Web library. Static keyword co-occurrence fired on lib/Utils/messages-media.js where require('child_process'), https.request, hostname, and POST all appear in the same file. In Baileys and its forks, messages-media.js handles media encryption/decryption and HTTP(S) uploads/downloads to WhatsApp's own media endpoints; child_process is used for optional ffmpeg/imagemagick invocation for media conversion. The keyword pattern is consistent with that documented functionality rather than with exfiltration: no specific installer-side data read (env, ~/.aws, ~/.ssh, ~/.npmrc, browser stores) is identified being sent to a non-first-party destination, and no install-time lifecycle hook or top-level side effect is present. No hardcoded attacker C2, no obfuscated destination, no credential-database or wallet enumeration, and no persistence artifact is observed. As a Baileys fork the package does carry the category-level concerns of that ecosystem (some forks have added covert side-effects such as auto-follow of author channels using the caller's session), but nothing of that shape is corroborated here.

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

9 flagged
2.5.52.6.02.7.03.2.03.3.03.3.53.4.63.5.03.6.0

Indicators of compromise (SHA-256)

58d472a4390be835fc8ffd5e62a7d3b2bb7270ad6ea651d9cd15bc7abd7735c8
e18ff0786d183c3327cf8291eac1d72b1fa8379e834e367c2341da1e87ab9e32
6f7a8aa73b2a3a5a61a45cc6f0ebeff58bfb23f8589895065fa30849421f4471
7bba1408d87f9a8a96bf598004b06e6401cd0c27f00426493325289f945f394b
948d4f5f2198ddac040fea8c536e74026dd12ae7013a759a19136a950ee02383
b90ea0152c0c8a1d652afcb3d396df4c37d5cccb72e6e8203e1e641069dec971
ec8e3ebb491d88b1ec5cadf6fab5f534f450fa2c34aca4d0ce8f9d31afbc0533
f19ec1b6b5833cb07a7e9eb79a00b18e44e9092b3059f21127effc08d4dfa03b
f9186673e7e793055c9bdd36196b81f8950afa1ce0fa36fd7e208a036abe3005
2805f2695531a97d695d681c476474d3f843fdaa108a5a72c28e636e7026f16a

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for zero-baileys (9 malicious versions).

  2. If you installed it — respond

    zero-baileys 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 zero-baileys 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. zero-baileys on npm has been identified as a malicious package (versions 2.5.5, 2.6.0, 2.7.0, 3.2.0, 3.3.0, 3.3.5, 3.4.6, 3.5.0, and 1 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-020174GHSA-v486-jrrq-rhwxIN-MAL-2026-022098IN-MAL-2026-022062IN-MAL-2026-022069IN-MAL-2026-022084IN-MAL-2026-022068IN-MAL-2026-022099IN-MAL-2026-022083IN-MAL-2026-022097

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks zero-baileys-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