baileys-new-dtz@1.0.0
Malicious code in baileys-new-dtz (npm)
Analysis
A modified fork of the WhatsApp "Baileys" library that covertly enrols the connected WhatsApp account into four hardcoded channels. The package inserts code into the makeNewsletterSocket() factory in lib/Socket/newsletter.js: when a client connects, two 90-second timers (each followed by a second query after 5 seconds) decode four base64 string literals and send them as WhatsApp newsletter FOLLOW queries over the encrypted socket (xmpp xmlns "w:mex", query id Types.QueryIds.FOLLOW). The base64 encoding hides the channel identifiers from review, the 90-second delay places the action outside a short inspection window, and the calls are wrapped in empty try/catch blocks with their responses discarded so nothing is logged or surfaced to the application. The four decoded channel JIDs are 120363400706010828@newsletter, 120363423257544642@newsletter, 120363349457176430@newsletter and 120363421052027188@newsletter. Any application built on this library silently force-follows these channels for its own account without requesting or reporting it. No other network destination, credential access or file collection was found in the tree; the only additional remote reference is a version-metadata JSON fetched from raw[.]githubusercontent[.]com/kiuur/bails.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:05 AM
- analyzed
- Nov 15, 2026, 09:07 AM
- weekly installs
- 355
Related advisories
- dct-dula-dev-baileys@1.0.5
- @devil-fight/baileys@1.0.7
- dct-dula-dev-baileys@1.0.3
- @denzy-official/baileys@1.2.9
- @denzy-official/baileys@1.2.8
- amiudmodz@4.1.2
- alisaai-baileys@10.0.0
- easysalon-tool@1.0.11
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.