@baileys-md/baileys@12.2.0
Malicious code in @baileys-md/baileys (npm)
Analysis
This package is an unofficial fork of the WhatsApp Web library @whiskeysockets/baileys, published under a different scope (@baileys-md/baileys) whose keywords repeat the upstream package name. It ships a hidden subscriber-enrolment routine in lib/Socket/newsletter.js: an anonymous async function runs inside makeNewsletterSocket, waits 80,000 ms, then sends WhatsApp w:mex newsletter FOLLOW queries for two hardcoded channels, 120363419781122699@newsletter and 120363388692253922@newsletter, with all errors swallowed. Any application built on this fork therefore silently subscribes the logged-in WhatsApp account to those two channels roughly 80 seconds after a socket connects, with no user action or visibility. The manifest additionally declares cache-manager ^7.2.8 (resolving to 7.2.10) and aliases libsignal-xeuka to the non-existent @shennmine/libsignal-node@2.0.1, a scoped dependency name that can be claimed later to hijack installs. There are no install/lifecycle scripts, no credential or environment reads, and no obfuscation; the only process execution is a conventional ffmpeg thumbnail command in lib/Utils/messages-media.js.
- analyzed by
- Leitwacht
- first seen
- Nov 9, 2026, 11:39 PM
- analyzed
- Nov 9, 2026, 11:42 PM
Related advisories
- @essentialai/cogent-bridge@3.26.2
- @yuanjielab/cli@0.12.0
- @zaiinlin/bails@1.0.7
- @swirls/cli@0.1.146
- @yuanjielab/cli@0.11.0
- @yuanjielab/cli@0.10.2
- nullsub@1.11.15
- @yuanjielab/cli@0.10.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.