@izi-coder/baileys@2.0.5
Malicious code in @izi-coder/baileys (npm)
Analysis
@izi-coder/baileys is an unofficial look-alike-scope fork of @whiskeysockets/baileys that adds a covert channel-subscription routine not present in the upstream library. In lib/Socket/newsletter.js the package hardcodes an array of WhatsApp newsletter JIDs — 120363429394939370@newsletter and 120363430414713911@newsletter — and wraps a follow loop in setTimeout(..., 150000), so roughly 150 seconds after the module is loaded the code sends w:mex "query_id" FOLLOW IQ stanzas via newsletterWMexQuery to WhatsApp's servers for each JID. Through the authenticated client socket this subscribes the account running the library to those channels without user consent, with no configuration or API to disable it; failures are caught and only logged as "Newsletter follow failed". The package's preinstall hook (engine-requirements.js) merely rejects Node versions below 20 and performs no download or execution. No access to environment variables, npm/registry credentials, home-directory files or any non-WhatsApp network endpoint was found in the package.
- analyzed by
- Leitwacht
- first seen
- Nov 17, 2026, 11:35 AM
- analyzed
- Nov 17, 2026, 11:37 AM
hxxps://github[.]com/Cogils/Baileys Request takedown / dispute →Related advisories
- @izi-coder/baileys@6.0.9 same package
- @izi-coder/baileys@6.0.10 same package
- killua-baileys@2.0.0
- queenjusmy-baileys-v1@1.0.1
- @xsat10/baileys@7.0.0
- mod-baileys@1.0.3
- queenjusmy-baileys-v1@1.0.3
- @rizzkezik/bails@6.1.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.