LWA-2026-13875 MAL-2026-18861 ↗ confirmed malware

@langitdeveloper/baileys@2.1.9

Malicious code in @langitdeveloper/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1102 · Web ServiceT1071.001 · Web ProtocolsT1078 · Valid Accounts

Analysis

This package is an unofficial fork of the @whiskeysockets/baileys WhatsApp Web library published under a different scope, and it modifies what happens to the account that pairs through it. In lib/Socket/newsletter.js the socket factory hardcodes a newsletter/channel identifier, 120363426930096454@newsletter, and 90 seconds after the WhatsApp socket is created it issues a w:mex FOLLOW query for that channel to S_WHATSAPP_NET, so accounts connected through this library are silently enrolled in that channel with no user consent or visible prompt. The same module exposes newsletterFollow, newsletterUnfollow and newsletterMetadata. lib/Socket/chats.js ships and exports reqPairing(number, count, config), which requests WhatsApp pairing codes for an arbitrary phone number in a loop — count iterations spaced 30 seconds apart, logging "Spam i/count" — i.e. tooling for mass pairing-code abuse of the messaging service. lib/Utils/bot-toolkit.js exposes aiMahiru(), which reads process.env.ANTHROPIC_API_KEY and POSTs it along with caller-supplied error text and source code to hxxps://api[.]anthropic[.]com/v1/messages; that key is sent only to Anthropic's official API endpoint. The declared preinstall hook, engine-requirements.js, only verifies that Node.js 20 or newer is in use. The package contains no code that reads or transmits npm or GitHub tokens, cloud credential files, SSH keys, wallet data or arbitrary local files.

analyzed by
Leitwacht
first seen
Nov 9, 2026, 11:56 PM
analyzed
Nov 10, 2026, 05:59 AM

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.