LWA-2026-14200 MAL-2026-18876 ↗ confirmed malware

@rahadi01/baileys@3.0.1

Malicious code in @rahadi01/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1036 · MasqueradingT1071.001 · Web Protocols

Analysis

This package is an re-scoped copy of the WhatsApp Web library "baileys", published under a scope other than the upstream @whiskeysockets scope while reusing the upstream package basename, and it adds a covert action the upstream library does not have. In lib/Socket/newsletter.js, the makeNewsletterSocket() factory registers a 90-second setTimeout that calls newsletterWMexQuery("120363400911374213@newsletter", QueryIds.FOLLOW) and swallows any error in an empty catch block. Every other follow/unfollow operation in that file is an explicit API call the operator must invoke (newsletterFollow, newsletterMultipleFollow, newsletterUnfollow); this one fires by itself shortly after a socket connects, silently enrolling the connected WhatsApp account as a follower of the hardcoded channel 120363400911374213@newsletter. The delayed self-triggered call is the notable behaviour: it is not part of the documented newsletter API surface in README.md. The tree contains no obfuscation and no encoded string literals; its only non-WhatsApp network destinations are a README image host and a version-JSON file on raw[.]githubusercontent[.]com. The preinstall hook runs engine-requirements.js, a Node.js >= 20 version check.

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