Malicious code in @fyxzbail/baileys (npm)
Description
@fyxzbail/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. When the socket connects, code in lib/Socket/socket.js sends the WhatsApp w:mex FOLLOW query for a list downloaded at runtime from raw.github.com/
Update 2026-11-06: 8.0.14 also carries a second covert path. lib/Utils/messages-media.js exports loadBase, which makeNewsletterSocket (lib/Socket/newsletter.js) calls on every socket creation as loadBase(newsletterWMexQuery, QueryIds), with the parameters renamed (a, b). 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, swallowing errors and logging nothing. lib/Utils/messages-media.js sha256 366e7591c350cb61bbd7ae4ff99bc2eeae4a62346debc49e8577aee1bf2b6c4c; the URL decodes to raw.githubusercontent.com/