LWA-2026-14306 confirmed malware

@japofc/baileys@2.4.9

Malicious code in @japofc/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1553.002 · Code Signing / Trusted Dependency Subversion

Analysis

@japofc/baileys@2.4.9 is a WhatsApp Web automation fork republished under the unofficial @japofc scope with the same package basename as @whiskeysockets/baileys. Its package.json declares a runtime dependency on "@cacheable/node-cache": "^3.0.1", a semver range that resolves to a known-malicious release of that package, so a fresh install of this package pulls the compromised version into the installer's dependency tree; the import is real (lib/Socket/messages-send.js, lib/Socket/messages-recv.js and lib/Socket/chats.js all import NodeCache from it). The package also exact-pins an optional native addon, "whatsapp-rust-bridge": "0.5.5", which is loaded via dynamic import in lib/Utils/lt-hash.js and lib/Utils/crypto.js and therefore executes native code in the host process when app-state/crypto helpers are used. Otherwise the tarball is a large, documented WhatsApp library (26MB, WAProto protobuf bundle, lib/assets/wasm/whatsapp.wasm); its own network calls target web[.]whatsapp[.]com and, for the opt-in voice-note transcription provider, api[.]openai[.]com with the caller's own key. No credential-harvesting code was found in this tarball; the exposure for installers comes from the malicious dependency pulled in at install time and from the impersonated scope.

analyzed by
Leitwacht
first seen
Nov 18, 2026, 05:21 PM
analyzed
Nov 18, 2026, 05:23 PM
npm package ↗ source repo (declared, defanged): hxxps://github[.]com/JAPofc/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.