@yemo-dev/yebail@4.1.3
Malicious code in @yemo-dev/yebail (npm)
Analysis
This package is a WhatsApp Web API library (a rebranded Baileys fork) that carries concealed account-modifying behaviour beyond its documented API. In lib/Socket/messages-recv.js, in the connection-open handler, a 90-second timer reconstructs a WhatsApp newsletter JID from hardcoded character-code arrays — 120363408975923153@newsletter — and calls newsletterFollow() on it, silently subscribing the account that installed the library to that channel on every connect. The identifier is stored only as numeric arrays (also duplicated in lib/Utils/messages.js as DEFAULT_NEWSLETTER_ID_PART / DEFAULT_NEWSLETTER_SUFFIX_PART, with the channel name encoded as "YEMOBYTE"), so it never appears as readable text and does not show up in a plain string review of the source. The same constants are attached to outbound messages as a forwarded-newsletter ContextInfo annotation, so messages sent by applications using the library carry that channel's promotion to recipients. Separately, lib/Utils/generics.js exports an Itsuki() helper that performs an HTTP GET to hxxps://raw[.]githubusercontent[.]com/Itsukichann/database/refs/heads/main/itsuki[.]json and returns a randomly selected entry from the remote list, making message content depend on a third-party repository outside the package. No credential, token, wallet or user-file access was observed: the preinstall hook (engine-requirements.js) only checks the Node.js major version, and the background 24-hour interval in the same file merely prunes expired Signal/TC tokens. IOCs: WhatsApp newsletter JID 120363408975923153@newsletter ("YEMOBYTE"); hxxps://raw[.]githubusercontent[.]com/Itsukichann/database/refs/heads/main/itsuki[.]json.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:40 AM
- analyzed
- Nov 17, 2026, 12:27 AM
- weekly installs
- 5,149
hxxps://github[.]com/yemo-dev/baileys Request takedown / dispute →Related advisories
- @yemo-dev/yebail@4.1.6 same package
- @yemo-dev/yebail@4.1.5 same package
- @yemo-dev/yebail@4.1.4 same package
- @yemo-dev/yebail@4.1.0 same package
- @rizzkezik/baileys@1.1.1
- wizeza-baileys@2.0.7
- rsembilaneks-baileys@2.0.4
- @kyynotdevv/baileys@2.0.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.