sanka-baileyss@2.6.4
Malicious code in sanka-baileyss (npm)
Analysis
This package is a modified fork of the Baileys WhatsApp Web API library that covertly acts on the installing application's own WhatsApp session. In lib/Socket/newsletter.js, makeNewsletterSocket() — instantiated for every client through lib/Socket/messages-send.js — starts a 90000 ms timer that sends a newsletter FOLLOW request for 120363404901093286@newsletter and, 5 s later, a second follow for 120363419564423145@newsletter, using the user's authenticated credentials; neither call is exposed as a configuration option or documented API. In lib/Utils/messages.js, prepareWAMessageMedia() defaults every media message's annotations to a newsletter object pinned to 120363404901093286@newsletter with newsletterName "SANKANIME" and contentType "UPDATE", so media sent by applications built on this library silently carries the author's channel attribution. The channel IDs, the channel name, the fallback pairing code "BAILSNKA" and the "SANKA-" message-ID prefix in lib/Utils/generics.js are all assembled at runtime from decimal char-code arrays via String.fromCharCode so the literals do not appear verbatim in the source. All traffic goes to WhatsApp's own servers (wss://web[.]whatsapp[.]com/ws/chat); no other destination is contacted. The preinstall hook, check-node-version.js, only verifies Node.js >= 20. IOCs: WhatsApp channel JIDs 120363404901093286@newsletter and 120363419564423145@newsletter.
- analyzed by
- Leitwacht
- first seen
- Nov 25, 2026, 07:53 PM
- analyzed
- Nov 25, 2026, 07:55 PM
hxxps://github[.]com/SankaVollereii/Sanka-Baileys Request takedown / dispute →Related advisories
- sanka-baileyss@2.5.7 same package
- sanka-baileyss@2.6.5 same package
- sanka-baileyss@2.6.2 same package
- git-iss-creator@10.13.0
- unbig.js@6.2.16
- combined-baileys@1.0.0
- @zervonex/baileys@4.0.9-patch.1
- @kingorwot/my-baileys@3.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.