raiden-baileys@2.2.5
Malicious code in raiden-baileys (npm)
Analysis
This package (raiden-baileys, a fork of the Baileys WhatsApp library) silently subscribes the linked WhatsApp account to specific channels that the operator never chose to follow. In lib/Socket/newsletter.js, the newsletter socket construction schedules a 120000 ms timer whose callback loops over the hardcoded channel IDs 120363407277177688@newsletter and 120363407702752541@newsletter and, for each, sends a WhatsApp "w:mex" query using the FOLLOW query id, swallowing any error. The two-minute delay keeps the subscription out of sight of short-lived install and startup checks. A third hardcoded channel ID, 120363411769951302@newsletter, is used in lib/Socket/clutch-handler.js as the default newsletter target for forwarded newsletter metadata. There is no configuration option and no documentation for this behaviour. The package does not read credentials, tokens, environment variables or user files while doing this, and the only network traffic it produces is to WhatsApp's own servers (web[.]whatsapp[.]com, wss://web[.]whatsapp[.]com/ws/chat, v[.]whatsapp[.]net).
- analyzed by
- Leitwacht
- first seen
- Nov 11, 2026, 11:09 AM
- analyzed
- Nov 11, 2026, 11:10 AM
- weekly installs
- 2,328
Related advisories
- raiden-baileys@2.2.7 same package
- raiden-baileys@2.2.6 same package
- raiden-baileys@2.2.4 same package
- raiden-baileys@2.1.2 same package
- @trashcore/baileys@4.1.5
- @zanxiky/baileys@1.1.0
- @trashcore/baileys@4.0.0
- @skycodee/baileys@8.0.15
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.