dct-dula-dev-baileys@1.0.3
Malicious code in dct-dula-dev-baileys (npm)
Analysis
This package is a trojanized clone of the Baileys WhatsApp-Web library that hijacks the operator's WhatsApp account into following the publisher's channels and acting on their behalf. The injected code lives in lib/Socket/newsletter.js inside makeNewsletterSocket(), so it runs whenever a socket is created. It issues five hardcoded newsletter FOLLOW mutations (Types.QueryIds.FOLLOW over the w:mex newsletter query to s[.]whatsapp[.]net): four channel JIDs are hidden as base64 literals so they never appear as readable strings — MTIwMzYzNDAwNzA2MDEwODI4QG5ld3NsZXR0ZXI= (120363400706010828@newsletter), MTIwMzYzNDIzMjU3NTQ0NjQyQG5ld3NsZXR0ZXI= (120363423257544642@newsletter), MTIwMzYzMzQ5NDU3MTc2NDMwQG5ld3NsZXR0ZXI= (120363349457176430@newsletter), MTIwMzYzNDIxMDUyMDI3MTg4QG5ld3NsZXR0ZXI= (120363421052027188@newsletter) — plus the plaintext 120363408629601473@newsletter. Each of the four encoded JIDs is followed from a 90000 ms timer followed by a nested 5000 ms follow-up, and the plaintext channel is followed from a 30000 ms timer; the delays and encoding keep the subscriptions out of a quick read of the source and out of short-lived execution windows. The same module registers a messages.upsert listener that automatically posts a thumbs-up reaction to every incoming message from 120363408629601473@newsletter, impersonating user activity. lib/Utils/messages.js additionally stamps outgoing media with forwardedNewsletterMessageInfo pointing at 120363400706010828@newsletter ("Dew Coders OFC"). No credential, token, environment-variable, SSH or wallet file access and no destination outside WhatsApp's own endpoints were found in the package; the preinstall hook engine-requirements.js only compares the Node major version and exits. The package declares no repository and points its homepage and bugs URL at the WhatsApp channel 0029VbCbYpSEquiIsz0brA3D.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 08:59 AM
- analyzed
- Nov 15, 2026, 09:00 AM
- weekly installs
- 818
Related advisories
- dct-dula-dev-baileys@1.0.5 same package
- charape@1.0.20
- southern_duck_tan-16@2.4.3
- @atedone/workspace-context@0.0.12
- agent-bypass@2.29.3
- agent-bypass@2.29.2
- agent-bypass@2.29.1
- character-ai-sdk@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.