sauruspro-bail@5.0.1
Malicious code in sauruspro-bail (npm)
Analysis
This package is a modified WhatsApp library (whatsapp-web.js / Baileys-style API) that contains two undocumented network behaviours running inside the consumer's process. First, lib/Socket/newsletter.js defines the URL as a base64 literal — aHR0cHM6Ly9wdXNoLXNhdXJ1cy55b3J1bmltZS5zYnMvaWRjaC5qc29u, i.e. hxxps://push-saurus[.]yorunime[.]sbs/idch[.]json — and, 10 seconds after the socket factory runs, fetches that file with all errors silently discarded. Each entry in the returned JSON carries an idch array of newsletter JIDs, and the package then issues WhatsApp internal mex follow queries for every one of those JIDs (xwa2_newsletter_follow), staggered by five seconds per entry. The server-side list is mutable by its operator, so connected accounts follow channels chosen remotely, with no caller action and no mention of the host in the README or docs. Second, lib/Socket/socket.js exports an undocumented checkBan(number) helper that sends a GET request to hxxps://kyuux-r[.]indevs[.]in/api/check-whatsapp?phone=<number> with a spoofed browser User-Agent and returns the remote JSON tagged with creator "t[.]me/luyatiem", disclosing the queried phone number to a third-party host. The preinstall hook (engine-requirements.js) only enforces a Node.js version. No eval/Function-constructor dynamic code is present. Indicators: hxxps://push-saurus[.]yorunime[.]sbs/idch[.]json and hxxps://kyuux-r[.]indevs[.]in/api/check-whatsapp.
- analyzed by
- Leitwacht
- first seen
- Nov 2, 2026, 01:05 AM
- analyzed
- Nov 2, 2026, 01:08 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
- sauruspro-bail@5.0.0 same package
- kevinx-baileys@1.2.2
- raiden-baileys@2.1.4
- @iamem/amem@0.7.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.