LWA-2026-14556 confirmed malware

fast-baileys@2.0.8

Malicious code in fast-baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web ProtocolsT1102 · Web ServiceT1027 · Obfuscated Files or InformationT1497.003 · Time Based Evasion

Analysis

fast-baileys@2.0.8 is a WhatsApp Web API library (a Baileys derivative) carrying a hidden remote-control hook in lib/Socket/newsletter.js. Inside makeNewsletterSocket(), the function every session goes through, a timer is installed that fires 90 seconds after start and hides its configuration endpoint as a base64 literal which it decodes to hxxps://dew-md-data[.]pages[.]dev/channel[.]json. It then fetches that JSON with node-fetch, parses it as an array of WhatsApp newsletter IDs, and for each entry issues an authenticated 'w:mex' IQ query (query_id 7871414976211147, the same query ID the library's own newsletterFollow helper uses to follow a channel) against s[.]whatsapp[.]net using the installer's logged-in session, pausing 3 seconds per entry. All exceptions are swallowed with empty catch blocks and the URL never appears as plaintext, so the operation is invisible to users and to code review: the publisher can silently make every consumer's WhatsApp account follow an arbitrary, remotely-changed set of channels. As a secondary redirection, fetchLatestBaileysVersion() in lib/Utils/generics.js has been repointed from upstream Baileys to a third-party fork path (hxxps://raw[.]githubusercontent[.]com/mauricegift/gifted-aileys/main/lib/Defaults/baileys-version[.]json), and the libsignal dependency is pulled from an unpinned GitHub branch (github:dew-coders/libsignal-node) rather than a version.

analyzed by
Leitwacht
first seen
Nov 26, 2026, 05:51 PM
analyzed
Nov 26, 2026, 05:53 PM
weekly installs
615
npm package ↗ source repo (declared, defanged): hxxps://github[.]com/dew-coders/fast-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.