LWA-2026-14597 MAL-2026-18711 ↗ confirmed malware

nishiki-bail@1.1.22

Malicious code in nishiki-bail (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1005 · Data from Local SystemT1071.001 · Web ProtocolsT1102 · Web Service

Analysis

nishiki-bail@1.1.22 is a modified copy of the Baileys WhatsApp Web library, published under a renamed package, that silently enrols every account using it into the maintainer's WhatsApp channel. In lib/Socket/newsletter.js the package hardcodes the channel JID 120363329486691279@newsletter and, at socket construction, starts a timer that fires after 120000 ms (2 minutes) and calls autoFollowNewsletter(), issuing the WhatsApp newsletter-join query (QueryIds.FOLLOW / xwa2_newsletter_join_v2) for that channel. There is no configuration option for this; it runs on any account that instantiates the socket. A second injected file, lib/Socket/clutch-handler.js, hardcodes the same JID 120363329486691279@newsletter as the default newsletterJid/newsletterName ("secret-company") in forwarded-newsletter message metadata, so messages relayed through the library carry attribution pointing at that channel; the same file caches the user's WhatsApp contacts (from contacts.upsert, contacts.update, messaging-history.set and messages.upsert) in memory. The package also ships a preinstall script, engine-requirements.js, which only checks for Node.js 20+ and exits if older. No network endpoint outside WhatsApp infrastructure appears in the source: all URL literals resolve to web[.]whatsapp[.]com, call[.]whatsapp[.]com and documentation sites, and no environment-variable, npm-token or credential-file access is present. IOCs: WhatsApp newsletter JID 120363329486691279@newsletter; injected files lib/Socket/newsletter.js and lib/Socket/clutch-handler.js.

analyzed by
Leitwacht
first seen
Nov 28, 2026, 10:51 PM
analyzed
Nov 28, 2026, 10:52 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.