LWA-2026-13962 confirmed malware

@xzvbailss/baileys@6.0.5

Malicious code in @xzvbailss/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScript

Analysis

This package is an unofficial-scope redistribution of the baileys WhatsApp client library that silently subscribes the user's WhatsApp account to the author's channel. In src/Socket/index.js the socket factory defaults a newsletter JID to 120363430764800148@newsletter and, whenever a 'connection.update' event reports connection === 'open', starts a 10-second timer that calls sock.newsletterFollow('120363430764800148@newsletter') on the linked account, retrying up to three times at 20-second intervals. The behaviour only stops if the caller explicitly passes autoFollowNewsletters: false or a different newsletterAutoFollowId, so any bot built on the package's default configuration follows the channel without the operator's knowledge or consent. The package also hard-depends on a sibling package in the same unofficial scope (@xzvbailss/xzgateway), which is loaded for hash and crypto helpers, and declares an optional @xzvbailss/xz-protect add-on. Its preinstall hook (engine-requirements.js) only verifies Node >= 20.

analyzed by
Leitwacht
first seen
Nov 13, 2026, 08:14 AM
analyzed
Nov 13, 2026, 08:15 AM
weekly installs
695

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.