@kyuu2nd/baileys@2.0.24
Malicious code in @kyuu2nd/baileys (npm)
Analysis
A WhatsApp Web library distributed as a modified fork of Baileys that performs remote-controlled actions on the installing user's account without any opt-in. - On `require()` of the package, lib/index.js fetches hxxps://raw[.]githubusercontent[.]com/z4phdev/client/refs/heads/main/information[.]json and prints the returned string to the console, giving the author a live remote-content channel into every application that imports the library. - lib/Socket/newsletter.js fetches a second remote list, hxxps://raw[.]githubusercontent[.]com/kiuur/IDCH/refs/heads/main/idch[.]json, and 90 seconds later issues WhatsApp newsletter FOLLOW queries for every JID in that list, silently subscribing the user's WhatsApp account to channels selected by the author. The JIDs are stored as character-code arrays and decoded with String.fromCharCode to avoid appearing as plaintext strings. - lib/Utils/generics.js points the "latest version" lookup at the author's fork (raw[.]githubusercontent[.]com/z4phdev/baileys) instead of the upstream project. The channel-subscription list is controlled server-side, so the set of channels an account is enrolled into can be changed at any time after publication; nothing in the documented API exposes or disables this behaviour. The package's only install hook (engine-requirements.js) merely checks the Node.js major version.
- analyzed by
- Leitwacht
- first seen
- Nov 9, 2026, 11:49 PM
- analyzed
- Nov 9, 2026, 11:52 PM
- weekly installs
- 3,906
Related advisories
- @kyuu2nd/baileys@2.0.0 same package
- @darling-2002/baileys@1.2.8
- @denzy-official/baileys@1.2.7
- @darling-2002/baileys@2.8.9
- @bellachu/bails@0.0.2
- @alzx7z/baileys@2.0.6
- @lymmhere/lymmexc@1.0.0
- @sakataa/baileys@4.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.