shadowmd-baileys@8.6.52
Malicious code in shadowmd-baileys (npm)
Analysis
shadowmd-baileys is a re-published fork of the Baileys WhatsApp multi-device library that silently subscribes the running account to a hardcoded WhatsApp channel and injects a channel attribution into messages it sends. lib/Socket/newsletter.js is required for every socket (via makeMessagesSocket in lib/Socket/messages-send.js) and unconditionally schedules setTimeout(async () => { await newsletterWMexQuery("120363423975826201@newsletter", QueryIds.FOLLOW) }, 90000) with all errors swallowed, sending a "w:mex" iq with query id FOLLOW for the hardcoded channel JID 120363423975826201@newsletter inside the user's authenticated session. lib/Socket/idk-bruh.js stamps a second hardcoded channel, 120363407277177688@newsletter ("who know"), into forwarded "status" event messages via forwardedNewsletterMessageInfo. The preinstall hook (engine-requirements.js) only enforces Node.js >= 20. The package has no repository or changelog separating these changes from upstream Baileys, and the behaviour runs without operator consent.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:18 AM
- analyzed
- Nov 17, 2026, 12:10 AM
Related advisories
- shadowmd-baileys@8.6.90 same package
- @nakanoo/baileys@1.0.0
- @sakataa/baileys@5.0.1
- baileys-clean@7.3.2
- @wppconnect/server@2.10.82
- sauruspro-bail@5.4.0
- @rizzkezik/bails@6.1.1
- zenvyflump@2.0.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.