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

@dcloude/baileysnpm

Advisory published Updated

@dcloude/baileys is a confirmed malicious npm package (MAL-2026-20951) that executes malicious code on install (malicious versions 0.0.8, 0.0.9, 0.1.1…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @dcloude/baileys (npm)

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

What this malware does

@dcloude/baileys is a modified copy of the Baileys WhatsApp Web library (@whiskeysockets/baileys) that silently subscribes the user's WhatsApp account to dozens of channels chosen by its author. When an application that imports it creates a socket with makeWASocket, lib/Socket/newsletter.js sends the newsletter FOLLOW query on the user's authenticated session for every channel ID in a hardcoded list: on the first connection in 0.0.8 to 0.1.2 (41 to 53 IDs from DEFAULT_AUTO_FOLLOW_CHANNELS), and 150 seconds after the socket is created in 0.1.3 and 0.1.4 (57 IDs, with no way to turn it off). The code comments call this a transparent auto-follow of "this library's own channel" documented in the README and a LITERACY.md file, but the README does not mention it and the package has no LITERACY.md, and a bundled "channel-follow guard" blocks other code's follow calls while allowing the author's list.

Malicious versions

6 flagged
0.0.80.0.90.1.10.1.20.1.30.1.4

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for @dcloude/baileys (6 malicious versions).

  2. If you installed it — respond

    Remove @dcloude/baileys 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 @dcloude/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. @dcloude/baileys on npm has been identified as a malicious package (versions 0.0.8, 0.0.9, 0.1.1, 0.1.2, 0.1.3, 0.1.4 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Credits

  • InvisiRisk, Inc. · finder

Detect & block this

O3 blocks @dcloude/baileys-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

@dcloude/baileys (npm) malicious package — MAL-2026-20951 | O3 Security