LWA-2026-14122 MAL-2026-18886 ↗ confirmed malware

@riyanofficial/baileys-pro@1.0.2

Malicious code in @riyanofficial/baileys-pro (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1036 · Masquerading

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

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.