sauruspro-bail@5.0.2
Malicious code in sauruspro-bail (npm)
Analysis
This package is a modified fork of the Baileys WhatsApp Web library (combosquat name, "sauruspro-" prepended to the real "baileys" name) that ships a hidden, remotely controlled payload in addition to the upstream code. In lib/Socket/newsletter.js, the function makeNewsletterSocket() decodes a base64 constant to the URL hxxps://push-saurus[.]yorunime[.]sbs/idch[.]json. Ten seconds after the socket object is created — with no user action, option or prompt — it fetches that JSON and, for every JID in each entry's "idch" array, calls the WhatsApp newsletter-follow operation (QueryIds.FOLLOW / xwa2_newsletter_follow), staggered 5 seconds apart, with all errors silently swallowed. Every application that connects therefore enrolls the user's WhatsApp account into a list of channels that the package author can change at any time from that remote endpoint; the endpoint is base64-encoded to keep it out of plain view. The same package also sends data to a second unaffiliated host: lib/Socket/socket.js (checkBan) issues GET hxxps://kyuux-r[.]indevs[.]in/api/check-whatsapp?phone=<number> with a spoofed desktop-browser User-Agent and stamps the response with the hardcoded attribution string "t[.]me/luyatiem". lib/Socket/luxu.js hardcodes WhatsApp newsletter identifiers 120363418964199743@newsletter and 120363429190136593@newsletter, which are attached as forwardedNewsletterMessageInfo to relayed messages, stamping outgoing messages with the author's channel. The package also declares a runtime dependency on cache-manager ^7.2.8. Its preinstall hook (engine-requirements.js) only checks the Node.js version.
- analyzed by
- Leitwacht
- first seen
- Nov 7, 2026, 04:50 AM
- analyzed
- Nov 7, 2026, 05:20 AM
- weekly installs
- 1,843
Related advisories
- sauruspro-bail@5.4.0 same package
- sauruspro-bail@5.3.3 same package
- sauruspro-bail@5.3.2 same package
- sauruspro-bail@5.3.1 same package
- nullsub@1.11.15
- nullsub@1.11.16
- gugodapis@1.0.0
- calkyippie@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.