LWA-2026-14115 MAL-2026-18851 ↗ confirmed malware

@jiancodes/baileys@2.0.3

Malicious code in @jiancodes/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1554 · Compromise Host Software BinaryT1027 · Obfuscated Files or InformationT1497.003 · Time Based EvasionT1059.007 · JavaScriptT1071 · Application Layer ProtocolT1105 · Ingress Tool Transfer

Analysis

This package is a re-publish of the baileys WhatsApp Web library under an unofficial scope, and its README instructs users to alias the canonical @whiskeysockets/baileys name to it. Once the library is imported, lib/Socket/newsletter.js silently issues WhatsApp w:mex FOLLOW queries over the user's own connected session, enrolling the user's account in the author's channels without consent. The two channel JIDs are hidden as base64 literals (decoding to 120363399266188954@newsletter and 120363402472932012@newsletter) and are dispatched by a 90-second setTimeout with a nested 5-second timer after module load; the block is preceded by a taunting comment and swallows all errors. The tarball also contains the editor backup lib/Socket/newsletter.js.bak with an earlier variant of the same block listing three additional hardcoded channel JIDs. lib/Utils/generics.js additionally fetches version data from a non-canonical repository at hxxps://raw[.]githubusercontent[.]com/z4phdev/baileys/master/src/Defaults/baileys-version[.]json. The package reads and transmits no credentials, tokens, environment variables or local files.

analyzed by
Leitwacht
first seen
Nov 15, 2026, 09:13 AM
analyzed
Nov 16, 2026, 12:18 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.