MAL-2026-19109: Malicious code in @lekzsync/baileys (npm)
Malicious package. @lekzsync/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 (ed59987690788d75817df9b9c5189d418ba24fe59cadccd33dffe418c7034fc6) 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/@lekzsync/baileysfrom your environment.Remove the package; removing it may not remove all malicious software resulting from its installation.
- Operational
Immediately rotate all secrets and keys stored on the affected computer, using a different computer.
Event History
Frequently Asked Questions
Which installations are affected?
All published versions of @lekzsync/baileys are malicious. Legitimate Baileys does not hardcode newsletter JIDs or automatically follow channels when connecting.
What happens when the package is used?
The trojanized package silently follows two attacker-controlled WhatsApp newsletter channels on behalf of each victim when a connection is established. The hardcoded JIDs are 120363399602691477@newsletter and 120363421563597486@newsletter.
What should we do if this package is installed or has run?
Treat the computer as fully compromised. From a different computer, immediately rotate all secrets and keys stored on the affected system, and remove the package; removal alone cannot guarantee that other malicious software is gone.