sanka-baileyss@2.6.2
Malicious code in sanka-baileyss (npm)
Analysis
This package is a modified copy of the Baileys WhatsApp Web API library that silently subscribes the connecting account to channels chosen by its author. lib/Socket/newsletter.js schedules a 90-second timer, plus a nested 5-second timer, inside makeNewsletterSocket(); when they fire they issue newsletter FOLLOW queries (iq type "get", xmlns "w:mex", query_id 7871414976211147) for the hardcoded channel JIDs 120363404901093286@newsletter and 120363419564423145@newsletter, discarding any error so the subscription is invisible to the caller. Those channel identifiers are not present as literals: they are stored as decimal char-code arrays and decoded at runtime with String.fromCharCode in lib/Utils/messages.js, the same technique used for the "BAILSNKA" pairing-code fallback in lib/Socket/socket.js and the "SANKA-" message-ID prefix in lib/Utils/generics.js. lib/Socket/sanka.js further stamps outgoing message metadata with newsletterJid 120363404901093286@newsletter and the name SANKANIME, tying the subscription targets to the package author's channels. Beyond its own WhatsApp Web endpoint (wss://web[.]whatsapp[.]com) and media hosts the package contacts nothing, reads no environment values or credential files, and its only process execution is an ffmpeg thumbnail call in lib/Utils/messages-media.js. The effect on an installer is unauthorised channel subscriptions and author-branded metadata injected into messages sent by the account that runs the library.
- analyzed by
- Leitwacht
- first seen
- Nov 25, 2026, 07:51 PM
- analyzed
- Nov 25, 2026, 07:53 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.4 same package
- akamai-sensorv2@1.0.0
- vant@4.9.14
- aemeat-baileys@1.5.9
- cop3-rc@5.0.4
- cop3-rc@5.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.