{"id":"MAL-2026-18880","summary":"Malicious code in @ranstech/bails (npm)","details":"@ranstech/bails 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/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363349140729983@newsletter, 120363371199176376@newsletter, 120363404953742204@newsletter, 120363408883778327@newsletter, 120363409519566274@newsletter, 120363410018949906@newsletter and 5 more (stored as base64 strings), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).","modified":"2026-11-09T23:15:25.124754967Z","published":"2026-10-27T00:00:00Z","database_specific":{"iocs":{"domains":[],"files":[{"digests":{"sha256":"39c3afee668e58e4bc754fa571f4973233e1e97a389889c47f522be90ad33752"},"paths":["lib/Socket/newsletter.js"]},{"digests":{"sha256":"7088889e739a2c4ec118e8c9697c7fe91e3e7f231c1ecc0c496e46b78d2bd451"},"paths":["lib/Socket/newsletter.js"]},{"digests":{"sha256":"da42bb01dc5e26fb0254ac4ff5b155742299b453e2249075556b102b335b8e22"},"paths":["lib/Socket/newsletter.js"]},{"digests":{"sha256":"f4a1060a681c3f55749b4c7c440d32e19e16875412920178794116cd4e808770"},"paths":["lib/Socket/newsletter.js"]}],"ips":[],"urls":[]}},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ranstech/bails"},{"type":"WEB","url":"https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"}],"affected":[{"package":{"name":"@ranstech/bails","ecosystem":"npm","purl":"pkg:npm/%40ranstech/bails"},"versions":["1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","2.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ranstech/bails/MAL-2026-18880.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.9.2","credits":[{"name":"CyberXYZ","contact":["https://cyberxyz.io"],"type":"FINDER"}]}