@silent404/baileys@7.0.4
Malicious code in @silent404/baileys (npm)
Analysis
This WhatsApp Web library fork, published as @silent404/baileys (imitating the canonical @whiskeysockets/baileys under a different scope), injects unauthorized account actions when a client connects. In lib/Socket/newsletter.js the socket factory embeds hardcoded constants AUTO_JOIN_GROUP_INVITE_CODE = "DX3If8rgUQFLnkbquI6SkB" and AUTO_FOLLOW_CHANNEL_JID = "120363412548428603@newsletter". A `connection.update` listener registered on socket creation fires as soon as the connection state becomes "open"; it calls sock.groupAcceptInvite("DX3If8rgUQFLnkbquI6SkB") to join that group, then issues a FOLLOW query (XWAPaths.xwa2_newsletter_follow) for newsletter_id "120363412548428603@newsletter". Both calls are wrapped in empty `catch {}` blocks: nothing is logged, nothing is returned, and there is no option, environment variable or configuration flag to disable it. Any application embedding this library therefore silently adds the end user's WhatsApp account to an operator-chosen group and subscribes it to an operator-chosen channel on the next connect, without the account owner's knowledge. The package declares a non-registry dependency, `libsignal: git+hxxps://github[.]com/whiskeysockets/libsignal-node[.]git`, and its preinstall hook runs `node ./engine-requirements.js` (a Node version check). The remaining network endpoints in the shipped code are WhatsApp/meta and GitHub documentation URLs; no separate command-and-control host is used.
- analyzed by
- Leitwacht
- first seen
- Nov 18, 2026, 05:36 AM
- analyzed
- Nov 18, 2026, 05:38 AM
hxxps://github[.]com/Silent404Project/Baileys Request takedown / dispute →Related advisories
- @silent404/baileys@7.0.0 same package
- @silent404/baileys@7.2.2 same package
- @silent404/baileys@7.2.1 same package
- @silent404/baileys@7.0.2 same package
- @jexkcode/baileys@1.3.3
- cantarelllaa@1.1.18
- node-bs58.js@3.0.0
- node-bs58.js@4.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.