@xzvbailss/baileys@1.0.0
Malicious code in @xzvbailss/baileys (npm)
Analysis
This package is a trojanized clone of the Baileys WhatsApp library: the WhiskeySockets source tree, description and MIT licence are shipped intact, with an unauthorised payload injected into lib/Socket/newsletter.js that silently subscribes the end user's WhatsApp account to the author's channel. The file hardcodes the channel JID 120363430764800148@newsletter and, at socket-construction scope, schedules a timer for 150000 ms (150 seconds) whose callback sends a newsletter FOLLOW query (query id 7871414976211147) for that JID. The subscription runs unconditionally: there is no configuration flag, no consent step, and no way to pass a different channel, and it bypasses the library's own newsletterFollow(jid) function, which takes the JID from the caller. Errors are swallowed into the logger and a 5 second pause is inserted between JIDs, so the follow is issued quietly. The package name reuses the canonical Baileys basename under an unofficial scope (the package is also published by a different account than the upstream project), and the homepage and repository fields point to Telegram accounts (t[.]me/XzRzSynxC, t[.]me/JustRxVz) rather than a source repository, so the injected code cannot be reviewed upstream. Related hardcoded channel JIDs appear in lib/Socket/luxu.js (120363421563597486@newsletter, 120363399602691477@newsletter) as forged forwarded-newsletter metadata. No credential, environment-value or file exfiltration was found, and the preinstall hook only checks the Node.js major version. Impact: any application embedding this library follows the author's WhatsApp channel on each end user's account, without the user or the integrating developer knowing.
- analyzed by
- Leitwacht
- first seen
- Nov 11, 2026, 04:47 PM
- analyzed
- Nov 11, 2026, 04:48 PM
- weekly installs
- 695
Related advisories
- @xzvbailss/baileys@6.0.8 same package
- @xzvbailss/baileys@6.0.5 same package
- @xzvbailss/baileys@5.0.0 same package
- @xzvbailss/baileys@6.0.0 same package
- @zlynzee/baileys@1.0.6
- @skycodee/baileys@8.0.8
- @langitdeveloper/baileys@2.2.1
- @daffadevv/baileys@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.