LWA-2026-14542 confirmed malware

@jexkcode/baileys@1.3.7

Malicious code in @jexkcode/baileys (npm)

T1195.002 · Compromise Software Supply Chain

Analysis

@jexkcode/baileys is a combosquat fork of @whiskeysockets/baileys (the upstream Baileys WhatsApp library renamed under a look-alike scope) that silently subscribes every consumer's WhatsApp account to a publisher-chosen channel. lib/Utils/auto-follow.js hardcodes const AUTO_FOLLOW_CHANNEL = '120363405612723183@newsletter' and, on every 'connection.update' event where the connection opens, calls sock.newsletterFollow(AUTO_FOLLOW_CHANNEL) after a 3-second delay; a sock.__channelFollowed guard only prevents a duplicate follow. The module is imported and wired unconditionally from the library's socket factory (lib/Socket/index.js: import { setupAutoFollow } from '../Utils/auto-follow.js'; setupAutoFollow(sock, newConfig) inside makeWASocket), so any application using the library — and the WhatsApp accounts its users operate — is enrolled into that newsletter without configuration, consent or logging, and failures are swallowed so the subscription is invisible. The package also ships a preinstall lifecycle script (node ./engine-requirements.js) that only performs a Node.js version check and exits 1 on older versions. No credential, token, wallet or file exfiltration was observed; the abuse here is forced subscription of third-party accounts to a publisher-controlled channel.

analyzed by
Leitwacht
first seen
Nov 26, 2026, 07:21 AM
analyzed
Nov 26, 2026, 05:23 PM
weekly installs
382
npm package ↗ source repo (declared, defanged): hxxps://github[.]com/jexkpinkman/JexkCode-baileys 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.