elaina-baileys@1.0.0
Malicious code in elaina-baileys (npm)
Analysis
elaina-baileys@1.0.0 is a modified fork of the Baileys WhatsApp library that silently makes the connecting WhatsApp account follow a hardcoded channel. In lib/Socket/newsletter.js the socket factory (makeNewsletterSocket) registers a 90-second setTimeout whose callback sends a newsletter FOLLOW query (QueryIds.FOLLOW) for the hardcoded channel JID 120363400911374213@newsletter, with all errors swallowed, so any bot or client built on this package is subscribed to the operator's channel without the developer's or the account owner's knowledge. The same channel is also embedded as a newsletter context with the name "ELAINA INFORMATION" in lib/Utils/messages.js, so it can be attached to messages the client sends. The legitimate, opt-in follow helpers are documented in the README, but this automatic call is not; the package's only other install-time code (engine-requirements.js) merely rejects Node.js below version 20. Network traffic in the package is WhatsApp protocol traffic to WhatsApp servers; no separate exfiltration endpoint is present. IOCs: WhatsApp channel JID 120363400911374213@newsletter, channel display name "ELAINA INFORMATION".
- analyzed by
- Leitwacht
- first seen
- Nov 11, 2026, 09:56 AM
- analyzed
- Nov 11, 2026, 09:57 AM
Related advisories
- elaina-baileys@1.0.2 same package
- @risacakep/risayap@7.0.0-rc25.14
- sauruspro-bail@5.3.1
- @charape/baileys@1.0.7
- @langitdeveloper/baileys@2.1.9
- @danzxcode/danzx-bail@9.0.5
- @zlynzee/baileys@1.0.4
- wertybailz@1.0.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.