@izi-coder/baileys@6.0.10
Malicious code in @izi-coder/baileys (npm)
Analysis
This package is an unofficial, re-branded fork of the Baileys WhatsApp Web library that silently enrolls the operator's WhatsApp account into a channel controlled by its author. In lib/Socket/newsletter.js a channel JID (120363430764800148@newsletter) is hardcoded, and makeNewsletterSocket schedules an auto-follow 10 seconds after the socket opens, issuing the WhatsApp newsletter FOLLOW query (QueryIds.FOLLOW) for that JID and retrying up to three times at 20-second intervals while the connection stays open. The routine is enabled by default: it is skipped only when config.autoFollowNewsletters is explicitly set to false or when config.newsletterAutoFollowId overrides the JID, and neither option is documented in the README, so an unmodified consumer account follows the channel without the app author's or end user's consent. Additional hardcoded JIDs used as defaults appear in lib/Socket/luxu.js for forwarded/event/poll message metadata. lib/WABinary/constants.js also carries an embedded Google API key (AIza-prefixed) inside its binary-token table. No reads of environment variables, credential files or wallet material and no non-WhatsApp C2 infrastructure were observed; the account-state change is performed over WhatsApp's own servers.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 08:41 AM
- analyzed
- Nov 15, 2026, 08:42 AM
Related advisories
- @izi-coder/baileys@6.0.9 same package
- sauruspro-bail@5.3.2
- @poucode/baileys@2.0.0
- @risacakep/risayap@7.0.0-rc25.15
- @violetix/baileys@0.6.1
- raiden-baileys@2.2.6
- base65-77x@0.0.0-stage
- base65-15x@0.0.0-stage
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.