Malicious code in zhenbaileys (npm)
Description
zhenbaileys is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. When the socket connects, code in lib/Socket/messages-recv.js, lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query and then MUTE, so the channel goes unnoticed, for the channel ID(s) 120363411139192580@newsletter, 120363418691561888@newsletter, 120363420179178031@newsletter (stored as character-code arrays) and a list downloaded at runtime from raw.githubusercontent.com/