@zennorg/baileys@1.0.1
Malicious code in @zennorg/baileys (npm)
Analysis
@zennorg/baileys is an unofficial-scope copy of the Baileys WhatsApp library ("Modified Baileys" per its README) with hidden code that makes the installer's WhatsApp account follow attacker-chosen channels. In lib/Socket/newsletter.js, inside makeNewsletterSocket (executed whenever a client socket is created for a paired account), two timers fire after 90000 ms and issue the WhatsApp internal GraphQL query "FOLLOW" (query_id 7871414976211147, xmlns w:mex) against the WhatsApp server with newsletter_id values decoded from base64 string literals: 120363420757607688@newsletter and 120363408545432204@newsletter. The parameters are base64-encoded and the calls are wrapped in try/catch so they fail silently, delaying and hiding the subscription from the operator of the installed software. No user action or consent is involved: any application that connects an account through this package silently subscribes that account to the two hardcoded channels. Other noteworthy behaviour: package.json pins "libsignal": "github:ZennOfficial/libsignal-node" (a forked, non-canonical build of the Signal protocol library); the preinstall script only checks for Node >= 20. No network destinations other than web[.]whatsapp[.]com, g[.]whatsapp[.]net and v[.]whatsapp[.]net are present, and no credential, token or environment-variable access appears in the shipped code. Indicators: 120363420757607688@newsletter, 120363408545432204@newsletter, base64 literals MTIwMzYzNDIwNzU3NjA3Njg4QG5ld3NsZXR0ZXI= and MTIwMzYzNDA4NTQ1NDMyMjA0QG5ld3NsZXR0ZXI=, channel-promotion link hxxps://t[.]me/ZxS_Info, dependency github:ZennOfficial/libsignal-node.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:33 AM
- analyzed
- Nov 16, 2026, 12:17 AM
Related advisories
- @jiancodes/baileys@2.0.5
- @kurtucoben/cstm-bail@1.0.0
- dct-baileys@1.0.1
- @dinzid/bailstaov1@0.1.0
- baileys-new-dtz@1.0.0
- dct-dula-dev-baileys@1.0.5
- @devil-fight/baileys@1.0.7
- dct-dula-dev-baileys@1.0.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.