fast-baileys@2.0.8
Malicious code in fast-baileys (npm)
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
hxxps://github[.]com/dew-coders/fast-baileys Request takedown / dispute →Related advisories
- fast-baileys@2.0.9 same package
- combined-baileys@1.0.1
- @izi-coder/baileys@2.0.5
- killua-baileys@2.0.0
- queenjusmy-baileys-v1@1.0.1
- @xsat10/baileys@7.0.0
- mod-baileys@1.0.3
- queenjusmy-baileys-v1@1.0.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.