{"id":"MAL-2026-18825","summary":"Malicious code in @elfhkry666/baileys (npm)","details":"@elfhkry666/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 the channel ID(s) 120363408893263957@newsletter, 120363413381964356@newsletter, 120363421368454744@newsletter (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:17.752141498Z","published":"2026-10-27T00:00:00Z","database_specific":{"iocs":{"urls":[],"domains":[],"files":[{"paths":["lib/Socket/newsletter.js"],"digests":{"sha256":"4bbd58b7071236c9d63a369c417d359381828f13857d737a20edb151c369613e"}},{"digests":{"sha256":"5517ebf3a4b7b0778a224d1bbc32c8801fb341d0fe0eb9dc7ed869bd35f50ddd"},"paths":["lib/Socket/newsletter.js"]},{"digests":{"sha256":"95d5784fd1d5297be08e9dabc60fa96cee2b52525fffae7e26716e0fb27bd43a"},"paths":["lib/Socket/newsletter.js"]},{"paths":["lib/Socket/newsletter.js"],"digests":{"sha256":"bf08b5afcbea3e45f98680538cb64b4043f43219b59d42f7361fba84a67390e5"}}],"ips":[]}},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@elfhkry666/baileys"},{"type":"WEB","url":"https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"}],"affected":[{"package":{"name":"@elfhkry666/baileys","ecosystem":"npm","purl":"pkg:npm/%40elfhkry666/baileys"},"versions":["0.3.20","0.3.21","0.3.22","0.3.23","0.3.24","0.3.25","0.3.26","0.3.27"],"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/@elfhkry666/baileys/MAL-2026-18825.json"}}],"schema_version":"1.9.2","credits":[{"name":"CyberXYZ","contact":["https://cyberxyz.io"],"type":"FINDER"}]}