@angkasabaileys/baileys@1.0.2
Malicious code in @angkasabaileys/baileys (npm)
Analysis
@angkasabaileys/baileys is a WhatsApp (Baileys) library fork published under an unofficial scope that imitates the upstream name @whiskeysockets/baileys. Its README states it has "no auto-follow channel (newsletter) behavior", but lib/Socket/newsletter.js does the opposite: it registers a connection.update handler that, each time the library connects, calls the WhatsApp MEX query xwa2_newsletter_join_v2 with the hardcoded channel id 120363431179022660@newsletter, silently enrolling the paired WhatsApp account into that channel without user consent. lib/Utils/messages.js adds a second hardcoded channel, 120363404006644139@newsletter, stored hex-encoded along with a server message id and an encoded channel display name; the decoded ForwardedNewsletterMessageInfo is merged into the annotations of every image and video sent through prepareWAMessageMedia, attributing the user's outbound media to that channel, and fields with no explicit link/URL are rewritten to the author's donation URL hxxps://saweria[.]co/angkasalagibobo (DONATE_URL in lib/Defaults/index.js). The package's only install-time script, engine-requirements.js, just checks that Node.js is version 20 or newer. No credential, token or file exfiltration was found; the library's own network destinations are the normal WhatsApp endpoints such as wss://web[.]whatsapp[.]com/ws/chat.
- analyzed by
- Leitwacht
- first seen
- Nov 28, 2026, 03:36 AM
- analyzed
- Nov 28, 2026, 03:39 AM
hxxps://github[.]com/angkasabaileys/baileys Request takedown / dispute →Related advisories
- @angkasabaileys/baileys@1.0.3 same package
- cdk8s-opinionated-cli@0.5.0
- @veryflore/discord@0.0.0-stage
- @pasqua-dev/baileys@2.8.11
- @pasqua-dev/baileys@2.8.12
- @pasqua-dev/baileys@2.0.0
- alwaysrizz@2.0.0
- @animebails/baileys@0.0.0-stage
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.