wertybailz@1.0.10
Malicious code in wertybailz (npm)
Analysis
wertybailz is a WhatsApp Web socket library (a fork of Baileys) that silently enrols the user's WhatsApp account into following the author's own WhatsApp channel. lib/Socket/newsletter.js hardcodes a channel JID, 120363426748858626@newsletter, base64-encoded in a MY_CHANNEL constant, and registers a 'connection.update' listener that fires the first time a socket reports an open connection: it waits 15 seconds, then sends the WhatsApp w:mex FOLLOW query (query id 7871414976211147) with that channel as the newsletter_id target, retrying up to three times with 10-second back-off. The "already followed" flag is reset on every disconnect, so the follow request is re-issued each time the account reconnects. Nothing in the package's options or README enables or describes this — it runs for every consumer of the library, quietly adding the author's channel to the follower list of the installing user's account, an account-state change the user never requested. The rest of the package is conventional WhatsApp plumbing: its only lifecycle hook, engine-requirements.js, just checks for Node.js 20 or newer and exits on older runtimes, and the outbound endpoints in the code are the standard web[.]whatsapp[.]com and call[.]whatsapp[.]com hosts. No environment variables, credential files, tokens or wallet material are read, and no data is transmitted to a third-party host. IOC: WhatsApp channel JID 120363426748858626@newsletter (FOLLOW query id 7871414976211147).
- analyzed by
- Leitwacht
- first seen
- Nov 10, 2026, 12:24 AM
- analyzed
- Nov 10, 2026, 12:25 AM
- weekly installs
- 1,105
Related advisories
- wertybailz@1.0.13 same package
- wertybailz@1.0.6 same package
- wertybailz@1.0.8 same package
- wertybailz@1.0.11 same package
- @arkanhahaha/baileys@1.0.0
- @denzz221/baileys@8.1.3
- @denzz221/baileys@7.0.0
- config-normalizer-node@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.