MAL-2026-19152: Malicious code in @ndikagantengg/baileys (npm)
Malicious package. @ndikagantengg/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: 120363428626908481@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 (9103e2585b05f34e7092681161d1f440762d7546dd7d0a7230585b6f836881fa) 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/@ndikagantengg/baileysfrom your environment.Remove the package; removing it may not remove all malicious software resulting from its installation.
- Operational
Rotate all secrets and keys stored on any computer with the package installed or running, doing so from a different computer.
Event History
Frequently Asked Questions
Which installations are affected?
All published versions of npm/@ndikagantengg/baileys are malicious. Any computer where the package is installed or has run should be treated as fully compromised.
What does the malicious package do during normal use?
On connection, it silently follows an attacker-controlled WhatsApp newsletter/channel using the hardcoded JID 120363428626908481@newsletter. Legitimate Baileys does not hardcode a channel JID or automatically follow channels on connect.
What should be done if this package was installed?
Remove the package and rotate all secrets and keys stored on the affected computer immediately, using a different computer. Because installation may have given an outside party full control, removal alone cannot be relied upon to eliminate malicious software.