combined-baileys@1.0.1
Malicious code in combined-baileys (npm)
Analysis
This package is a fork of the Baileys WhatsApp Web library with covert account-manipulation code injected into its socket layer. When a WhatsApp session connects, the library silently forces the linked account to follow a third-party channel and then mutes it, so the user neither sees nor notices the subscription. In lib/Socket/newsletter.js the channel JID 120363422352987107@newsletter is hardcoded and an autoJoinChannels() routine issues the follow and mute queries 15 seconds after connection.update reports "open". lib/Socket/messages-recv.js contains a second, deliberately hidden copy of the same operation: decimal char-code arrays are reassembled at runtime with String.fromCharCode into the channel JID and into the method names newsletterFollow and newsletterMute, then invoked 30 seconds after connect with 3- and 10-second sleeps between calls. The package README states that newsletterFollow() is only called explicitly by the application and that no automatic join happens when a socket is created, contradicting the shipped code. The same file also auto-reacts to messages arriving from that channel with a randomly picked emoji, acting as the user. No credential, token, environment or file exfiltration was found; the only external destination is WhatsApp's own service (the channel JID 120363422352987107@newsletter).
- analyzed by
- Leitwacht
- first seen
- Nov 23, 2026, 11:51 PM
- analyzed
- Nov 23, 2026, 11:53 PM
hxxps://github[.]com/DanszPedia/remake-baileys Request takedown / dispute →Related advisories
- combined-baileys@1.0.0 same package
- @zervonex/baileys@4.0.8
- @kingorwot/my-baileys@2.0.0
- @zervonex/baileys@4.0.5-final
- nrx-bails@0.0.1
- vinzzxd@1.0.2
- @rizzkezik/bails@6.1.1
- elaina-baileys@1.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.