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-18787 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-18787 confirms this npm version as malicious.
Advisory
MAL-2026-18787
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in @chatbridgeworld/baileys (npm)
Details
Malicious package. `@chatbridgeworld/baileys` is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). on connection it issues an authenticated `w:mex` newsletter FOLLOW mutation (query_id 7871414976211147) that silently subscribes every victim to attacker-controlled WhatsApp channels — hardcoded newsletter JIDs: 120363297591152843@newsletter, 120363351424590490@newsletter, 120363410165027550@newsletter, 120363412935005237@newsletter, 120363413699154858@newsletter, 120363413933221020@newsletter, 120363426302817140@newsletter, 120363428923746817@newsletter, 120363430013410680@newsletter, 120363433092350168@newsletter. Legitimate Baileys never hardcodes a channel JID or auto-follows on connect; all published versions are malicious. Detected by wormsign static analysis of the injected channel-subscription code.
---
## Source: amazon-inspector (fec4c590590e68769337688429a7da8c011f695e51e6f39cbd00910317d2fc45) package.json for @chatbridgeworld/baileys@1.0.2 declares the `libsignal` dependency as `github:chatbridgegit/libsignal-node` — a bare GitHub tree reference with no commit SHA and no version pin. On `npm install`, npm fetches whatever the default branch of that repository currently points at and executes any lifecycle scripts contained in those bytes, with no integrity check and no reproducibility guarantee across installs. Whoever controls the chatbridgegit/libsignal-node repository can push arbitrary code into every subsequent install of this package. The dependency name (`libsignal`) also matches the host package's own ecosystem naming (Baileys forks typically depend on the npm-published libsignal-node), consistent with a dependency-source redirection shape.
## Source: ghsa-malware (b7a5a2853e26ae8d922803db487eb05b9a6f8ae50d426750c0a5cd1d5ca208ab) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
LPM's AI review found this version clean. That disagrees with the OpenSSF/OSV advisory, which supplies the block.
The install-time hook only enforces the declared Node.js requirement. Importing the package exposes its socket factory without connecting, and the default network endpoint matches its WhatsApp client purpose.
Static reason
One or more suspicious static signals were detected.
Trigger
The preinstall hook checks the Node.js version; WhatsApp networking begins when the consumer creates a socket.
Impact
No malicious data collection or unsolicited account action was identified.
Mechanism
The install hook checks the runtime version. The client’s default connection targets WhatsApp Web.
Network endpoints1
web.whatsapp.com
Independent scan evidence
public snapshot
AI called this Clean at 96.0% confidence as Benign with low false-positive risk.
Evidence for AI clean decision
The preinstall script runs only a Node.js version check and exits if the major version is below 20.
The main entry exports the socket factory and modules; it does not create a socket during import.
The default socket endpoint is WhatsApp Web, consistent with the package’s WhatsApp client purpose.
The flagged `sign_credential` string is an entry in the WhatsApp binary protocol token dictionary.
Evidence against
The package defines a preinstall lifecycle hook, but its script does not access the network or project data.
The source includes network and filesystem capabilities used by WhatsApp client and media features.
Behavioral surface
SourceChild process · Crypto · Environment variables · Filesystem · Network · Web socket
Supply chainHigh entropy strings · URL strings
ManifestGit dependency
Scanned 120 files · 1.59 MB of source
4 external domains referenced
mmg.whatsapp.net
raw.githubusercontent.com
web.whatsapp.com
www.whatsapp.com
Oversized source lightweight scan
WAProto/index.js6.87 MB file, sampled 256 KB
No sampled risky behavior triggered.
Findings
5 high · 6 medium · 5 low
Where they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
Avoid installing @chatbridgeworld/baileys@1.0.2. 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.