LWA-2026-14374 confirmed malware

@kingorwot/my-baileys@1.0.0

Malicious code in @kingorwot/my-baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1102 · Web ServiceT1071.001 · Web Protocols

Analysis

This package is a modified fork of the Baileys WhatsApp Web library that silently enrols the installer's authenticated WhatsApp account into channels selected by the package author. Two independent mechanisms ship in the code. In lib/Socket/newsletter.js, makeNewsletterSocket schedules a 120000 ms timer that fetches an array of channel identifiers from hxxps://raw[.]githubusercontent[.]com/DGXeon13/strings/refs/heads/main/strings[.]json, then recursively calls the WhatsApp newsletter-follow query (QueryIds.FOLLOW, XWAPaths.xwa2_newsletter_join_v2) for each identifier at 11000 ms intervals; errors are swallowed and nothing is logged, and the remote list can be changed by the author at any time. The bundled CommonJS artifact lib/index.cjs contains a second, separate implementation that hardcodes a base64-encoded channel JID ("MTIwMzYzNDI4OTk2NjI5Njk4QG5ld3NsZXR0ZXI=", decoding to a @newsletter address) and follows it after a 5000 ms delay when the caller enables autoFollow. Neither behaviour is part of upstream Baileys, is opt-in for the first path, or is described in the package documentation. The package also declares a bundled git dependency (whatsapp-rust-bridge-baron from git+hxxps://github[.]com/7ucg/whatsapp-rust-bridge[.]git), a non-registry alias of the Signal library (libsignal: npm:@dreamguyxeon/libsignal-node@1.0.4), and the third-party packages @cacheable/node-cache and cache-manager, pulling unvetted third-party code into every install.

analyzed by
Leitwacht
first seen
Nov 20, 2026, 05:41 AM
analyzed
Nov 20, 2026, 05:42 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.