@rizzxdc/baileysnpm
Advisory published Updated
@rizzxdc/baileys is a confirmed malicious npm package (MAL-2026-20810) that executes malicious code on install (malicious version 8.0.10). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @rizzxdc/baileys (npm)
What this malware does
@rizzxdc/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. It also joins the account to WhatsApp groups chosen by the publisher. In 8.0.10, lib/Utils/messages-media.js (sha256 79871975d41504fc0f9488240bee7b25244407844b4e980b599d4f46a94bbefd) exports loadBase(n, q, groupAcceptInvite), which makeNewsletterSocket calls on every socket creation. 80 seconds later it fetches hxxps://raw[.]githubusercontent[.]com/rizzxstorr-beep/Asep/refs/heads/main/idchanel.json%20 (stored as base64; 3 channel IDs on 2026-11-06) and calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each, then fetches invite codes from hxxps://raw[.]githubusercontent[.]com/rizzxstorr-beep/Asep/refs/heads/main/group.json%20 (also base64) and calls groupAcceptInvite(code) for each. Errors are swallowed and nothing is logged. Same behaviour as the PhantomSub family (MAL-2026-17342). Amazon Inspector described the same loadBase loop in @rixxcodex/baileys (MAL-2026-16483).
Malicious versions
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for @rizzxdc/baileys (version 8.0.10).
If you installed it — respond
Remove @rizzxdc/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.
Did it already run?
If @rizzxdc/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
References
Credits
- CyberXYZ · finder
Detect & block this
O3 blocks @rizzxdc/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.