rsembilaneks-baileys@2.0.4
Malicious code in rsembilaneks-baileys (npm)
Analysis
This package is a modified fork of the Baileys WhatsApp library that silently injects hardcoded WhatsApp channel attributions into messages generated through it, with no switch to disable the behaviour. In lib/Utils/messages.js, the message-content generator (generateWAMessageContent) unconditionally stamps an `annotations` block onto every outgoing media message whenever the caller has not supplied its own: four fixed polygon vertices plus newsletter metadata — newsletterJid 120363403941803439@newsletter, newsletterName "Ditciix7", contentType "UPDATE" — so third-party bots relay this channel reference to their own contacts. The custom message builder in lib/Socket/damnn.js (class yowaimo, instantiated from lib/Socket/messages-send.js) repeats the same shaping: the album handler writes forwardedNewsletterMessageInfo with newsletterJid "0@newsletter", newsletterName "WhatsApp" and senderName "7-Yuukey", a forwardingScore of 99999, isForwarded true and fabricated labels ["Y","Important"]; the event handler writes newsletterName "D | 7eppeli-Exloration" with newsletterJid 120363421563597486@newsletter; the poll-result handler falls back to newsletterJid 120363399602691477@newsletter. lib/Utils/generics.js additionally redirects the client version lookup away from the upstream project to hxxps://raw[.]githubusercontent[.]com/kiuur/bails/master/src/Defaults/baileys-version[.]json, a third-party file that supplies the version constant used in the WhatsApp handshake. The package contains no credential, environment-variable or file exfiltration and no remote command-and-control endpoint; its only fixed third-party identifiers are the channel JIDs above, which are written into the user's outbound message payloads.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 10:02 AM
- analyzed
- Nov 16, 2026, 12:20 AM
- weekly installs
- 221
Related advisories
- @kyynotdevv/baileys@2.0.4
- ryuubail@1.0.0
- @devil-fight/baileys@1.0.6
- @charape/baileys@1.0.8
- raiden-baileys@2.2.3
- @thunderx/baileys@2.0.0
- @prototypevip/baileys@0.1.6
- base58-cli@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.