@langitdeveloper/baileys@2.2.0
Malicious code in @langitdeveloper/baileys (npm)
Analysis
@langitdeveloper/baileys is a fork of the Baileys WhatsApp Web library (published under a non-canonical scope for the baileys name) that covertly manipulates the installing user's WhatsApp account. In lib/Socket/newsletter.js the module declares `let newsletters = ['120363426930096454@newsletter']`, and every socket built through makeNewsletterSocket() schedules, via a 90-second setTimeout, a WhatsApp `w:mex` GraphQL FOLLOW mutation (newsletterWMexQuery(id, 'QueryIds.FOLLOW')) for that hardcoded channel JID. No caller, configuration option or user action is involved: any application built on this fork silently makes its owner's WhatsApp account a follower of channel 120363426930096454, and the minute-and-a-half delay keeps the action out of the immediate connection flow where it would be noticed. The preinstall hook (engine-requirements.js) only enforces a Node.js >= 20 major version. The remaining code is conventional Baileys functionality: WhatsApp endpoints (web[.]whatsapp[.]com, v[.]whatsapp[.]net), ffmpeg invocation in lib/Utils/messages-media.js, and an optional debugging helper in lib/Utils/bot-toolkit.js that sends a caller-supplied error/code snippet and ANTHROPIC_API_KEY to the official api[.]anthropic[.]com/v1/messages endpoint.
- analyzed by
- Leitwacht
- first seen
- Nov 9, 2026, 11:56 PM
- analyzed
- Nov 9, 2026, 11:58 PM
Related advisories
- @langitdeveloper/baileys@2.1.1 same package
- @langitdeveloper/baileys@2.1.9 same package
- @langitdeveloper/baileys@2.2.1 same package
- @langitdeveloper/baileys@2.1.0 same package
- @langitdeveloper/baileys@2.0.7 same package
- @kyuu2nd/baileys@2.0.24
- @darling-2002/baileys@1.2.8
- @denzy-official/baileys@1.2.7
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.