MAL-2026-18683
Malicious code in @zaxius/baileys (npm)
Auswirkung
@zaxius/baileys is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) , using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342). This fork of the Baileys WhatsApp library ships two notable behaviors. (1) package.json declares the runtime dependency `libsignal` as `github:tenka-san/libsignal-node` with no commit SHA, tag, or integrity check. `npm install` resolves this against whatever the default branch of that repository currently points at, so whoever controls that GitHub account/branch controls code pulled into the installer's dependency tree on every install, outside of npm registry integrity. (2) When a consumer constructs a WhatsApp socket, a timer (~150s) fetches a JSON array of newsletter JIDs from raw.githubusercontent.com/MichaelWens/idnewsletter/refs/heads/main/newsletters.json — a mutable `main` branch — and iterates calling `newsletterWMexQuery(jid, QueryIds.FOLLOW)` on each, using the installer's authenticated WhatsApp account to follow those channels. This behavior is not documented in the README and the list is author-mutable at any time.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | @zaxius/baileys | unbekannt | nicht erfasst |