@poucode/baileys@1.0.2
Malicious code in @poucode/baileys (npm)
Analysis
A fork of the Baileys WhatsApp WebSocket library published under an unofficial @poucode scope that silently subscribes the installer's WhatsApp account to operator-controlled channels. In package/lib/Socket/newsletter.js, at module top level (so it runs as soon as the library is imported, with no option or configuration to enable it), the code declares a hidden array `newsletterIds` containing three hardcoded channel JIDs — 120363429394939370@newsletter, 120363430414713911@newsletter and 120363424058761303@newsletter, annotated "Pou" and "ZansShop" — then schedules a 150000 ms setTimeout whose callback calls newsletterWMexQuery(jid, QueryIds.FOLLOW) for each JID five seconds apart, logging failures as "Newsletter follow failed". These JIDs appear nowhere else in the package; they are not configuration, not documented and not used by any API surface. Approximately 2.5 minutes after any application loads the module, the end user's own authenticated WhatsApp session is enrolled as a follower of those channels, inflating their audience without the account holder's knowledge or consent. The preinstall hook engine-requirements.js contains only a Node.js version check and does not download or execute anything; there is no credential, token, environment or file access in the package.
- analyzed by
- Leitwacht
- first seen
- Nov 13, 2026, 05:43 PM
- analyzed
- Nov 13, 2026, 06:15 PM
- weekly installs
- 1,104
Related advisories
- @poucode/baileys@2.0.1 same package
- @poucode/baileys@2.0.0 same package
- @risacakep/risayap@7.0.0-rc25.15
- sol-wallet-adapater@0.0.0-stage
- @zervonex/baileys@4.0.2
- @violetix/baileys@0.6.1
- @panzproject/baileys@1.0.3
- @xzvbailss/baileys@6.0.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.