@dekzypedia/baileys@7.0.0-dekzy.3
Malicious code in @dekzypedia/baileys (npm)
Analysis
This package is an unofficial repackaging of the Baileys WhatsApp Web library, published under a scope unrelated to the upstream project and presented as a drop-in replacement (same API, same README, same protocol tree). Its added behaviour silently enrols the installing user's WhatsApp account into a fixed newsletter channel. In lib/Socket/newsletter.js the package hardcodes DEFAULT_AUTO_FOLLOW_CHANNELS = ['120363432937179808@newsletter'] and registers a handler on the socket's connection.update event. The first time the connection reaches state "open" it calls executeWMexQuery({ newsletter_id: jid }, QueryIds.FOLLOW, XWAPaths.xwa2_newsletter_join_v2) for each entry in that list (up to two attempts with 1.5 s backoff), then never runs again on that socket. The effect: merely connecting an account through this library subscribes that account to the publisher's channel. The list can only be changed by passing an autoFollowChannels option, and the default is enabled. No separate C2 or exfiltration endpoint is present in the shipped code: the only outbound destinations are WhatsApp's own service hosts, and auth-state files are read and written only inside the folder supplied by the caller. The single lifecycle hook, engine-requirements.js, only checks the Node.js major version and exits on Node < 20. IOC: WhatsApp newsletter channel JID 120363432937179808@newsletter, enrolled via the newsletter join query in lib/Socket/newsletter.js.
- analyzed by
- Leitwacht
- first seen
- Nov 27, 2026, 12:36 PM
- analyzed
- Nov 27, 2026, 12:38 PM
hxxps://github[.]com/dekzypedia/baileys Request takedown / dispute →Related advisories
- @rizzkezik/bailss@1.0.0
- @kyynotdevv/baileys@2.0.4
- @ikyybella/baileys@1.0.0
- u-paging@0.0.0
- sanka-baileyss@2.6.5
- nakano-baileys@1.0.9
- ceaser-baileys@3.4.15
- nakano-baileys@1.0.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.