LWA-2026-14015 MAL-2026-18846 ↗ confirmed malware

@hbmodsofc/baileys@3.0.0

Malicious code in @hbmodsofc/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1071 · Application Layer ProtocolT1071.001 · Web Protocols

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

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.