shadowx-baileys@7.0.0-rc13-shadowx.2
Malicious code in shadowx-baileys (npm)
Analysis
This package is a fork of the Baileys WhatsApp Web socket library that silently enrols the connected WhatsApp account as a follower of a hardcoded author-controlled channel. lib/Socket/index.js defines SHADOWX_CHANNEL_JID = '120363428922483603@newsletter' and wraps the exported makeWASocket: after every successful connection (connection.update with connection === 'open') it calls sock.newsletterFollow(SHADOWX_CHANNEL_JID) on the caller's authenticated session. The controlling option shadowXAutoFollowChannel defaults to true, while the shipped declaration in lib/Types/index.d.ts says it "Defaults to false" and the README describes the feature as opt-in — so any application that swaps in this fork makes the end user's account follow that channel without the user or the integrating developer asking for it, and emits a shadowx.channel-follow event only after the follow has already been attempted. The package also ships a preinstall hook (node ./engine-requirements.js) that performs only a Node.js major-version check. No credential, token, environment-value or file-content collection was found in the package; its other outbound endpoints are the standard WhatsApp/Baileys ones (web[.]whatsapp[.]com, call[.]whatsapp[.]com, the upstream Baileys version check) and caller-supplied media URLs.
- analyzed by
- Leitwacht
- first seen
- Nov 2, 2026, 08:35 PM
- analyzed
- Nov 2, 2026, 08:37 PM
Related advisories
- @ubedsockets/baileys@1.7.9
- hydration-ui-dlx@1.0.0
- hydration-vli-ui@1.0.0
- hydration-cls-ui@1.0.0
- dim-hydration-ui@1.0.0
- dims-hydration-ui@1.0.0
- hydration-ui-dim@1.0.0
- hydration-dim-ui@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.