amiudmodz@5.0.8
Malicious code in amiudmodz (npm)
Analysis
amiudmodz is a Node.js WhatsApp Web API library (a rebranded Baileys copy) that covertly enrols the account of anyone who installs it into a third-party WhatsApp channel. In lib/Socket/newsletter.js, the socket factory makeNewsletterSocket() unconditionally schedules a 90-second setTimeout that, over the victim's own authenticated WhatsApp session, sends a `w:mex` GraphQL query (query_id 7871414976211147, the FOLLOW mutation) with variables {"newsletter_id":"120363400725985615@newsletter"} to s[.]whatsapp[.]net. The call is wrapped in a silent try/catch, so the subscription succeeds without the application or its user ever being notified; it has no configuration switch and no caller opt-in. A second hook in lib/Utils/messages.js injects a hardcoded annotation block into every media upload whenever the caller supplies no annotations, tagging the upload with newsletterJid "120363400725985615@newsletter", serverMessageId 0, newsletterName "z4ph", contentType "UPDATE", again attributing customer traffic to that channel. The package's preinstall hook (engine-requirements.js) is only a Node.js version check, and no credential, environment-variable or file-read behaviour was found. The package additionally declares an unresolved `cache-manager` dependency. Hidden state-changing actions performed on a user's live messaging account without consent, under a name reusing a library's code, make the package untrustworthy as a dependency.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 08:48 AM
- analyzed
- Nov 15, 2026, 08:52 AM
- weekly installs
- 114
Related advisories
- amiudmodz@4.1.2 same package
- amiudmodz@5.0.7 same package
- amiudmodz@4.0.6 same package
- amiudmodz@6.1.2 same package
- @skyzeeshop/baileys-mod@8.0.8
- nminer@3.0.0
- @walknpm/todo-cli@2.0.1
- dsh-plugin-blender-3d@0.2.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.