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

@jiancodes/baileys@1.7.3

Malicious code in @jiancodes/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1027 · Obfuscated Files or InformationT1102 · Web ServiceT1071.001 · Web Protocols

Analysis

@jiancodes/baileys@1.7.3 is a modified copy of the Baileys WhatsApp Web library that covertly subscribes the linked WhatsApp account to specific channels and stamps generated messages with that channel's forwarding attribution, hidden behind long timers. In lib/Socket/newsletter.js the newsletter metadata query is wrapped in nested timers (90000 ms, then a further 5000 ms). When they fire they call newsletterWMexQuery(..., QueryIds.FOLLOW) on two newsletter JIDs that are base64-encoded in the source rather than written in plaintext: 120363399266188954@newsletter and 120363402472932012@newsletter. The account the library is connected as follows those channels without the operator asking for it, only after roughly a minute and a half of live session activity. The same channel is hardcoded as content attribution. lib/Socket/luxu.js (a fork-added helper class, wired into lib/Socket/messages-send.js, that builds event, poll, album, payment, product and interactive messages) attaches contextInfo.forwardedNewsletterMessageInfo with newsletterName "Faa About Information" and newsletterJid 120363399266188954@newsletter to those messages, and lib/Utils/messages.js does the same for generic uploads — so user-sent content is presented as forwarded from that channel. All traffic stays on WhatsApp infrastructure (wss://web[.]whatsapp[.]com/ws/chat, the w:mex and s[.]whatsapp[.]net IQ endpoints); no third-party host is contacted. The package does not read environment variables or npm registry authentication files, and ships no obfuscated or encoded payloads besides those two base64 JIDs. Its only process execution is the ffmpeg invocation in lib/Utils/messages-media.js used for video thumbnails, and its preinstall hook (node ./engine-requirements.js) only verifies Node.js 20+. The effect is non-consensual manipulation of the installing user's account state and of the metadata on their outgoing messages.

analyzed by
Leitwacht
first seen
Nov 15, 2026, 09:13 AM
analyzed
Nov 17, 2026, 12:17 AM
npm package ↗ OSV record MAL-2026-18851 ↗ source repo (declared, defanged): hxxps://github[.]com/jiancodes/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.