LWA-2026-13636 MAL-2026-18600 ↗ confirmed malware

@ubedsockets/baileys@1.6.1

Malicious code in @ubedsockets/baileys (npm)

T1195.002 · Compromise Software Supply Chain

Analysis

A republished fork of the Baileys WhatsApp Web library that ships under a name colliding with the canonical @whiskeysockets/baileys package and adds hidden behaviour to every deployment that installs it. Observed in the shipped code: 1. Host lock / kill switch — lib/Socket/socket.js runs at socket creation: it requests hxxps://api[.]ipify[.]org?format=json, compares the returned address against a hardcoded 20[.]207[.]192[.]84, and on any mismatch (or if the lookup fails) logs "[SECURITY] Unauthorized IP Detected"/"[SECURITY] This version of Baileys is locked to 20[.]207[.]192[.]84" and calls process.exit(1). Every consumer whose host does not egress from that single address is terminated at runtime unless they patch the file. 2. Forced newsletter subscription — lib/Socket/newsletter.js holds the newsletter JID obfuscated as the base64 constant "MTIwMzYzNDIzMTcwNDI0ODI4QG5ld3NsZXR0ZXI=" (decodes to 120363423170424828@newsletter). A setTimeout of 90000 ms fires after socket creation and issues a WhatsApp "w:mex" newsletter mutation with query id 7871414976211147 (FOLLOW) against that JID, enrolling the operator's WhatsApp account into the author's channel silently, with errors swallowed. 3. Message metadata injection — lib/Socket/setup.js sets forwardedNewsletterMessageInfo on album, event and status-broadcast messages it relays, pointing at newsletter JIDs 120363423295236859@newsletter and 0@newsletter with senderName "vyzen"/"veyzen", newsletterName "WhatsApp", forwardingScore 99999 and priority "high", so traffic sent by downstream bots advertises the author's channel. It also auto-reacts (AUTO_REACT_NEWSLETTER / thumbs-up) to every newsletter message it fetches. The packages declare no install hooks; the payload runs when the library is loaded and a socket is opened. Package metadata links hxxps://wa[.]me/6285147777105 and the channel hxxps://whatsapp[.]com/channel/0029Vb6VdC18Pgs9uRZAra3b. All published versions of the package (1.0.0 through 1.6.7) carry the same injected code.

analyzed by
Leitwacht
first seen
Nov 4, 2026, 06:35 AM
analyzed
Nov 4, 2026, 06:36 AM
weekly installs
120

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.