elaina-baileys@1.0.2
Malicious code in elaina-baileys (npm)
Analysis
elaina-baileys is a fork of the Baileys WhatsApp library that silently enrols the running account into the publisher's WhatsApp channel. In lib/Socket/newsletter.js, makeNewsletterSocket() schedules a 90-second setTimeout that fires a WhatsApp w:mex newsletter FOLLOW query for the hardcoded channel JID 120363400911374213@newsletter, wrapped in an empty try/catch so any failure is invisible; it is unconditional and undocumented, so any bot built on this library subscribes the victim's WhatsApp account to that channel shortly after connecting without the operator's knowledge or consent. lib/Utils/messages.js additionally hardcodes the same channel into the contextInfo of generated outgoing messages (newsletterJid 120363400911374213@newsletter, newsletterName "ELAINA INFORMATION", contentType "UPDATE"), stamping the operator's channel attribution onto messages the victim's account sends. No credentials are read and no external host is contacted; the payload acts entirely through the WhatsApp protocol session it is given.
- analyzed by
- Leitwacht
- first seen
- Nov 11, 2026, 12:05 PM
- analyzed
- Nov 11, 2026, 10:51 PM
Related advisories
- elaina-baileys@1.0.0 same package
- wertybailz@1.0.6
- @vanzzo/priject@1.0.2
- @skycodee/baileys@8.0.15
- @zaiinlin/bails@1.0.7
- charape@1.0.21
- charape@1.0.4
- @denzz221/baileys@8.0.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.