{"id":"MAL-2026-20948","summary":"Malicious code in sanka-baileyss (npm)","details":"sanka-baileyss is a modified copy of the Baileys WhatsApp Web library (@whiskeysockets/baileys) that silently subscribes the user's WhatsApp account to channels chosen by its author. From 2.4.4 on, `makeNewsletterSocket` in `lib/Socket/newsletter.js`, which runs whenever an application that imports it creates a socket with `makeWASocket`, starts a 90-second timer that sends the newsletter FOLLOW query for `120363419564423145@newsletter` and either `120363401219396932@newsletter` (2.4.4-2.5.3) or `120363404901093286@newsletter` (2.5.4 onward) on the user's authenticated session and discards any error; 2.4.5 hides the IDs as character-code arrays, and 1.8.4 does the same after login for `120363377046327133@newsletter` in `lib/Socket/socket.js`. No option disables it and the README does not mention it; the npm account sankavollerei has published 26 such versions since 2025-06.","modified":"2026-12-02T02:30:42.422218547Z","published":"2026-11-25T16:15:21Z","database_specific":{"iocs":{"files":[{"digests":{"sha256":"d269b79e1bb9c7f7bb19e08d2b143d96ab41a61ba00bbf052de42604952e987c"},"note":"1.8.4: after login, decodes 120363377046327133@newsletter from char codes and sends the FOLLOW query.","paths":["lib/Socket/socket.js"],"source":"PACKAGE_ARCHIVE"},{"note":"2.4.4: follows 120363401219396932@newsletter and 120363419564423145@newsletter 90 s after socket creation.","paths":["lib/Socket/newsletter.js"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"07dd1c20b310e6e845bb13d1945d322a04e844dbe0893c9a0d9f6c866d81552d"}},{"digests":{"sha256":"0fc79725f46b966606d6b059ae8e1b3a0ce6d6a3048690d5496179e1d1f19362"},"note":"2.4.5: same follow, channel IDs stored as char-code arrays.","paths":["lib/Socket/newsletter.js"],"source":"PACKAGE_ARCHIVE"},{"paths":["lib/Socket/newsletter.js"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"a6502ee4ed6f8f7af0d1836ef619ca52dd25377db813441cc0f3c7ab87bc693b"},"note":"2.4.6-2.5.3: follows 120363401219396932@newsletter and 120363419564423145@newsletter 90 s after socket creation."},{"digests":{"sha256":"e126908fa47d539b025259880034242936a39ebe35732adeb844301b69536085"},"note":"2.5.4-2.7.0: follows 120363404901093286@newsletter and 120363419564423145@newsletter 90 s after socket creation.","paths":["lib/Socket/newsletter.js"],"source":"PACKAGE_ARCHIVE"},{"note":"2.7.1-2.7.2: follows 120363404901093286@newsletter and 120363419564423145@newsletter 90 s after socket creation.","paths":["lib/Socket/newsletter.js"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"3ea7c2a59c35efa2a77976ff6f52c4f1976916eb6c1ee90a9b86b8202d6c0dbd"}}]}},"affected":[{"package":{"name":"sanka-baileyss","ecosystem":"npm","purl":"pkg:npm/sanka-baileyss"},"versions":["1.8.4","2.4.4","2.4.5","2.4.6","2.4.7","2.4.8","2.4.9","2.5.0","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.5.6","2.5.7","2.6.2","2.6.3","2.6.4","2.6.5","2.6.6","2.6.7","2.6.8","2.6.9","2.7.0","2.7.1","2.7.2"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sanka-baileyss/MAL-2026-20948.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.9.2","credits":[{"name":"InvisiRisk, Inc.","contact":["https://www.invisirisk.com","mailto:research@invisirisk.com"],"type":"FINDER"}]}