{"id":"MAL-2026-20811","summary":"Malicious code in @robihostingid/baileys (npm)","details":"@robihostingid/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. 8.0.8 and 9.0.0 use the loadBase loop: lib/Utils/messages-media.js exports loadBase, which makeNewsletterSocket (lib/Socket/newsletter.js) calls on every socket creation as loadBase(newsletterWMexQuery, QueryIds). 80 seconds later it fetches a channel list from a URL stored as base64 and, 5 seconds apart, calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each entry with the victim's authenticated session, swallowing errors. Nothing is logged and the README does not mention it. 8.0.8: lib/Utils/messages-media.js sha256 657662b2ae2e8cc1808715d8219d4e7ca7182f6eacda8d79b1cee4b721c88939 (byte-identical to @rixxcodex/baileys 8.2.0), URL hxxps://raw[.]githubusercontent[.]com/skyzopedia/Screaper/refs/heads/main/idChannel.json. 9.0.0: sha256 3616c81fe6b723a3951ff05672859ac73853507e3ec717dd151e1dc1e4db37c5, URL hxxps://raw[.]githubusercontent[.]com/robihosting/Screaper/refs/heads/main/idChannel.json. 8.0.9 does the same from lib/Socket/newsletter.js (sha256 f8762cc88d6e58b9347eef75e5c0a8216a783cd47ec90001f13a93a40600bea9): 80 seconds after socket creation it fetches the robihosting/Screaper list (URL in plain text) and follows each id. Same behaviour as the PhantomSub family (MAL-2026-17342). Amazon Inspector described the same loadBase loop in @rixxcodex/baileys (MAL-2026-16483).","modified":"2026-12-01T09:15:05.501408533Z","published":"2026-11-06T00:00:00Z","database_specific":{"iocs":{"ips":[],"urls":["https://raw.githubusercontent.com/skyzopedia/Screaper/refs/heads/main/idChannel.json","https://raw.githubusercontent.com/robihosting/Screaper/refs/heads/main/idChannel.json"],"domains":["raw.githubusercontent.com"],"files":[{"digests":{"sha256":"657662b2ae2e8cc1808715d8219d4e7ca7182f6eacda8d79b1cee4b721c88939"},"paths":["lib/Utils/messages-media.js"]},{"paths":["lib/Socket/newsletter.js"],"digests":{"sha256":"f8762cc88d6e58b9347eef75e5c0a8216a783cd47ec90001f13a93a40600bea9"}},{"paths":["lib/Utils/messages-media.js"],"digests":{"sha256":"3616c81fe6b723a3951ff05672859ac73853507e3ec717dd151e1dc1e4db37c5"}}]}},"references":[{"type":"WEB","url":"https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"}],"affected":[{"package":{"name":"@robihostingid/baileys","ecosystem":"npm","purl":"pkg:npm/%40robihostingid/baileys"},"versions":["8.0.8","8.0.9","9.0.0"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@robihostingid/baileys/MAL-2026-20811.json"}}],"schema_version":"1.9.2","credits":[{"name":"CyberXYZ","contact":["https://cyberxyz.io"],"type":"FINDER"}]}