casper-baileys@2.0.0
Malicious code in casper-baileys (npm)
Analysis
casper-baileys@2.0.0 is a repackaged Baileys WhatsApp library that silently subscribes the installer's own WhatsApp account to a third-party channel. In lib/Socket/newsletter.js, makeNewsletterSocket() schedules a 90-second setTimeout that unconditionally sends the WhatsApp w:mex FOLLOW mutation (query id 7871414976211147) for channel 120363322461279856@newsletter — no user prompt, no configuration and no relation to the library's documented API; the same channel JID and names ("z4ph", "shenvn.") are hardcoded into message ContextInfo in lib/Utils/messages.js and into status forwarding in lib/Socket/dugong.js, so forwarded content carries the channel branding. The package also ships a preinstall hook (engine-requirements.js, a Node >=20 version check) and lib/index.js performs a fire-and-forget require-time request to hxxps://raw.githubusercontent[.]com/xhclintohn/client/refs/heads/main/information.json whose response is discarded. No credential, token, wallet or file access was found in the shipped code; the unwanted behaviour is the undisclosed channel auto-follow and the silent install-time request.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 08:54 AM
- analyzed
- Nov 15, 2026, 08:56 AM
- weekly installs
- 835
Related advisories
- amiudmodz@4.1.2
- @hanzzy/baileys-mod@8.0.4
- amiudmodz@5.0.8
- @violetix/baileys@0.6.1
- approve-audit@1.0.0
- @xzvbailss/baileys@5.0.0
- @csc-protocol/token-saver@1.3.2
- raiden-baileys@2.2.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.