LWA-2026-14395 MAL-2026-20362 ↗ confirmed malware

@zervonex/baileys@4.0.9-patch.1

Malicious code in @zervonex/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1036 · Masquerading

Analysis

This package is an unofficial fork of the Baileys WhatsApp Web API that adds behaviour beyond the upstream library. On each successful WhatsApp connection it follows two hardcoded newsletter channels on the connected account — 120363422827915475@newsletter and 120363409522637051@newsletter — by issuing the xwa2_newsletter_join_v2 follow query with QueryIds.FOLLOW after a 3-second delay, and then repeats that follow for both channels on a 30-second interval. The switch governing this, autoFollowNewsletter, is set to true in lib/Defaults/index.js, so the connected account is enrolled into those channels unless the caller explicitly passes autoFollowNewsletter: false to makeWASocket. Separately, WAProto/fetcher.js downloads wa-version.json and WAProto.bundle.js every 24 hours from hxxps://raw[.]githubusercontent[.]com/nexustechpro2/baileys/wa-cache, records the version and content hash in WAProto/.cache.json, streams the bundle to WAProto.bundle.tmp and writes the parsed protocol definition into WAProto/WAProto.proto inside the installed package directory — protocol definitions used by the client therefore refresh from a branch outside the npm registry at the publisher's discretion, and a changed bundle is applied on the next run because it is compared only by hash. The preinstall hook (engine-requirements.js) only checks the Node.js major version and exits on Node < 20. No token, .npmrc, SSH, AWS or wallet material is read or transmitted, and the only environment variables touched are TMPDIR, VIPS_TMPDIR, VIPS_DISC_THRESHOLD and FFMPEG_PATH for media handling.

analyzed by
Leitwacht
first seen
Nov 21, 2026, 01:06 PM
analyzed
Nov 21, 2026, 01:07 PM
weekly installs
16,111
npm package ↗ OSV record MAL-2026-20362 ↗ source repo (declared, defanged): hxxps://github[.]com/nexustechpro2/baileys Request takedown / dispute →

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.