@rahadi01/baileys@3.0.1
Malicious code in @rahadi01/baileys (npm)
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
hxxps://github[.]com/Rahadi001/Baileyss Request takedown / dispute →Related advisories
- @xsat10/baileys@7.0.0
- queenjusmy-baileys-v1@1.0.3
- @axo_cuy/baileys@5.0.0
- @shurainc/baileys@3.0.2
- @riyanofficial/baileys-pro@1.0.2
- zenvyflump@2.0.3
- @zetagoaurum-socket/wasocket@2.2.2
- venzuu-baileys@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.