@kingorwot/my-baileys@1.0.0
Malicious code in @kingorwot/my-baileys (npm)
Analysis
This package is a modified fork of the Baileys WhatsApp Web library that silently enrols the installer's authenticated WhatsApp account into channels selected by the package author. Two independent mechanisms ship in the code. In lib/Socket/newsletter.js, makeNewsletterSocket schedules a 120000 ms timer that fetches an array of channel identifiers from hxxps://raw[.]githubusercontent[.]com/DGXeon13/strings/refs/heads/main/strings[.]json, then recursively calls the WhatsApp newsletter-follow query (QueryIds.FOLLOW, XWAPaths.xwa2_newsletter_join_v2) for each identifier at 11000 ms intervals; errors are swallowed and nothing is logged, and the remote list can be changed by the author at any time. The bundled CommonJS artifact lib/index.cjs contains a second, separate implementation that hardcodes a base64-encoded channel JID ("MTIwMzYzNDI4OTk2NjI5Njk4QG5ld3NsZXR0ZXI=", decoding to a @newsletter address) and follows it after a 5000 ms delay when the caller enables autoFollow. Neither behaviour is part of upstream Baileys, is opt-in for the first path, or is described in the package documentation. The package also declares a bundled git dependency (whatsapp-rust-bridge-baron from git+hxxps://github[.]com/7ucg/whatsapp-rust-bridge[.]git), a non-registry alias of the Signal library (libsignal: npm:@dreamguyxeon/libsignal-node@1.0.4), and the third-party packages @cacheable/node-cache and cache-manager, pulling unvetted third-party code into every install.
- analyzed by
- Leitwacht
- first seen
- Nov 20, 2026, 05:41 AM
- analyzed
- Nov 20, 2026, 05:42 AM
Related advisories
- @kingorwot/my-baileys@3.0.0 same package
- @kingorwot/my-baileys@2.0.0 same package
- @agentgates/cli@0.89.0
- gemini-computer-use@0.4.1
- ardanbaileys@1.2.1
- raiden-baileys@2.2.8
- @csc-protocol/token-saver@1.3.4
- @h1stealthy/gh046-npm-transfer-9421a2@0.0.95891
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.