supunmd-baileys@0.0.1
Malicious code in supunmd-baileys (npm)
Analysis
supunmd-baileys@0.0.1 is a fork of the Baileys WhatsApp Web library that injects the author's WhatsApp channel identities into every message the host application sends. In lib/Socket/luxu.js two channel IDs are hardcoded — 120363421563597486@newsletter (labelled "Edgar") and 120363399602691477@newsletter — and attached as forwardedNewsletterMessageInfo, together with forged metadata: forwardingScore 1 and 99999, isForwarded true, a full set of fabricated disappearingMode initiators, and a supportPayload marking the message as an AI message. Album, event and poll-result messages that an application using this library sends therefore display as forwarded from those channels rather than as the application's own content. The manifest additionally declares a dependency on cache-manager ^7.2.8, which resolves to 7.2.10 — a release of that library with a known-malicious version — so installing this package pulls that code into the installer's dependency tree. The package also exposes sock.checkBanStatus (lib/Socket/ban-checker.js), which queries hxxps://api[.]whatsapp[.]com/send?phone=… and WhatsApp's USync device protocol to determine registration and ban status for arbitrary phone numbers. Its preinstall hook (node ./engine-requirements.js) only checks the Node.js major version and makes no network calls.
- analyzed by
- Leitwacht
- first seen
- Nov 27, 2026, 01:51 AM
- analyzed
- Nov 27, 2026, 01:54 AM
hxxps://www[.]npmjs[.]com/package/supunmd-baileys Request takedown / dispute →Related advisories
- @rizzkezik/bailseys@6.7.10
- @zeppeliorg/wbails@1.1.7
- @yemo-dev/yebail@4.1.3
- @rizzkezik/baileys@1.1.1
- wizeza-baileys@2.0.7
- rsembilaneks-baileys@2.0.4
- @kyynotdevv/baileys@2.0.4
- ryuubail@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.