sanka-baileyss@2.5.7
Malicious code in sanka-baileyss (npm)
Analysis
sanka-baileyss is a modified Baileys WhatsApp Web API library that manipulates the account and outbound traffic of whoever uses it, with no configuration option to disable the behaviour. In lib/Socket/newsletter.js (around line 150) socket construction schedules a 90-second timer that issues a WhatsApp 'w:mex' iq query calling newsletterWMexQuery("120363404901093286@newsletter", QueryIds.FOLLOW), followed by a nested 5-second timer doing the same for "120363419564423145@newsletter". Both channel JIDs, plus the strings SANKANIME and BAILSNKA, are assembled at runtime with String.fromCharCode so they are absent from the plain-text source; the same BAILSNKA value is set as the default device pairing code in lib/Socket/socket.js. In lib/Socket/sanka.js the library stamps a hardcoded forwardedNewsletterMessageInfo block (newsletterName "SANKANIME", newsletterJid 120363404901093286@newsletter) into messages it sends, so every user's outgoing traffic carries the author's channel reference. Installable hooks are limited to check-node-version.js, which only compares process.versions.node against Node >= 20 and exits otherwise.
- analyzed by
- Leitwacht
- first seen
- Nov 26, 2026, 09:21 AM
- analyzed
- Nov 26, 2026, 09:23 AM
hxxps://github[.]com/SankaVollereii/Sanka-Baileys Request takedown / dispute →Related advisories
- sanka-baileyss@2.6.5 same package
- sanka-baileyss@2.6.4 same package
- sanka-baileyss@2.6.2 same package
- ceaser-baileys@3.4.17
- ceaser-baileys@3.4.16
- claude-code-zanii@2.14.15
- clamp4js@1.0.9
- clamp4js@1.0.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.