@izi-coder/baileys@6.0.9
Malicious code in @izi-coder/baileys (npm)
Analysis
This package is a WhatsApp Web automation library published under an unofficial scope using the basename of the upstream @whiskeysockets/baileys project, with injected behaviour on top of the fork. On every successful WhatsApp connection (the socket 'connection.update' == 'open' event) it starts a hidden 10-second timer, retrying every 20 seconds up to three times, and sends a newsletter follow request (w:mex query_id 7871414976211147) for hardcoded channel JID 120363430764800148@newsletter, silently subscribing the user's WhatsApp account to that channel operator without asking. The only way to disable it is an undocumented config flag (autoFollowNewsletters: false); the packaged README does not mention it. The same module tree stamps hardcoded channel JIDs 120363421563597486@newsletter and 120363399602691477@newsletter into forwardedNewsletterMessageInfo on generated event, poll-result and album messages, attributing relayed messages to those channels. The package also declares a dependency on cache-manager ^7.2.8, which resolves to a version carrying a confirmed malicious payload and is pulled into the install tree without any use of it by this library's code. Its preinstall hook (engine-requirements.js) only enforces Node.js >= 20. No non-WhatsApp command-and-control endpoint is hardcoded in this package's own code.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 10:47 PM
- analyzed
- Nov 15, 2026, 10:49 PM
Related advisories
- @izi-coder/baileys@6.0.10 same package
- @charape/baileys@1.0.9
- @csc-protocol/token-saver@1.3.3
- spencer-baileys@1.0.6
- @kyuu2nd/baileys@2.0.0
- @jiancodes/baileys@2.0.6
- malvin-baileys@2.2.1
- @ravliesh/baileys@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.