@darling-2002/baileys@1.2.8
Malicious code in @darling-2002/baileys (npm)
Analysis
A trojanized clone of the WhatsApp Web library baileys that adds a hidden, delayed account-manipulation payload to lib/Socket/newsletter.js. Any application that loads the module executes a top-level `setTimeout(..., 120000)` (a 120-second delay) which fetches a remote list of WhatsApp channel IDs from hxxps://raw[.]githubusercontent[.]com/tskiofc/ChannelID/refs/heads/main/token[.]json and then silently follows every channel in that list on the authenticated account: it issues the internal newsletter FOLLOW query for each ID and paces the requests with `setTimeout(..., 11000)` between them. The channel list is fully controlled by the remote repository owner, so the operator can at any time redirect which channels victim accounts are enrolled into; all errors are swallowed in empty catch blocks so the host application never sees the activity. The same fork also hardcodes the operator's own channel JID 120363191779210764@newsletter (name "Starlights Team") into lib/Socket/dugong.js and lib/Utils/messages.js, where it is stamped into forwardedNewsletterMessageInfo on messages the library sends, giving the payload an in-band promotion path. Separately, the package declares a preinstall hook pointing at a zero-byte engine-requirements.js, and the manifest's homepage/repository fields name a non-existent "github[.]com/@whiskeysockets/baileys" path while the package ships the byte layout of the upstream library. Indicators: hxxps://raw[.]githubusercontent[.]com/tskiofc/ChannelID/refs/heads/main/token.json (remote channel-ID feed); WhatsApp channel JID 120363191779210764@newsletter. No credential, token, env-var or file theft was found in the payload.
- analyzed by
- Leitwacht
- first seen
- Nov 9, 2026, 11:46 PM
- analyzed
- Nov 9, 2026, 11:51 PM
Related advisories
- @darling-2002/baileys@2.8.9 same package
- @denzy-official/baileys@1.2.7
- @bellachu/bails@0.0.2
- @alzx7z/baileys@2.0.6
- @lymmhere/lymmexc@1.0.0
- @sakataa/baileys@4.0.1
- sauruspro-bail@5.0.2
- raiden-baileys@2.2.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.