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

@pratamamd/baileysnpm

Advisory published Updated

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

Malicious code in @pratamamd/baileys (npm)

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

What this malware does

@pratamamd/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. 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. In 1.0.1 and 2.0.0 (lib/Utils/messages-media.js sha256 1a8ca088ddf8347271ac34d933946288c1d32c59f03c28ef1bed7440d98f5089) the URL decodes to hxxps://raw[.]githubusercontent[.]com/PratamaMD/SaluranIDs/refs/heads/main/IDs.json (1 channel ID on 2026-11-06). Same behaviour as the PhantomSub family (MAL-2026-17342). Amazon Inspector described the same loadBase loop in @rixxcodex/baileys (MAL-2026-16483).

Malicious versions

2 flagged
1.0.12.0.0

Detection & response playbook

Backdoor / remote access
  1. Find it

    Search your lockfiles and build artifacts for @pratamamd/baileys (2 malicious versions).

  2. If you installed it — respond

    @pratamamd/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 @pratamamd/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. @pratamamd/baileys on npm has been identified as a malicious package (versions 1.0.1, 2.0.0 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 @pratamamd/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

@pratamamd/baileys (npm) malicious package — MAL-2026-20809 | O3 Security