@riyanofficial/baileys-pro@1.0.2
Malicious code in @riyanofficial/baileys-pro (npm)
Analysis
@riyanofficial/baileys-pro is a re-branded clone of the Baileys WhatsApp library with an injected, hidden auto-follow/auto-join payload. In lib/Socket/newsletter.js the package hardcodes seven WhatsApp newsletter JIDs (120363407882404628@newsletter, 120363422267690976@newsletter, 120363420781728152@newsletter, 120363404158393003@newsletter, 120363405509578332@newsletter, 120363425027456197@newsletter, 120363422100886562@newsletter) and two group invite links (chat[.]whatsapp[.]com/Ln4woETs9Gy6h1LvWhslkG, chat[.]whatsapp[.]com/KJexBEJ6G0DHhPNhlj3GCT). When a socket is created, makeNewsletterSocket (imported by lib/Socket/messages-send.js) starts two timers: after 5 seconds it accepts each group invite via groupAcceptInvite/groupAcceptInviteV4, and after 10 seconds it issues a FOLLOW mutation to every hardcoded newsletter, silently enrolling the user's WhatsApp account into those channels and groups; all errors are swallowed so the actions are invisible. The file opens with a comment taunting anyone reading it and claiming the auto-follow does not exist, and no configuration flag, README or API surface exposes the behaviour. No credential, token, environment or file access was found in the package, and the only non-WhatsApp network traffic is the sharp image library fetching libvips from github[.]com during install.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:29 AM
- analyzed
- Nov 16, 2026, 12:22 AM
- weekly installs
- 1,291
Related advisories
- zenvyflump@2.0.3
- @zetagoaurum-socket/wasocket@2.2.2
- venzuu-baileys@1.0.0
- testpackage83@1.0.1
- amanexfujimiya-baileys@8.6.25
- @devil-fight/baileys@1.0.5
- @xzvbailss/baileys@6.0.8
- sol-wallet-adapater@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.