amanexfujimiya-baileys@8.6.25
Malicious code in amanexfujimiya-baileys (npm)
Analysis
This package is a modified WhatsApp (Baileys) client library that covertly enrols the connecting account into an unknown WhatsApp channel and forges that channel's attribution onto outgoing messages. In lib/Socket/newsletter.js a top-level setTimeout fires 90 seconds after the module is loaded and sends a w:mex FOLLOW query for the channel identifier 120363407277177688@newsletter (stored base64-encoded as MTIwMzYzNDA3Mjc3MTc3Njg4QG5ld3NsZXR0ZXI=); every error is swallowed, so the subscription happens silently and is not described anywhere in the package. In lib/Socket/rahmad.js (class kikyy, required from lib/Socket/messages-send.js) every generated message is given forwardedNewsletterMessageInfo {newsletterJid: 120363407277177688@newsletter, newsletterName: "shenvn."} plus fabricated forwardingScore 99999, isForwarded, disappearingMode and businessMessageForwardInfo fields, so traffic sent by the application appears forwarded from and attributed to that channel. The preinstall hook engine-requirements.js only checks the Node.js major version (>=20). No credentials, tokens, environment variables, .npmrc, SSH or cloud key files are read, and the only network destinations in the code are the WhatsApp service (wss://web[.]whatsapp[.]com/ws/chat, v[.]whatsapp[.]net) and the npm registry; the injected behaviour uses WhatsApp's own protocol rather than a separate controller host.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:01 AM
- analyzed
- Nov 15, 2026, 09:04 AM
- weekly installs
- 695
Related advisories
- amanexfujimiya-baileys@8.6.26 same package
- @devil-fight/baileys@1.0.5
- @xzvbailss/baileys@6.0.8
- sol-wallet-adapater@1.0.2
- base65-77x@0.0.0-stage
- base65-15x@5.0.2
- base65-77x@5.0.2
- @tedbrain/vlink@0.1.119
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.