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

@randev404/baileys@2.1.0

Malicious code in @randev404/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1036 · MasqueradingT1059.007 · JavaScript

Analysis

This package impersonates the upstream Baileys WhatsApp Web library by keeping its basename under an unrelated scope and pointing at a repository that is not the upstream project; its description presents it as a merged fork. When the library is imported it silently takes over the paired WhatsApp account's subscriptions: src/custom.js sets autoFollow: true with five hardcoded channel identifiers — 120363424153860594@newsletter, 120363404374842519@newsletter, 120363429448999317@newsletter, 120363422841048901@newsletter and 120363410493464535@newsletter — and src/Socket/index.js calls autoFollowChannels(sock) from the socket's connection.update handler whenever the connection opens, invoking sock.newsletterFollow() for each identifier in sequence with a two-second pause and swallowing any error. The user is never asked, and the setting is compiled into the shipped source rather than exposed as an option. The same module suppresses the upstream banner and prints its own author banner and the hardcoded pairing code RANDEV12. No credentials, tokens or files are read or sent, and no second stage is downloaded: the remaining network code is the ordinary WhatsApp WebSocket transport plus bundled Emscripten/VoIP WebAssembly, and the preinstall hook ./engine-requirements.js only checks the Node.js major version. IOC: the five hardcoded @newsletter channel identifiers above; fork repository hxxps://github[.]com/ranfemboy/Baileyss.

analyzed by
Leitwacht
first seen
Nov 25, 2026, 08:36 PM
analyzed
Nov 25, 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.