alisaai-baileys@10.0.0
Malicious code in alisaai-baileys (npm)
Analysis
alisaai-baileys@10.0.0 is a modified WhatsApp Web (Baileys) fork that covertly enrols the connecting WhatsApp account into two hardcoded channels. In lib/Socket/newsletter.js, makeNewsletterSocket() schedules a 90-second timer that issues a w:mex GraphQL query with query id 7871414976211147 (FOLLOW) against the channel JID stored base64-encoded as "MTIwMzYzNDAxMTUwOTIxNDk1QG5ld3NsZXR0ZXI=" (120363401150921495@newsletter, "Zizz Market"), then a nested 5-second timer performing the same FOLLOW for "MTIwMzYzNDAzODY1NDUwMDc3QG5ld3NsZXR0ZXI=" (120363403865450077@newsletter, "Alisa Information"). The channel identifiers are base64-encoded and every error is swallowed, so the subscription happens without the library user's knowledge, roughly 95 seconds after a socket is opened. The same channel identifiers are also injected into message metadata: forwardedNewsletterMessageInfo with serverMessageId 1 in lib/Socket/setup.js, and a default "Alisa Information" newsletter block in the annotations of lib/Utils/messages.js, so the author's channel content is attached to messages the library sends. The package also fetches version data from hxxps://raw.githubusercontent[.]com/kiuur/bails/master/src/Defaults/baileys-version.json.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 08:47 AM
- analyzed
- Nov 15, 2026, 08:52 AM
- weekly installs
- 1,018
Related advisories
- raiden-baileys@2.2.6
- raiden-baileys@2.2.5
- @trashcore/baileys@4.1.5
- @zanxiky/baileys@1.1.0
- @skycodee/baileys@8.0.15
- @billabilloyy/baileys@1.0.0
- raiden-baileys@2.2.1
- @denzz221/baileys@8.0.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.