MAL-2026-19150: Malicious code in @ruthless-imperium/baileys (npm)
Malicious package. @ruthless-imperium/baileys is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). it silently subscribes every victim (via the injected WhatsApp newsletter/channel FOLLOW on connect) to attacker-controlled WhatsApp channels — hardcoded newsletter JIDs: 120363399602691477@newsletter, 120363421563597486@newsletter. Legitimate Baileys never hardcodes a channel JID or auto-follows on connect; all published versions are malicious.
--- -= Per source details. Do not edit below this line.=-
Source: ghsa-malware (4da3f22218a1a348a237cd65d354283d429c849b0a0cadc525c3232315da8d7f) 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Remove
Remove
npm/@ruthless-imperium/baileysfrom your environment.Remove the malicious package; removing it may not remove all malicious software installed as a result.
- Operational
Rotate all secrets and keys stored on the computer immediately, using a different computer.
Event History
Frequently Asked Questions
Which installations are affected?
All published versions of @ruthless-imperium/baileys are malicious. Any computer where the package is installed or has run should be treated as fully compromised.
What observable behavior indicates this package has been used?
On connection, the injected code silently follows the WhatsApp channels 120363399602691477@newsletter and 120363421563597486@newsletter. Legitimate Baileys does not hardcode newsletter JIDs or automatically follow channels when connecting.
What should be done if the package is found?
Remove the package and rotate all secrets and keys stored on the affected computer immediately, using a different computer. Because installing it may have given an outside party full control, removing the package alone cannot be relied on to eliminate malicious software.