@rizzkezik/bailss@1.2.0
Malicious code in @rizzkezik/bailss (npm)
Analysis
This package is a republished fork of the Baileys WhatsApp Web library whose socket layer has been modified to silently force the connected WhatsApp account to follow two hardcoded channels. lib/Socket/newsletter.js declares newsletterIds = ["120363427469009013@newsletter","120363422660312465@newsletter"] and, 150 seconds after the socket object is constructed, sends a w:mex FOLLOW query (query_id 7871414976211147) for each JID over the victim's authenticated WhatsApp connection. The timer is registered inside makeNewsletterSocket with no option to disable it, and that function is used by makeCommunitiesSocket (lib/Socket/communities.js) and makeUsernameSocket (lib/Socket/username.js), so any client built with this package — not only code that explicitly uses the newsletter API — enrols the account as a follower of the operator's channels. Nothing in the published API or README performs this automatically; the channel/subscribe API is documented, the automatic follow at construction time is not. The 150-second delay keeps the follow outside the window in which an install or first require would normally be inspected. The package also pulls dependencies from non-standard sources rather than the upstream set, including libsignal from a raw repository reference (github:tenka-san/libsignal-node) and whatsapp-rust-bridge@0.5.4; its preinstall hook only performs a Node.js version check. Indicators: the two followed channel JIDs 120363427469009013@newsletter and 120363422660312465@newsletter, w:mex query ids 7871414976211147 (FOLLOW) and 7238632346214362 (UNFOLLOW), and the 150000 ms constructor timer in lib/Socket/newsletter.js.
- analyzed by
- Leitwacht
- first seen
- Nov 18, 2026, 10:37 AM
- analyzed
- Nov 18, 2026, 10:39 AM
Related advisories
- @rizzkezik/bailss@1.0.0 same package
- @rizzkezik/bailseys@6.7.10
- @rizzkezik/baileys@1.1.1
- @rizzkezik/bails@6.1.1
- @silent404/baileys@7.0.4
- @silent404/baileys@7.0.2
- @jexkcode/baileys@1.3.3
- cantarelllaa@1.1.18
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.