@zervonex/baileys@4.0.4-final
Malicious code in @zervonex/baileys (npm)
Analysis
@zervonex/baileys@4.0.4-final is a second publish of the same unofficial-scope copy of the WhiskeySockets/Baileys WhatsApp Web library, with the same byte-identical added behaviour. lib/Socket/newsletter.js hardcodes two WhatsApp channel JIDs in AUTO_FOLLOW_JIDS ('120363422827915475@newsletter' and '120363409522637051@newsletter'); on every 'connection' -> 'open' event the library issues a newsletter-join query (XWAPaths.xwa2_newsletter_join_v2) for both channels on the user's own account, repeats it every 30 seconds via setInterval, and sets ADMIN_NOTIFICATIONS to false on those channels. The behaviour is enabled by default (lib/Defaults/index.js ships autoFollowNewsletter: true) and only stops when the caller explicitly sets autoFollowNewsletter: false. WAProto/fetcher.js additionally downloads hxxps://raw[.]githubusercontent[.]com/nexustechpro2/baileys/wa-cache/wa-version[.]json and hxxps://raw[.]githubusercontent[.]com/nexustechpro2/baileys/wa-cache/WAProto[.]bundle[.]js every 24 hours, and WAProto/parser.js transforms the fetched bundle into WAProto/WAProto.proto before WAProtoCompile.js regenerates WAProto.json, giving the publisher a mutable, non-commit-pinned content path into the running library. The package also declares a preinstall hook (node ./engine-requirements.js, a Node version check) and depends on @cacheable/node-cache and cache-manager. The name imitates the canonical @whiskeysockets/baileys library under a different scope.
- analyzed by
- Leitwacht
- first seen
- Nov 16, 2026, 10:17 PM
- analyzed
- Nov 16, 2026, 10:18 PM
- weekly installs
- 16,111
hxxps://github[.]com/nexustechpro2/baileys Request takedown / dispute →Related advisories
- @zervonex/baileys@4.0.9-patch.1 same package
- @zervonex/baileys@4.0.9 same package
- @zervonex/baileys@4.0.8 same package
- @zervonex/baileys@4.0.7 same package
- @zervonex/baileys@4.0.6-final same package
- @zervonex/baileys@4.0.5-final same package
- @zervonex/baileys@4.0.4 same package
- lodash-base-unary@0.0.0-stage
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.