@kasabaileys/baileys@2.0.2
Malicious code in @kasabaileys/baileys (npm)
Analysis
This package is a fork of the Baileys WhatsApp Web library that silently enrols the linked WhatsApp account into a hardcoded newsletter channel. lib/Socket/newsletter.js declares the constant KASABAILEYS_NEWSLETTER = '120363431179022660@newsletter' and registers a connection.update handler that, as soon as the socket reaches the 'open' state, sends an xwa2_newsletter_join_v2 FOLLOW query for that newsletter JID and silently swallows any error. The follow is unconditional: there is no configuration option to disable it and it is not disclosed anywhere in the README, whose feature list in fact claims the fork has no auto-follow channel behaviour. Any application built on this package therefore subscribes every end user's WhatsApp account to that channel without their knowledge, using the victim's own session and phone number. The preinstall hook (engine-requirements.js) only performs a Node.js 20+ version check and exits on older runtimes; no credential access, remote code loading or obfuscation was found. Indicator: WhatsApp newsletter JID 120363431179022660@newsletter.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 11:32 PM
- analyzed
- Nov 15, 2026, 11:33 PM
Related advisories
- @wanzforme/bails@7.0.0
- dapzsyz-baileysm@0.4.2
- @fadeldev/baileys-mods@8.0.4
- @hanzzy/baileys-mod@8.0.2
- amiudmodz@4.1.2
- @hbmodsofc/baileys@3.0.0
- raiden-baileys@2.2.7
- @violetix/baileys@0.6.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.