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

@xz-bails/baileys@6.0.10

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

T1195.002 · Compromise Software Supply ChainT1071.001 · Web ProtocolsT1071 · Application Layer Protocol

Analysis

This package republishes the WhiskeySockets Baileys WhatsApp Web library under an unofficial scope using the canonical `baileys` name, with two behaviours that are not part of upstream. (1) lib/Socket/newsletter.js contains a hidden "XzV Newsletter Auto-Follow" routine: ten seconds after every connection opens it sends a WhatsApp `w:mex` FOLLOW query (query_id 7871414976211147) for the hardcoded channel JID 120363430764800148@newsletter, retrying up to three times at 20s intervals. The only opt-out is an undocumented `autoFollowNewsletters: false` socket config flag (or overriding `newsletterAutoFollowId`), so every bot built on this library silently enrols its WhatsApp account as a follower of the operator's channel. (2) package.json declares a runtime dependency on cache-manager ^7.2.8, satisfied by 7.2.10 — a version separately recorded as malicious — and an unpinned dependency on libsignal: github:tenka-san/libsignal-node, so installation pulls and runs third-party code fetched from a GitHub repository at install time. The declared preinstall hook (engine-requirements.js) only performs a Node.js >=20 version check. Operator contact/redirect: hxxps://t[.]me/XzRzSynxC.

analyzed by
Leitwacht
first seen
Nov 17, 2026, 10:08 AM
analyzed
Nov 17, 2026, 10:09 AM

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.