LWA-2026-14338 MAL-2026-20340 ↗ confirmed malware

@xz-bails/baileys@6.0.11

Malicious code in @xz-bails/baileys (npm)

T1195.002 · Compromise Software Supply Chain

Analysis

This package is an unofficial republication of the Baileys WhatsApp Web library under a lookalike scope, with modified behaviour in the shipped code. lib/Socket/newsletter.js registers a "Newsletter Auto-Follow" routine: whenever the WebSocket connection opens it waits 10 seconds and then sends a w:mex FOLLOW query for the hardcoded channel 120363430764800148@newsletter, retrying up to three times; the routine can be redirected via the newsletterAutoFollowId socket option but otherwise runs unconditionally. Because newsletter.js is in the socket inheritance chain used by the main socket factory, any application that logs in with this package silently subscribes the user's own WhatsApp account to that channel. The package also declares a dependency range on cache-manager (^7.2.8) that resolves to a compromised release, requires it at runtime from lib/Store/make-cache-manager-store.js, pulls an unversioned git dependency (github:tenka-san/libsignal-node) instead of a pinned registry package, and replaces the library entry point with a branded startup banner advertising Telegram contacts (hxxps://t[.]me/XzRzSynxC, hxxps://t[.]me/JustRxVz). The preinstall hook only checks for Node.js 20 or newer. No network endpoint other than the WhatsApp channel JID was observed in the payload.

analyzed by
Leitwacht
first seen
Nov 19, 2026, 10:08 PM
analyzed
Nov 19, 2026, 10:09 PM

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.