{"id":"MAL-2026-18885","summary":"Malicious code in @riyanofficial/baileys (npm)","details":"@riyanofficial/baileys 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 a list downloaded at runtime from https://raw.githubusercontent.com/riyanoffc/ChannelID/refs/heads/main/newsletter.json, using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).","modified":"2026-11-09T23:15:26.031184412Z","published":"2026-10-27T00:00:00Z","database_specific":{"iocs":{"files":[{"digests":{"sha256":"31f8914419f161c0d115e893dd2caae7492e4a5e0434c27c8569d66e84dbb43c"},"paths":["lib/Socket/newsletter.js"]},{"digests":{"sha256":"435a5ce4bbc083eea9f7862de9c8aa56bda7997f5d41421db1e3921027f0cde5"},"paths":["lib/Socket/newsletter.js"]},{"digests":{"sha256":"e9719c01481294b2affa19c9fcac817c5c6c5f36ef985456251a9edde17e2942"},"paths":["lib/Socket/newsletter.js"]}],"ips":[],"urls":["https://raw.githubusercontent.com/riyanoffc/ChannelID/refs/heads/main/newsletter.json"],"domains":["raw.githubusercontent.com"]}},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@riyanofficial/baileys"},{"type":"WEB","url":"https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"}],"affected":[{"package":{"name":"@riyanofficial/baileys","ecosystem":"npm","purl":"pkg:npm/%40riyanofficial/baileys"},"versions":["10.0.0","3.0.0","3.0.1","3.0.2","4.0.0","8.0.0","8.4.12"],"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/@riyanofficial/baileys/MAL-2026-18885.json"}}],"schema_version":"1.9.2","credits":[{"name":"CyberXYZ","contact":["https://cyberxyz.io"],"type":"FINDER"}]}