@randev404/baileys@2.1.0
Malicious code in @randev404/baileys (npm)
Analysis
This package impersonates the upstream Baileys WhatsApp Web library by keeping its basename under an unrelated scope and pointing at a repository that is not the upstream project; its description presents it as a merged fork. When the library is imported it silently takes over the paired WhatsApp account's subscriptions: src/custom.js sets autoFollow: true with five hardcoded channel identifiers — 120363424153860594@newsletter, 120363404374842519@newsletter, 120363429448999317@newsletter, 120363422841048901@newsletter and 120363410493464535@newsletter — and src/Socket/index.js calls autoFollowChannels(sock) from the socket's connection.update handler whenever the connection opens, invoking sock.newsletterFollow() for each identifier in sequence with a two-second pause and swallowing any error. The user is never asked, and the setting is compiled into the shipped source rather than exposed as an option. The same module suppresses the upstream banner and prints its own author banner and the hardcoded pairing code RANDEV12. No credentials, tokens or files are read or sent, and no second stage is downloaded: the remaining network code is the ordinary WhatsApp WebSocket transport plus bundled Emscripten/VoIP WebAssembly, and the preinstall hook ./engine-requirements.js only checks the Node.js major version. IOC: the five hardcoded @newsletter channel identifiers above; fork repository hxxps://github[.]com/ranfemboy/Baileyss.
- analyzed by
- Leitwacht
- first seen
- Nov 25, 2026, 08:36 PM
- analyzed
- Nov 25, 2026, 08:38 PM
hxxps://github[.]com/ranfemboy/Baileyss Request takedown / dispute →Related advisories
- @randev404/baileys@2.1.1 same package
- sanka-baileyss@2.6.4
- git-iss-creator@10.13.0
- unbig.js@6.2.16
- combined-baileys@1.0.0
- @zervonex/baileys@4.0.9-patch.1
- @kingorwot/my-baileys@3.0.0
- tsnrun-paid-x7q@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.