Vulnerability MAL-2026-20660
Summary
Malicious code in @fadeldev/libsignal-node (npm)
Details
@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.