@rizzkezik/bails@6.1.1
Malicious code in @rizzkezik/bails (npm)
Analysis
@rizzkezik/bails is a modified fork of the Baileys WhatsApp Web API library that silently forces the end user's WhatsApp account to follow the package author's channels. In lib/Socket/newsletter.js the module declares an array of three base64-encoded WhatsApp newsletter JIDs (e.g. MTIwMzYzMzg3MTgyODUxMTAwQG5ld3NsZXR0ZXI= decoding to 120363387182851100@newsletter) and schedules, via setTimeout with a 90000 ms delay, a loop that decodes each JID and issues newsletterWMexQuery(jid, QueryIds.FOLLOW) against WhatsApp's w:mex endpoint, spacing the follows 3 seconds apart and swallowing errors. Because that socket is constructed by every makeWASocket call (lib/Socket/messages-send.js imports it), any WhatsApp bot or app built on this package enrols its account into those channels without the developer's or user's knowledge. The behaviour is deliberately hidden: identifiers are base64-encoded, the array carries an innocuous name, and the 90-second delay separates it from startup. The package documentation claims only a single newsletter follow, while the code performs three. The package also declares a preinstall hook (engine-requirements.js, a Node version check only) and a dependency on cache-manager ^7.2.8. No credential, token or file exfiltration was found in the package; the unwanted behaviour is non-consensual account mutation. IOCs: WhatsApp newsletter JIDs 120363387182851100@newsletter, and the two further base64 JIDs shipped in lib/Socket/newsletter.js; channel invite hxxps://whatsapp[.]com/channel/0029Vb3IiqTL7UVP9A9n0w1x; contact handle hxxps://t[.]me/ranstech.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:19 AM
- analyzed
- Nov 16, 2026, 12:26 AM
Related advisories
- @rizzkezik/bails@6.1.2 same package
- elaina-baileys@1.0.2
- wertybailz@1.0.6
- @vanzzo/priject@1.0.2
- @skycodee/baileys@8.0.15
- @zaiinlin/bails@1.0.7
- charape@1.0.21
- charape@1.0.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.