@xzvbailss/baileys@5.0.0
Malicious code in @xzvbailss/baileys (npm)
Analysis
This package is an unofficial republish of the Baileys WhatsApp library under an unrelated npm scope, with modifications that act on the installer's own WhatsApp account. Requiring the library silently enrols the connected account into a hardcoded WhatsApp channel: lib/Socket/newsletter.js defines `YgBroRasakan = ["120363430764800148@newsletter"]` and, 150 seconds after the socket initialises, sends a `w:mex` query with `query_id` FOLLOW for that JID (5s between attempts), without the caller asking for it. The fork also ships lib/Socket/luxu.js, an undocumented broadcast/mass-messaging module (`handlePayment`, `handleProduct`, `handleAlbum`) that builds poll-result, product, album and payment-request messages and stamps relayed messages with forged `forwardedNewsletterMessageInfo` and `status@broadcast` contexts (channels 120363421563597486@newsletter and 120363399602691477@newsletter, forwardingScore 99999) for wide distribution. The preinstall hook runs `node ./engine-requirements.js`, which only aborts on Node < 20. No environment variables, .npmrc contents, npm/GitHub tokens or other credentials are read, and no network requests are made outside WhatsApp/Meta hosts (web[.]whatsapp[.]com, call[.]whatsapp[.]com). IOC: WhatsApp newsletter JID 120363430764800148@newsletter.
- analyzed by
- Leitwacht
- first seen
- Nov 11, 2026, 10:20 PM
- analyzed
- Nov 11, 2026, 10:21 PM
- weekly installs
- 695
Related advisories
- @xzvbailss/baileys@6.0.8 same package
- @xzvbailss/baileys@6.0.5 same package
- @xzvbailss/baileys@6.0.0 same package
- @xzvbailss/baileys@1.0.0 same package
- @csc-protocol/token-saver@1.3.2
- raiden-baileys@2.2.5
- elaina-baileys@1.0.0
- @risacakep/risayap@7.0.0-rc25.14
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.