wizeza-baileys@2.0.6
Malicious code in wizeza-baileys (npm)
Analysis
This package is a fork of the WhatsApp Baileys library ("WhatsApp Baileys Modification") that silently enrols the victim's WhatsApp account into attacker-chosen channels and hardcodes an attacker channel into the messages it sends. lib/Socket/newsletter.js contains an unexported, self-invoking block (lines 106-121): after a 10 second delay it fetches hxxps://raw[.]githubusercontent[.]com/hamzahkunnu-web/idchh/refs/heads/main/wizeza[.]json, parses the response as a JSON array of newsletter ids, then for each entry waits 5 seconds and sends a WhatsApp newsletter FOLLOW query (query id FOLLOW via the w:mex newsletter endpoint) for that id, silently swallowing any error. The channel list therefore lives in a repository file controlled by the author and can be changed at any time after publication, making it a remotely maintained enrolment list rather than a fixed value. A fixed channel is also hardcoded: "120363418964199743@newsletter" / "SAURUS OFFICIAL" is force-injected into the annotations.newsletter field of every outbound media message in lib/Utils/messages.js (lines 107-112) and into forwardedNewsletterMessageInfo of quoted status replies in lib/Socket/dugong.js (lines 528-532), which attributes the victim's own sent messages and status quotes to that channel. The package declares a preinstall hook running ./engine-requirements.js, but that file only checks the Node.js major version. No credential, token or key files are read. Network IOCs: raw[.]githubusercontent[.]com (hamzahkunnu-web/idchh/refs/heads/main/wizeza.json) and the WhatsApp web socket used by the library itself.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:54 AM
- analyzed
- Nov 16, 2026, 12:21 AM
- weekly installs
- 338
Related advisories
- wizeza-baileys@2.0.7 same package
- mid-baileys@0.7.26
- @jiancodes/baileys@2.0.3
- @zetagoaurum-socket/wasocket@2.2.2
- silva-baileys@1.0.4
- testpackage83@1.0.1
- mid-baileys@0.7.30
- @wanzforme/bails@7.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.