patron-pro@2.0.3
Malicious code in patron-pro (npm)
Analysis
patron-pro is a WhatsApp/Baileys-style API fork that covertly manipulates the authenticated user's WhatsApp account on first use. In lib/Socket/newsletter.js, the socket factory makeNewsletterSocket() unconditionally registers a 90-second timer when the socket is created. When it fires, the callback issues a WhatsApp WMex newsletter query with the FOLLOW operation for the hardcoded channel 120363303045895814@newsletter, subscribing the user's own account to that channel without any call from package code, user action or consent; the request is wrapped in an empty catch so failures are silent. Only one channel JID is hardcoded in the whole package, and it is not the channel the package's metadata advertises. The 90-second delay places the subscription after connection set-up, and the preinstall hook (node ./engine-requirements.js) only checks the Node.js version, so nothing warns the user. Aside from the subscription, traffic is the ordinary wss://web[.]whatsapp[.]com/ws/chat session and WhatsApp newsletter IQ queries, and the only process execution is ffmpeg thumbnail extraction in lib/Utils/messages-media.js. Hardcoded auto-followed channel JID: 120363303045895814@newsletter.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:43 AM
- analyzed
- Nov 17, 2026, 12:22 AM
- weekly installs
- 754
hxxps://whatsapp[.]com/channel/0029Val0s0rIt5rsIDPCoD2q Request takedown / dispute →Related advisories
- patron-pro@2.1.4 same package
- dct-dula-dev-baileys@1.0.5
- @devil-fight/baileys@1.0.6
- @zervonex/baileys@4.0.1
- alip-baileys@1.0.3
- shadowx-baileys@7.0.0-rc13-shadowx.2
- @ubedsockets/baileys@1.7.9
- hydration-ui-dlx@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.