@xsat10/baileys@7.0.0
Malicious code in @xsat10/baileys (npm)
Analysis
A trojanized clone of the WhatsApp library baileys, published under the unofficial scope @xsat10 with the original basename intact. The shipped code is a fork of @whiskeysockets/baileys with a silently injected channel-enrolment routine. In lib/Socket/newsletter.js, inside makeNewsletterSocket, a setTimeout fires 90 seconds after the socket module is loaded and calls newsletterWMexQuery("120363409971362124@newsletter", QueryIds.FOLLOW) inside an empty try/catch — subscribing the account to a hardcoded WhatsApp channel without the caller ever requesting it. Every other newsletter operation in that file takes the channel id from the caller; only this timer hardcodes one. The same operator's channels are also injected into the user's own outbound traffic: lib/Utils/messages.js adds a newsletter block with newsletterJid 120363420249672073@newsletter ("kyuu ilysm", contentType UPDATE) to outgoing media messages, and lib/Socket/dugong.js adds forwardedNewsletterMessageInfo with newsletterJid 120363297591152843@newsletter ("shenvn.", serverMessageId 1) to status-broadcast contextInfo. There is no external C2 host: the enrolment is performed over the WhatsApp w:mex protocol to S_WHATSAPP_NET, so it blends into the library's normal traffic. The 90-second delay hides the action from short-lived observers. The preinstall hook runs a Node version check only. Installing this package silently enrols the account into attacker-controlled channels and stamps outbound messages with them.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:34 AM
- analyzed
- Nov 17, 2026, 12:17 AM
hxxps://github[.]com/Badzz88/baileys Request takedown / dispute →Related advisories
- @xsat10/baileys@7.0.2 same package
- mod-baileys@1.0.3
- queenjusmy-baileys-v1@1.0.3
- @rizzkezik/bails@6.1.1
- queenjusmy-baileys-v1@1.0.9
- @jiancodes/baileys@2.0.3
- @ravliesh/baileys@1.0.1
- @lubyzzxmods/baileys@2.0.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.