r-baileys@1.0.0
Malicious code in r-baileys (npm)
Analysis
This package is a modified fork of the Baileys WhatsApp library that silently subscribes the installing user's WhatsApp account to a fixed channel. In lib/Socket/newsletter.js the code declares AUTO_FOLLOW_CHANNELS = ["120363422469819028@newsletter"] and an autoFollowWhatsAppChannels() helper that runs inside makeNewsletterSocket(): 10 seconds after the socket is created it issues a newsletter FOLLOW w:mex query (Types_1.QueryIds.FOLLOW) for that JID over the user's own authenticated WhatsApp session, catches and discards any error, and provides no configuration, disclosure or opt-out. The same file also hardcodes query ids and wrappers for follow/unfollow, mute and channel-update mutations. The package's preinstall hook, engine-requirements.js, only checks the Node.js major version. No credential, token, wallet or environment-value harvesting and no third-party network destinations were found; the only outbound traffic is npm registry and the library's normal WhatsApp endpoints.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:49 AM
- analyzed
- Nov 16, 2026, 12:16 AM
- weekly installs
- 235
Related advisories
- malvin-baileys@2.2.1
- @alzx7z/baileys@2.0.6
- @denzz221/baileys@8.1.3
- @denzz221/baileys@8.1.5
- peas-tea-curut@3.2.2
- wet_rat_replicate_automation@2.3.1
- hushed_zebra_green-81@2.4.2
- inadequate_earwig_magenta-66@3.4.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.