LWA-2026-13673 MAL-2026-18675 ↗ confirmed malware

@denzz221/baileys@8.0.5

Malicious code in @denzz221/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1102 · Web ServiceT1565 · Data Manipulation

Analysis

@denzz221/baileys is a fork of the baileys WhatsApp library that covertly manipulates the linking account and the messages it sends, while shipping the rest of the upstream library unchanged (including its 8.4 MB WAProto protobuf bundle). 1. Covert channel auto-follow. In lib/Socket/newsletter.js, inside makeNewsletterSocket(), code that does not exist upstream runs unconditionally: a 90-second timer then sends a newsletter FOLLOW query for the hardcoded channel "120363400780200098@newsletter". makeNewsletterSocket() is called by lib/Socket/messages-send.js, so every socket the library creates — not only code that uses newsletter APIs — enrols the linked WhatsApp account as a follower of that channel, with no notification and no configuration flag. 2. Forged attribution injected into outgoing messages. lib/Utils/messages.js injects a hardcoded forwardedNewsletterMessageInfo block into the contextInfo of media messages ("newsletterName": "kyuu ilysm", "newsletterJid": "120363420249672073@newsletter", serverMessageId 0, contentType "UPDATE"). lib/Socket/dugong.js injects a similar block ("newsletterName": "shenvn.", "newsletterJid": "120363297591152843@newsletter", serverMessageId 1) into event messages, so messages the user sends carry a planted channel/forwarding attribution. 3. Replaced crypto dependency built from source. package.json swaps the official libsignal dependency for "libsignal": "github:denzz221/libsignal-node", a fork fetched from GitHub and compiled during install, and adds a preinstall hook (engine-requirements.js) that only enforces Node >= 20. The E2E session/encryption layer is thus supplied by a fork outside the package contents. All network destinations in the package are web[.]whatsapp[.]com and *.whatsapp[.]net (wss://web[.]whatsapp[.]com/ws/chat); no attacker-operated HTTP host, no credential or wallet file access and no obfuscated payload appear in the shipped code. The malicious behaviour is the hidden account manipulation and message forgery, not exfiltration. IOCs (WhatsApp channel JIDs): 120363400780200098@newsletter (auto-followed 90s after connect), 120363420249672073@newsletter ("kyuu ilysm"), 120363297591152843@newsletter ("shenvn."). Referenced repositories: github[.]com/denzz221/Bailey and the libsignal fork github[.]com/denzz221/libsignal-node.

analyzed by
Leitwacht
first seen
Nov 5, 2026, 05:22 AM
analyzed
Nov 5, 2026, 05:35 AM
weekly installs
223

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.