amiudmodz@4.1.2
Malicious code in amiudmodz (npm)
Analysis
amiudmodz is a modified copy of the Baileys WhatsApp client library that covertly subscribes the user's WhatsApp account to a third-party channel. In lib/Socket/newsletter.js the group-socket setup schedules a 90-second setTimeout that issues a WhatsApp "w:mex" IQ query with the FOLLOW query id against the hardcoded newsletter JID 120363400725985615@newsletter; the response is discarded in an empty try/catch, so the account becomes a follower of that channel with no user action, no prompt and no visible output, and the delay puts the action well after the client has connected. lib/Utils/messages.js also carries the same JID 120363400725985615@newsletter hardcoded next to an upload-cache fixture with newsletterName "z4ph". Upstream Baileys has no such automatic follow. The package further resolves mutable/foreign code at install: cache-manager is declared as "latest" and libsignal from git+hxxps://github[.]com/xhclintohn/libsignal-node. engine-requirements.js only asserts Node.js >= 20. No external HTTP/S upload of credentials, tokens or files was found in the shipped code; the covert channel enrolment happens entirely over the WhatsApp protocol to web[.]whatsapp[.]com.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 08:48 AM
- analyzed
- Nov 15, 2026, 08:55 AM
- weekly installs
- 114
Related advisories
- amiudmodz@5.0.7 same package
- amiudmodz@5.0.8 same package
- amiudmodz@4.0.6 same package
- amiudmodz@6.1.2 same package
- @hbmodsofc/baileys@3.0.0
- raiden-baileys@2.2.7
- @violetix/baileys@0.6.0
- wertybailz@1.0.10
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.