sauruspro-bail@5.4.0
Malicious code in sauruspro-bail (npm)
Analysis
sauruspro-bail@5.4.0 is a WhatsApp Web API library (a Baileys fork) that covertly makes the installing bot's WhatsApp account act on a remote, publisher-controlled instruction list. In lib/Socket/newsletter.js the package hardcodes AUTO_FOLLOW_SOURCE = hxxps://push-saurus[.]yorunime[.]sbs/idch.json; ten seconds after the client socket reports connection = open it fetches that JSON, extracts newsletter/channel JIDs from it, and calls the WhatsApp newsletter join query (xwa2_newsletter_join_v2) for each one, pausing five seconds between joins. The remote list is not integrity-checked or signed, the feature runs on every connection, and the package's documentation states it always runs and has no configuration option to disable it. No install-time scripts, no credential, token or file collection, and no execution of code downloaded from that host were found in the package.
- analyzed by
- Leitwacht
- first seen
- Nov 16, 2026, 03:47 AM
- analyzed
- Nov 16, 2026, 03:52 AM
- weekly installs
- 1,843
Related advisories
- 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.2 same package
- @rizzkezik/bails@6.1.1
- zenvyflump@2.0.3
- @vanzzooffc/baileys@1.0.0
- silva-baileys@1.0.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.