@xsat10/baileys@7.0.2
Malicious code in @xsat10/baileys (npm)
Analysis
@xsat10/baileys is a fork of the Baileys WhatsApp library published under a scope unrelated to the canonical "@whiskeysockets/baileys" name, with covert account manipulation added. In lib/Socket/newsletter.js the makeNewsletterSocket() constructor unconditionally arms a 90-second setTimeout that issues a "w:mex" newsletter FOLLOW query for the hardcoded JID 120363409971362124@newsletter; the resulting error is swallowed, and the delay places the follow well after startup where it is easy to miss. Two further hardcoded channel identifiers are injected into message paths: lib/Socket/dugong.js sets forwardedNewsletterMessageInfo newsletterJid 120363297591152843@newsletter (newsletterName "shenvn.") on forwarded statuses, and lib/Utils/messages.js builds status context with newsletterJid 120363420249672073@newsletter (newsletterName "kyuu ilysm"). README samples advertise the Telegram handle badzzne2. The preinstall script only asserts Node.js >= 20, and no host data is collected or sent anywhere other than WhatsApp's own endpoints (web[.]whatsapp[.]com, v[.]whatsapp[.]net, *.fna[.]whatsapp[.]net).
- analyzed by
- Leitwacht
- first seen
- Nov 10, 2026, 12:04 AM
- analyzed
- Nov 10, 2026, 12:06 AM
Related advisories
- amiudmodz@6.1.2
- @langitdeveloper/baileys@2.2.0
- alip-baileys@1.0.3
- @langitdeveloper/baileys@2.1.0
- @langitdeveloper/baileys@2.0.7
- @daffadevv/baileys@1.0.0
- @kyuu2nd/baileys@2.0.24
- @darling-2002/baileys@1.2.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.