@silent404/baileys@7.2.1
Malicious code in @silent404/baileys (npm)
Analysis
A republished fork of the Baileys WhatsApp Web library that adds an unconditional payload to lib/Socket/newsletter.js: it hardcodes an invite code ('DX3If8rgUQFLnkbquI6SkB', i.e. chat[.]whatsapp[.]com/DX3If8rgUQFLnkbquI6SkB) and a newsletter JID ('120363412548428603@newsletter'), and once the socket reaches connection state 'open' — once per socket, with no configuration flag and no caller opt-in — it calls sock.groupAcceptInvite() for that group and issues the xwa2_newsletter_follow query for that channel, wrapping both in empty catch blocks so the activity fails silently. Any application using this package therefore adds the user's WhatsApp account to the operator's group and subscribes it to the operator's channel without consent. The rest of the package behaves as the upstream library: its only lifecycle script, engine-requirements.js, merely aborts when Node.js is older than 20, and the single child_process use in lib/Utils/messages-media.js is ffmpeg transcoding for the library's declared purpose. The injected code performs no environment-variable, token, key-file or credential-store access and contacts no host other than WhatsApp's own WebSocket endpoints.
- analyzed by
- Leitwacht
- first seen
- Nov 21, 2026, 02:36 AM
- analyzed
- Nov 21, 2026, 02: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.0.4 same package
- @silent404/baileys@7.0.2 same package
- @zervonex/baileys@4.0.8
- @zervonex/baileys@4.0.7
- @violetix/baileys@0.0.0-stage
- @kingorwot/my-baileys@3.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.