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

@whatsappbot/baileysnpm

Advisory published Updated

@whatsappbot/baileys is a confirmed malicious npm package (MAL-2026-20812) that opens a backdoor for remote access (malicious versions 1.0.0, 1.0.1, 1.0.2…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @whatsappbot/baileys (npm)

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

What this malware does

@whatsappbot/baileys is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. 1.0.0 to 1.0.4 and 5.0.0 to 6.0.1 use the loadBase loop: lib/Utils/messages-media.js exports loadBase, which makeNewsletterSocket (lib/Socket/newsletter.js) calls on every socket creation as loadBase(newsletterWMexQuery, QueryIds). 80 seconds later it fetches a channel list from a URL stored as base64 and, 5 seconds apart, calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each entry with the victim's authenticated session, swallowing errors. Nothing is logged and the README does not mention it. 1.0.0 to 1.0.4: lib/Utils/messages-media.js sha256 f258858fddcf8192b20eaa1e18f77f88c3459ba9c282d28eb7462b60beeb6bd1, URL hxxps://raw[.]githubusercontent[.]com/whatsapp-bot-2026/Screaper/refs/heads/main/idChannel.json. 5.0.0 to 6.0.1: sha256 fc0a1e064bfac5944650c26d33720c5ee77b553c8e4bc35e5e2b1096ee639cc1, URL hxxps://raw[.]githubusercontent[.]com/whatsapp-bot-2026/Screaper/main/idChannel.json. 1.0.4 also has a second timer in lib/Socket/newsletter.js (sha256 009bca3d6c3d1fc730865dd4f7835519ae140647c620e014af65982d9ab2dca8) that fetches hxxps://raw[.]githubusercontent[.]com/yazxzpedia/Screaper/refs/heads/main/idChannel.json 80 seconds after creation and follows each id. 2.0.0 (lib/Socket/newsletter.js sha256 2acec6ddbd0cac6ebb1529f998f6a8c06b89ae9df205df53451cd1abefaac783) registers a connection.update listener that, when the connection opens, sends newsletterWMexQuery("120363419868857431@newsletter", QueryIds.FOLLOW) and discards any error. The README documents only the user-called newsletterFollow(jid). Same behaviour as the PhantomSub family (MAL-2026-17342). Amazon Inspector described the same loadBase loop in @rixxcodex/baileys (MAL-2026-16483).

Malicious versions

10 flagged
1.0.01.0.11.0.21.0.31.0.42.0.05.0.05.0.16.0.06.0.1

Detection & response playbook

Backdoor / remote access
  1. Find it

    Search your lockfiles and build artifacts for @whatsappbot/baileys (10 malicious versions).

  2. If you installed it — respond

    @whatsappbot/baileys establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.

  3. Did it already run?

    If @whatsappbot/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. @whatsappbot/baileys on npm has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 2.0.0, 5.0.0, 5.0.1, and 2 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

References

Credits

  • CyberXYZ · finder

Detect & block this

O3 blocks @whatsappbot/baileys-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.

Explore

@whatsappbot/baileys (npm) malicious package — MAL-2026-20812 | O3 Security