@hbmodsofc/baileys@3.0.0
Malicious code in @hbmodsofc/baileys (npm)
Analysis
This package is a modified fork of the Baileys WhatsApp library that silently subscribes every WhatsApp account using it to the author's channel, without disclosure or consent. In lib/Socket/newsletter.js the constant AUTO_FOLLOW_NEWSLETTER is hardcoded to "120363191549232941@newsletter"; the file adds an isFollowingNewsletter helper that queries the newsletter's viewer metadata for viewer_metadata.is_subscribed, and a handler bound to connection.update runs on every socket so that when the connection reaches the 'open' state it issues a newsletter FOLLOW query (QueryIds.FOLLOW) for that channel if the account is not already subscribed. There is no configuration switch, no opt-out and no user notification, so any bot or application built on this library enrols its own paired account into the channel on first connect. The README advertises only a manual channel join link (whatsapp[.]com/channel/0029Vb70uHbD8SE2w5Q9M107) and does not mention the automatic follow. The package is published under an unofficial scope that reuses the canonical Baileys basename while carrying this modified code, and adds a supplementary lib/Socket/hbmods.js feature layer for payment, product, interactive and album messages. A preinstall hook runs engine-requirements.js, which only checks the Node.js version. No other network endpoints beyond web[.]whatsapp[.]com and call[.]whatsapp[.]com appear in the code, and no credential, wallet or file collection was found. IOCs: WhatsApp newsletter JID 120363191549232941@newsletter; channel invite whatsapp[.]com/channel/0029Vb70uHbD8SE2w5Q9M107.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 08:50 AM
- analyzed
- Nov 15, 2026, 08:52 AM
Related advisories
- @hbmodsofc/baileys@3.2.0 same package
- raiden-baileys@2.2.7
- @violetix/baileys@0.6.0
- wertybailz@1.0.10
- @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.