LWA-2026-14538 MAL-2026-18878 ↗ confirmed malware

@randev404/baileys@2.1.1

Malicious code in @randev404/baileys (npm)

T1195.002 · Compromise Software Supply Chain

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
npm package ↗ OSV record MAL-2026-18878 ↗ source repo (declared, defanged): hxxps://github[.]com/ranfemboy/Baileyss Request takedown / dispute →

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.