@denzz221/baileys@8.1.3
Malicious code in @denzz221/baileys (npm)
Analysis
@denzz221/baileys is a modified fork of the WhatsApp Web API library that silently manipulates the connected user's account and stamps attacker-chosen channel metadata onto their messages. 1) Covert channel auto-follow: lib/Socket/newsletter.js adds an unconditional timer inside makeNewsletterSocket() — which runs whenever a socket is created. 90 seconds after connection it issues a w:mex newsletter FOLLOW query for the hardcoded JID 120363400780200098@newsletter, enrolling the user's WhatsApp account as a follower of that channel. There is no configuration option and no log output; the call is wrapped in an empty try/catch. The 90-second delay keeps it outside short-lived sessions and observation windows. 2) Metadata injection into outgoing media: lib/Utils/messages.js adds a default `annotations` block to outgoing media messages when the caller supplies none, containing newsletterJid "120363420249672073@newsletter", newsletterName "kyuu ilysm" and fixed polygon vertices, so the author's channel branding is attached to user media. 3) Forged forwarded-channel provenance: lib/Socket/dugong.js forces forwardedNewsletterMessageInfo onto forwarded/status messages with newsletterJid "120363297591152843@newsletter" and spoofed channel names ("kikyy dugonggg", "shenvn."), making messages appear relayed from a channel they did not come from. The library's traffic otherwise goes only to WhatsApp endpoints (web[.]whatsapp[.]com, g[.]whatsapp[.]net). It does not read or transmit npm/GitHub/cloud tokens, environment variables, or third-party credential files; its only credential handling is the library's own auth-state directory (creds.json). The preinstall hook (node ./engine-requirements.js) merely prints a Node.js version warning.
- analyzed by
- Leitwacht
- first seen
- Nov 5, 2026, 05:23 AM
- analyzed
- Nov 5, 2026, 05:32 AM
- weekly installs
- 223
Related advisories
- @denzz221/baileys@8.0.5 same package
- @denzz221/baileys@8.0.8 same package
- @denzz221/baileys@8.1.7 same package
- @denzz221/baileys@8.1.5 same package
- @denzz221/baileys@8.1.1 same package
- @denzz221/baileys@7.0.0 same package
- peas-tea-curut@3.2.2
- wet_rat_replicate_automation@2.3.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.