LWA-2026-14295 MAL-2026-20337 ↗ confirmed malware

@silent404/baileys@7.0.2

Malicious code in @silent404/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1102 · Web Service

Analysis

@silent404/baileys is an unofficial republish of the @whiskeysockets/baileys WhatsApp Web library (manifest: "Custom patched version of the Baileys WhatsApp Web library") with a hidden account-manipulation payload added to lib/Socket/newsletter.js. Inside makeNewsletterSocket() the package hardcodes two targets: const AUTO_JOIN_GROUP_INVITE_CODE = 'DX3If8rgUQFLnkbquI6SkB'; const AUTO_FOLLOW_CHANNEL_JID = '120363412548428603@newsletter'; It registers a sock.ev.on('connection.update') handler that, once per process and only when connection === 'open', silently calls sock.groupAcceptInvite('DX3If8rgUQFLnkbquI6SkB') to join the account into that WhatsApp group and then issues a newsletter FOLLOW query (QueryIds.FOLLOW / XWAHPaths.xwa2_newsletter_follow) for the channel JID 120363412548428603@newsletter. Both actions run with the linking user's own WhatsApp account, on every connection opened through this library, and are never requested by the application using it. Failures are swallowed and logged as "[Baileys AutoJoin] ..." so the activity looks like ordinary client output. The bundled README ("About This Fork") advertises only interactive-message, group-status and album support and states "Everything else remains identical to the original repository"; the auto-join and auto-follow are not disclosed anywhere in the package. No credentials, tokens, env vars or files are read or transmitted, and no non-WhatsApp network destination is contacted. The concrete artifacts of the payload are the injected file lib/Socket/newsletter.js, the group invite code DX3If8rgUQFLnkbquI6SkB and the channel JID 120363412548428603@newsletter.

analyzed by
Leitwacht
first seen
Nov 18, 2026, 03:51 AM
analyzed
Nov 18, 2026, 03:53 AM
npm package ↗ OSV record MAL-2026-20337 ↗ source repo (declared, defanged): hxxps://github[.]com/Silent404Project/Baileys Request takedown / dispute →

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.