@zephkiel/wbails@2.0.8
Malicious code in @zephkiel/wbails (npm)
Analysis
@zephkiel/wbails is a republished fork of the Baileys WhatsApp library whose lib/Socket/newsletter.js silently enrols the end user's WhatsApp account into the author's channels. As soon as the socket module is loaded, a top-level timer fires after a randomized 10-20 second delay (inside a try/catch with an empty catch block) and sends newsletter FOLLOW queries over WhatsApp's w:mex IQ protocol twice, 1.5 seconds apart. The two target channel JIDs are shipped base64-encoded in the source rather than as literals, and decode to 120363403941803439@newsletter and 120363420766981513@newsletter. The package also hardcodes forwardedNewsletterMessageInfo context (120363421563597486@newsletter, 120363399602691477@newsletter, 120363403941803439@newsletter) into messages it constructs, so generated messages carry the author's channel branding. No credential, token or environment exfiltration was observed; the behaviour is unauthorized forced subscription and channel promotion performed under the installer's own WhatsApp session. The preinstall hook (engine-requirements.js) only checks for Node.js version 20 or newer.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:48 AM
- analyzed
- Nov 17, 2026, 12:18 AM
- weekly installs
- 485
hxxps://github[.]com/rsembilaneks-xyz/Baileys Request takedown / dispute →Related advisories
- @zephkiel/wbails@2.0.10 same package
- @jiancodes/baileys@1.7.3
- @rahadi01/baileys@3.0.1
- @xsat10/baileys@7.0.0
- mod-baileys@1.0.3
- mybotthisoneis@1.0.0
- vinzz-baileys@1.0.0
- @vinzzofficial/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.