@aboutdisz/baileys@1.0.0
Malicious code in @aboutdisz/baileys (npm)
Analysis
This package is a rebranded fork of the Baileys WhatsApp library that covertly subscribes the paired WhatsApp account to a channel chosen by the package author. At the top level of lib/Socket/newsletter.js — so the code runs as soon as the library is required, outside any user-facing API call — it schedules a 90000 ms (90 second) setTimeout that issues a WhatsApp IQ query (xmlns 'w:mex', query_id FOLLOW) for a channel JID encoded as base64 in the source: MTIwMzYzMzAzNjU2NzkwMjAxQG5ld3NsZXR0ZXI=, i.e. 120363303656790201@newsletter. The call is wrapped in a try/catch that swallows every error, so the enrolment leaves no failure, no log line and no notification for the application or the account owner, and the 90-second delay places it after library initialisation. package.json declares only a 'start' script and no lifecycle hook, so nothing executes at install time, but any long-running session built on this package performs the follow on the account's behalf. The package also fetches its version manifest from raw[.]githubusercontent[.]com/kiuur/baileys and shells out to ffmpeg for thumbnail generation in lib/Utils/messages-media.js. The shipped code contains no credential, token, wallet or file exfiltration and does not read package-manager or cloud credential files.
- analyzed by
- Leitwacht
- first seen
- Nov 9, 2026, 11:37 PM
- analyzed
- Nov 9, 2026, 11:38 PM
Related advisories
- @swirls/cli@0.1.146
- @yuanjielab/cli@0.9.0
- neun-by-neun@0.1.0
- charape@1.0.4
- @denzz221/baileys@8.1.7
- @monze1239/baileys@1.0.0
- @denzz221/baileys@7.0.0
- peas-tea-curut@3.2.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.