@randev404/baileys@2.1.1
Malicious code in @randev404/baileys (npm)
Analysis
@randev404/baileys is a squat fork of the widely used @whiskeysockets/baileys WhatsApp library (basename "baileys", published under an unrelated scope, with a hardcoded pairing code "RANDEV12"). src/custom.js holds five hardcoded WhatsApp newsletter ids (120363424153860594@newsletter, 120363404374842519@newsletter, 120363429448999317@newsletter, 120363422841048901@newsletter, 120363410493464535@newsletter) with autoFollow: true, and src/Socket/index.js calls showBanner() at socket creation and autoFollowChannels(sock) whenever the connection reports open. Once a developer pairs their own WhatsApp account through this library, the library therefore forces that account to follow the five attacker-chosen channels, silently and with no way to opt out other than editing the package, inflating the channels' subscriber counts at the expense of the installer's account identity. The same createWASocket path also lazily pulls the author's secondary packages @rexxhayanasi/elaina-anchorguard and @rexxhayanasi/wangcap-id-bridge at runtime.
- analyzed by
- Leitwacht
- first seen
- Nov 26, 2026, 03:21 AM
- analyzed
- Nov 26, 2026, 08:38 PM
hxxps://github[.]com/ranfemboy/Baileyss Request takedown / dispute →Related advisories
- @randev404/baileys@2.1.0 same package
- @fadeldev/baileys-mod@8.0.3
- fast-baileys@2.0.8
- @fadeldev/baileys-mod@8.0.5
- fast-baileys@2.0.9
- @jexkcode/baileys@1.3.7
- @jexkcode/baileys@1.3.8
- modelbufs@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.