@leonoremods/baileys@1.2.9
Malicious code in @leonoremods/baileys (npm)
Analysis
This package is an unofficial fork of the Baileys WhatsApp multi-device library that silently subscribes the connecting account to publisher-chosen WhatsApp channels, and it pulls in separately-compromised packages as runtime dependencies. On socket creation, src/WAUSync/Protocols/USyncNewsletterProtocol.js issues WhatsApp "mex" FOLLOW queries (iq xmlns w:mex, target s[.]whatsapp[.]net) to a hardcoded list of newsletter IDs on 50 s, 90 s and up to 140 s timers (newsletterSlotDelays); src/Socket/newsletter.js carries the same follows with base64-encoded IDs 120363400362472743@newsletter, 120363426470081124@newsletter, 120363408893555851@newsletter and 120363395678317603@newsletter. The behaviour is on by default — it is skipped only if the integrator passes newsletterAutoFollow: false or supplies their own newsletterAutoFollowIds — so accounts using the library are enrolled into third-party channels without consent. The manifest additionally declares runtime dependencies on cache-manager (^7.2.8) and @cacheable/node-cache (^3.0.1), versions that are themselves compromised; installing this package therefore places attacker-controlled code in the dependency tree of every consumer. No other network destinations, no obfuscation and no credential reads were found in the shipped code.
- analyzed by
- Leitwacht
- first seen
- Nov 27, 2026, 02:21 AM
- analyzed
- Nov 27, 2026, 02:23 AM
hxxps://github[.]com/LeonoreXd/Baileys Request takedown / dispute →Related advisories
- @leonoremods/baileys@1.10.1 same package
- @blckrose/baileys@2.0.11
- supunmd-baileys@0.0.1
- @randev404/baileys@2.1.1
- @fadeldev/baileys-mod@8.0.3
- fast-baileys@2.0.8
- @fadeldev/baileys-mod@8.0.5
- fast-baileys@2.0.9
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.