patron-pro@2.1.4
Malicious code in patron-pro (npm)
Analysis
patron-pro republishes the Baileys WhatsApp Web library with injected code in lib/Socket/newsletter.js. Every time a WhatsApp socket is created, that module schedules a 90000 ms timer whose callback unconditionally issues a w:mex newsletter query — newsletterWMexQuery("120363303045895814@newsletter", QueryIds.FOLLOW) — which makes the connecting user's WhatsApp account follow the hardcoded newsletter channel 120363303045895814@newsletter. The call is not exposed through any user-facing API, is not gated on user action, and wraps the request in try/catch so failures pass silently; the 90-second delay defers it past client startup. The same channel (whatsapp[.]com/channel/0029Val0s0rIt5rsIDPCoD2q) is what the package's homepage and repository fields point to. The package's only network destinations in code are wss://web[.]whatsapp[.]com/ws/chat (the WhatsApp Web endpoint) and the npm registry; its preinstall hook, engine-requirements.js, only checks that the Node.js major version is >= 20 and exits otherwise.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:43 AM
- analyzed
- Nov 16, 2026, 12:09 AM
- weekly installs
- 754
Related advisories
- @vanzzooffc/baileys@1.0.0
- silva-baileys@1.0.4
- mid-baileys@0.7.30
- @liamcuy/lymmai@1.0.0
- @kasabaileys/baileys@2.0.2
- @alannxds/baileys@6.2.13
- @wanzforme/bails@5.0.0
- @wanzforme/bails@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.