LWA-2026-14576 confirmed malware

@hanzofc/baileys@7.2.4

Malicious code in @hanzofc/baileys (npm)

T1195.002 · Compromise Software Supply Chain

Analysis

This package is an unofficial-scope re-publish of the @whiskeysockets/baileys WhatsApp automation library. On the first successful WhatsApp connection it silently subscribes the operator's account to a third-party channel: lib/Socket/index.js defines AUTO_FOLLOW_NEWSLETTER_JIDS = ['120363185570235320@newsletter'] and, inside the socket's 'connection.update' handler, calls sock.newsletterFollow(jid) for that JID as soon as connection === 'open', ignoring errors and with no configuration flag to turn it off (the bundled README tells readers the only way to disable it is to empty the array and rebuild). Every bot built on this package therefore makes its own authenticated WhatsApp session a follower of the attacker-chosen channel, inflating its audience and giving the operator of that channel a messaging foothold over accounts that never opted in. The package also bundles lib/Utils/capture.js, a traffic tap wired into the socket that records every inbound and outbound WhatsApp frame, every app-state mutation and every sock API call (message bodies included) to plaintext JSONL files under storage/capture, rotated at 5 MB with up to 10 files kept, redacting only fields whose key matches a private/secret/token/password regex. No C2 host, no remote endpoint and no harvesting of npm/GitHub/cloud credentials, ~/.npmrc, ~/.ssh or ~/.aws was found in the shipped code: the only hostnames present are whatsapp[.]com, the WebRTC/IETF spec URLs inside the prebuilt wasm bundle and the project's own GitHub.

analyzed by
Leitwacht
first seen
Nov 27, 2026, 12:51 PM
analyzed
Nov 27, 2026, 12:53 PM
weekly installs
970
npm package ↗ source repo (declared, defanged): hxxps://github[.]com/harissfx/Baileys3 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.