If this package is installed
Remove it, treat the machine (or CI runner) as compromised, and rotate every secret, token and key it could access — from a different, clean machine.
Details
zero2-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) 120363402057133599@newsletter, 120363428269086636@newsletter, using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (7a5235f91f44e7bef307c2645a86d6c7f8c110ce131628b1bcfb2f7a6f646075)
zero2-baileys@3.6.0 declares its `libsignal` dependency as `npm:@otaxayun/libsignal-node@latest` in package.json. The alias points at an unrelated third-party npm scope with no version pin and no integrity check, so each `npm install` resolves `@latest` fresh and installs whatever that scope currently publishes. The resolved package is then loaded via `require("libsignal")` in lib/Signal/libsignal.js, which routes all end-to-end encrypt/decrypt operations through it, placing attacker-controlled code inside the Signal/crypto path of any bot built on this fork. The dependency source is off-registry in effect (an unrelated-scope alias at a mutable tag) and whoever controls `@otaxayun/libsignal-node` can ship arbitrary code into every installer on any subsequent install.
Source: ghsa-malware (ba57fc7bb4bcf036443073304ad388fbd23b2cfff4aeebfca8fcf50baf1ee0a3)
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.