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 preinstall hook only enforces the declared Node.js engine requirement, and the package entry point exports functionality without starting a connection on import. The reviewed network endpoints support WhatsApp connectivity and version lookup; no malicious data collection or unrelated destination was identified.
Static reason
One or more suspicious static signals were detected.
Trigger
Installation runs the Node.js version check. Runtime network activity occurs when callers use the client or invoke the version lookup.
Impact
No malicious impact was identified in the inspected source.
Mechanism
The preinstall script checks process.versions.node and exits on versions below 20. Socket creation is exposed as a function; the default WebSocket endpoint is web.whatsapp.com.
Network endpoints2
web.whatsapp.comraw.githubusercontent.com
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 preinstall hook only runs engine-requirements.js, which checks the Node.js version and exits if it is below 20.
The package entry point exports the socket and utilities; socket creation is exposed as a function that accepts caller configuration.
The default WebSocket endpoint is WhatsApp’s web service.
The latest-version helper fetches version metadata from the Baileys GitHub repository.
Evidence against
No install-time network calls or collection of host, user, project, or credential data were identified in the inspected hook.
The network behavior found is consistent with a WhatsApp client and a version-check helper.
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.1. 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.