{"id":"MAL-2026-19947","summary":"Malicious code in baileys-clean (npm)","details":"baileys-clean 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. makeNewsletterSocket in lib/Socket/newsletter.js contains a self-invoking property named newsletterAutoFollowSilent that registers a connection.update listener at socket creation; 15 seconds after every 'open' it calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each of four hardcoded channel IDs (120363406225530257@newsletter, 120363408101167880@newsletter, 120363419318051000@newsletter, 120363421412174731@newsletter), 3.5 seconds apart, swallowing errors, and then repeats the whole loop every 60 seconds for as long as the socket is open. The README states the fork has no hidden auto-follow and documents an explicit opt-in function, autoFollowOwnerChannels, that does not exist anywhere in the shipped code; the only follow path is the automatic one. Same behaviour as the PhantomSub family (MAL-2026-17342).","modified":"2026-11-16T05:15:03.556715484Z","published":"2026-11-11T00:00:00Z","database_specific":{"iocs":{"domains":[],"files":[{"paths":["lib/Socket/newsletter.js"],"digests":{"sha256":"07a99b774f85b823142e996ee48613244c7a502e3e107dd89ba4fbeea8e13b1c"}}],"ips":[],"urls":[]}},"references":[{"type":"WEB","url":"https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"}],"affected":[{"package":{"name":"baileys-clean","ecosystem":"npm","purl":"pkg:npm/baileys-clean"},"versions":["7.3.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/baileys-clean/MAL-2026-19947.json"}}],"schema_version":"1.9.2","credits":[{"name":"CyberXYZ","contact":["https://cyberxyz.io"],"type":"FINDER"}]}