Malicious package · npm
Malicious code in @fadeldev/libsignal-node (npm)
2.0.12No safe version. Remove it.What it does
@fadeldev/libsignal-node 2.0.12 poses as a fork of the libsignal-node crypto library used by WhatsApp Baileys bots. When the package is loaded, index.js silently invokes install.js, which finds an installed Baileys package (@whiskeysockets/baileys or @skyzopedia/baileys*) in node_modules and overwrites its lib/Socket/newsletter.js with an embedded modified version, then forces process.exit(0) so the bot restarts with the tampered file. The injected code downloads a list of WhatsApp channel IDs from raw[.]githubusercontent[.]com/D4mxor/Screaper and makes the victim's logged-in WhatsApp account follow each channel without consent. This is part of the PhantomSub-style WhatsApp channel auto-follow campaign spread through npm Baileys forks; any computer that has loaded this package should treat its Baileys install as tampered and reinstall it. Reported to npm on 2026-11-26 and replaced with a security holding package (0.0.1-security) on 2026-11-26.
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.
No fix · Remove and contain
npm uninstall @fadeldev/libsignal-nodeSources