LWA-2026-14478 confirmed malware

nakano-baileys@1.0.7

Malicious code in nakano-baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1546 · Event Triggered Execution

Analysis

nakano-baileys@1.0.7 is a republished fork of the WhatsApp Web library @whiskeysockets/baileys that carries an injected module, lib/custom.js, which silently enrols the installing user's own WhatsApp account into three hardcoded channels. The public entrypoint lib/Socket/index.js registers a 'connection.update' handler and, on the first event with connection === 'open', calls autoFollowChannels(sock), which loops over the literal JIDs 120363413531701847@newsletter, 120363431680006732@newsletter and 120363412274875891@newsletter and invokes sock.newsletterFollow() on each with two-second spacing and swallowed errors, so the account follows the author's channels without any user action or prompt. The same module sets autoFollow: true by default and the entrypoint overrides sock.requestPairingCode so that pairing falls back to a hardcoded default code, 'NAKANOCJ', instead of a caller-supplied one. The behaviour is hidden behind a decorative console banner (lib/custom.js also prints a rainbow "NAKANO BAILEYS" banner) and is described only in a two-line note in the README. The preinstall hook engine-requirements.js is just a Node.js 20+ version check; no credential files, environment tokens or external endpoints are read or contacted by this version.

analyzed by
Leitwacht
first seen
Nov 24, 2026, 11:37 AM
analyzed
Nov 24, 2026, 11:38 AM
npm package ↗ source repo (declared, defanged): hxxps://github[.]com/nakano-cjs/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.