@kyynotdevv/baileys@2.0.4
Malicious code in @kyynotdevv/baileys (npm)
Analysis
This package is a modified copy of the Baileys WhatsApp Web library published under an unofficial scope that secretly alters the WhatsApp account using it. lib/Socket/newsletter.js schedules follow requests (QueryIds.FOLLOW at 500 ms and 2000 ms after a socket is created, wrapped in empty catch blocks) for the hardcoded channels 120363405751989725@newsletter, 120363424433029723@newsletter, 120363409815577276@newsletter and 120363407393907794@newsletter, so every bot built on it silently follows its author's channels. lib/Socket/dugong.js rewrites every image/album message with forwardedNewsletterMessageInfo for channel 120363425458769503@newsletter, named "𝐒𝐇𝐀𝐑𝐄 𝐒𝐂 𝐅𝐑𝐄𝐄" with sender "Rixzz", together with forwardingScore 99999, isForwarded and starred, so media sent by the account appears forwarded from a promotion channel; status@broadcast messages are given a second injected channel, 120363422684021546@newsletter. lib/Utils/messages.js embeds channel 120363418090359162@newsletter ("RiljiX7") in the default upload annotations. The package also depends on github:RILLYZY/libsignal-node, a fork of the Signal protocol implementation instead of the upstream library, giving that fork's owner control over session-key handling in every deployment. It does not read environment variables, .npmrc, SSH or cloud credential files, and it contacts no host other than the normal WhatsApp WebSocket endpoint wss://web[.]whatsapp[.]com/ws/chat; its preinstall hook (engine-requirements.js) only aborts when Node.js is older than 20. The observed behaviour is unauthorised promotion and traffic manipulation of the installing WhatsApp account, combined with a third-party-controlled cryptography dependency.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:28 AM
- analyzed
- Nov 16, 2026, 12:08 AM
Related advisories
- @ikyybella/baileys@1.0.0
- u-paging@0.0.0
- 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
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.