LWA-2026-14334 confirmed malware

@outlaw1/baileys@0.0.4

Malicious code in @outlaw1/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1027 · Obfuscated Files or InformationT1059.007 · JavaScript

Analysis

This package presents itself as an "enhanced" fork of the WhiskeySockets/Baileys WhatsApp multi-device library and uses that project's package name under a scope that is not the upstream project's. Most of the source tree is published as readable ES module source, but two library modules — lib/Utils/messages.js and lib/Socket/newsletter.js — are shipped as javascript-obfuscator output: a rotated base64 string array with single-byte XOR encoding, `_0x` identifier renaming, a String.fromCharCode/decodeURIComponent string decoder and a control-flow-flattened bootstrap. The string values those two files actually use (URLs, paths, commands) therefore never appear in published form, and differ in kind from the same files in the project it claims to be a fork of; the package also ships an editor-backup copy of lib/Socket/messages-send.js (lib/Socket/messages-send.js.bak) next to the executed file. The manifest declares a preinstall hook, "preinstall": "node ./engine-requirements.js"; that script only performs a Node.js version check and is not itself the carrier of the obfuscated logic, which executes when the library is imported. No plaintext C2 endpoint, credential path or environment-variable access could be recovered from the shipped bytes, so no network IOC is asserted here. Treat any project that depends on this name at this version as having loaded untrusted obfuscated code into the process that runs its WhatsApp session.

analyzed by
Leitwacht
first seen
Nov 19, 2026, 07:06 PM
analyzed
Nov 19, 2026, 07:12 PM
npm package ↗ source repo (declared, defanged): hxxps://github[.]com/LORDMEGA-MD/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.