This package appears in our research on the malicious Baileys forks, with how it works, the full package list and what to do if you installed it.
Blocked by malware advisory
OpenSSF/OSV malware advisory MAL-2026-18923 identifies this version as malicious and supplies the Firewall block. LPM AI assessed this version as clean; the assessments disagree.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
OpenSSF/OSV malicious advisory
published · by OpenSSF/OSV
OpenSSF/OSV advisory MAL-2026-18923 confirms this npm version as malicious.
Advisory
MAL-2026-18923
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in @zentrix/baileys (npm)
Details
@zentrix/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) 120363425412882254@newsletter (stored as base64 strings), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).
LPM's AI review found this version clean. That disagrees with the OpenSSF/OSV advisory, which supplies the block.
The manifest has no active prepare hook, and the hard-coded newsletter references are used as metadata in caller-triggered message handlers. The inspected code does not act on those newsletter accounts or show unrelated data collection.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
The account-targeted metadata is used when a caller sends an event message; the poll handler runs when a caller sends a poll-result message.
Impact
The inspected code does not perform an unsolicited account action toward the newsletter or send unrelated local data.
Mechanism
Handlers construct WhatsApp messages for the caller-provided recipient and relay them. One event message includes a hard-coded newsletter ID as forwarded-newsletter metadata.
Independent scan evidence
public snapshot
AI called this Clean at 88.0% confidence as Benign with low false-positive risk.
Evidence for AI clean decision
The manifest's prepare script is empty; listed scripts are build, documentation, release, and test commands.
The sendMessage method handles caller-supplied message content and routes recognized types to their corresponding handlers.
A hard-coded newsletter ID appears in metadata for an event message sent to the caller's jid.
The poll-result handler uses caller-supplied poll data and sends the generated message to the caller's jid.
Evidence against
The package implements WhatsApp messaging, so message relay and network use fit its stated purpose.
The newsletter ID is embedded in outgoing event metadata; the inspected code does not join, follow, or post to that newsletter.
Behavioral surface
SourceChild process · Crypto · Filesystem · Network · Shell · Web socket
Avoid installing @zentrix/baileys@4.1.9. Remove it from direct dependencies and check your lockfile for transitive copies.
Choose an independently verified alternative or release. This report does not establish that other versions are safe.
If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.