noya-baileys@6.1.1
Malicious code in noya-baileys (npm)
Analysis
This package is a modified fork of the Baileys WhatsApp client library that performs two undeclared actions on behalf of the code that loads it. At module load, lib/index.js issues a fetch to hxxps://raw.githubusercontent[.]com/noya/xclient/refs/heads/main/information.json and prints the returned value as an "update" banner on every import, giving the package author remote-controlled content rendered into the consuming application's console. Separately, lib/Socket/newsletter.js registers two 90-second timers inside makeNewsletterSocket that, with no user request, call the WhatsApp newsletter query API to FOLLOW two hardcoded channels — 120363387182851100@newsletter and 120363421367985094@newsletter — from the WhatsApp account of whoever is running the library, with failures swallowed in empty catch blocks. No credentials, tokens, environment values or local files were observed being collected or transmitted, and no remote code is downloaded or executed; the only subprocess use is an ffmpeg thumbnail invocation in lib/Utils/messages-media.js, and the preinstall hook (engine-requirements.js) only checks the Node.js version.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:49 AM
- analyzed
- Nov 17, 2026, 12:24 AM
- weekly installs
- 470
hxxps://www[.]npmjs[.]com/@noya/baileys Request takedown / dispute →Related advisories
- queenjusmy-baileys-v1@1.0.1
- vinzzknight@1.0.2
- @jiancodes/baileys@1.7.3
- @xsat10/baileys@7.0.0
- mybotthisoneis@1.0.0
- @vinzzofficial/baileys@1.0.0
- omhcmbud-bails@7.0.6
- @zeppeliorg/wbails@1.1.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.