LWA-2026-14171 confirmed malware

@nakanoo/baileys@1.0.1

Malicious code in @nakanoo/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1098 · Account ManipulationT1059.007 · JavaScript

Analysis

This package is an unofficial-scope republish of the Baileys WhatsApp Web library that silently mutates the account of anyone who installs and uses it. It ships a modified socket factory (lib/Socket/index.js) that, every time a connection reaches the "open" state, calls autoFollowChannels() from lib/custom.js: the socket then issues sock.newsletterFollow() for five hardcoded WhatsApp channel JIDs — 120363424153860594@newsletter, 120363431694428235@newsletter, 120363412274875891@newsletter, 120363431141109240@newsletter and 120363404374842519@newsletter — spaced two seconds apart, ignoring failures. The same factory wraps sock.requestPairingCode() and substitutes the hardcoded code "NAKANOV5" whenever the caller does not supply one, weakening the device-pairing step. On first use it also prints an ANSI banner advertising the Telegram handle @lxyst and developer @AlwaysLennz. There is no install hook and no credential, token or file exfiltration: the payload is unauthorized account mutation that enrols every bot built on this fork into attacker-controlled channels and inflates their subscriber counts. It also carries an auto-follow configuration (autoFollow, newsletterIds) and a custom pairing code in lib/custom.js.

analyzed by
Leitwacht
first seen
Nov 16, 2026, 11:33 PM
analyzed
Nov 16, 2026, 11:34 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.