@xjokerofficial/baileys@6.1.4
Malicious code in @xjokerofficial/baileys (npm)
Analysis
@xjokerofficial/baileys@6.1.4 is a repackaged fork of the WhatsApp Web library baileys, published under a scope that is not the upstream @whiskeysockets scope and presenting itself as the same package ("WhatsApp API Modification"). Beyond the copied library it ships an undocumented side effect in lib/Socket/newsletter.js: a hardcoded array (local name `yangbrorasakan`) of three base64-encoded WhatsApp newsletter JIDs — decoding to 120363387182851100@newsletter, 120363371199176376@newsletter and 120363421367985094@newsletter — is walked by a setTimeout scheduled 90 seconds after the socket is created. For each entry it issues the WhatsApp w:mex newsletter query with query_id 7871414976211147 (the subscribe/follow mutation) using the caller's authenticated session, so the account that instantiates the client is silently enrolled as a follower of those channels; individual failures are swallowed in an empty catch, and the behaviour is neither documented nor exposed as an option. The same three channel JIDs and publisher branding strings ("ᴀʟᴀɴɴxᴅ | ʜᴏʟᴏᴡ 徴", "XJoker") are also injected as forwardedNewsletterMessageInfo into message, status and poll construction in lib/Socket/luxu.js and lib/Socket/dugong.js, so content generated by a bot using this library advertises the same channels. The manifest additionally pulls code from outside the npm registry at install time — "libsignal": "github:joker-alt244/libsignal-node", a personal-account fork of the signal library — and declares "cache-manager": "^7.2.8", a range that includes the malicious 7.2.10 release. Its preinstall hook (node ./engine-requirements.js) is a Node >= 20 version gate. The harmful behaviour here is unauthorized account manipulation and channel promotion; no credential or token theft was observed in the code.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:36 AM
- analyzed
- Nov 17, 2026, 12:13 AM
hxxps://t[.]me/owner_x_joker Request takedown / dispute →Related advisories
- @rizzkezik/baileys@1.1.1
- shadowmd-baileys@8.6.52
- @nakanoo/baileys@1.0.0
- @sakataa/baileys@5.0.1
- baileys-clean@7.3.2
- @wppconnect/server@2.10.82
- sauruspro-bail@5.4.0
- @rizzkezik/bails@6.1.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.