Skip to main content

Malicious code in @systemzero/baileys (npm)

0
High
Published: 09/01/2026 (09/01/2026, 00:00:00 UTC)
Source: GCVE Database
Product: @systemzero/baileys

Description

@systemzero/baileys is a malicious fork of the WhatsApp Web library that includes a hidden remote-control channel. It unconditionally opens a persistent connection to a hardcoded external server, allowing the attacker to remotely control the authenticated WhatsApp session by making the victim account follow attacker-chosen channels and post reactions. This behavior is undocumented, non-consensual, and not exposed through any public API. The malicious code is present in version 1.1.2 of the package.

Affected software

npmghsa
@systemzero/baileys
Affected versions
=1.1.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 15:54:08 UTC

Technical Analysis

The @systemzero/baileys npm package is a fork of the legitimate @whiskeysockets/baileys WhatsApp Web library. It introduces a hidden remote-control channel by hardcoding a SIGNAL_STREAM_URL endpoint (https://zone.api.br/api/owner/whatsapp-signal-stream) that is connected to unconditionally on every socket creation. This connection uses Server-Sent Events to receive commands named 'react' and 'follow', which execute actions on the authenticated WhatsApp session such as following attacker-specified channels and reacting to messages with attacker-chosen emojis. These actions occur without any developer opt-in or configuration and are not part of the original upstream library. The malicious behavior was confirmed by static code reviews and is linked to a known WhatsApp newsletter auto-follow campaign. The affected version is 1.1.2.

Potential Impact

An attacker controlling the remote server can force the victim's WhatsApp account to follow specific channels and post reactions without the user's knowledge or consent. This can lead to unwanted propagation of attacker-chosen content, potential reputation damage, and loss of user control over their WhatsApp account. The malicious code runs automatically on every socket connection created by the library, making all users of this package vulnerable to remote manipulation.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid using the @systemzero/baileys package, especially version 1.1.2. Since the malicious behavior is hardcoded and unconditional, replacing this package with the official upstream @whiskeysockets/baileys library or another trusted alternative is recommended. Monitor for updates from the package maintainers or security advisories for any future fixes. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-15820
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a9ad4f4acd9273b49b679ae

Added to database: 09/04/2026, 14:25:56 UTC

Last enriched: 09/07/2026, 15:54:08 UTC

Last updated: 10/04/2026, 02:47:16 UTC

Views: 63

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses