Malicious code in @alexiddev/baileys (npm)
MAL-2026-20677
Published · Modified
Dependency scanning
Check whether @alexiddev/baileys is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
Malicious package. @alexiddev/baileys is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). lib/Alex/auto-follow.js defines a default auto-follow list containing the hardcoded attacker-controlled WhatsApp channel 120363404367589225@newsletter. attachAutoFollow, called from lib/Socket/index.js for every socket, waits for the connection to open and then calls newsletterFollow for that channel, silently subscribing the victim account. The behaviour is enabled by default. Legitimate Baileys never hardcodes a channel JID or auto-follows a channel. Versions 1.0.0 and 1.0.1 carry this code; the 0.0.0-stage placeholder does not.
References
Ready to move
Start Securing
Free, no credit card | First findings in minutes