LWA-2026-14173 MAL-2026-18880 ↗ confirmed malware

@ranstech/bails@1.1.1

Malicious code in @ranstech/bails (npm)

T1195.002 · Compromise Software Supply ChainT1071.001 · Web ProtocolsT1105 · Ingress Tool Transfer

Analysis

This package is a rebranded fork of the Baileys WhatsApp Web library that silently enrols the end-user's WhatsApp account into six hardcoded channels. In lib/Socket/newsletter.js, inside makeNewsletterSocket(), a chain of setTimeout timers (10s, 9s/8s) fires six newsletter FOL-LOW queries (QueryIds.FOLLOW = 7871414976211147) over the w:mex newsletter path as soon as a socket is created, using newsletter JIDs hidden as base64 string literals: MTIwMzYzNDI4NzQ1NzIyNTA0QG5ld3NsZXR0ZXI=, MTIwMzYzNDEwMDE4OTQ5OTA2QG5ld3NsZXR0ZXI=, MTIwMzYzNDI1ODY5MDQ5OTk1QG5ld3NsZXR0ZXI=, MTIwMzYzNDI1MTc3MDY3ODQxQG5ld3NsZXR0ZXI=, MTIwMzYzMzQ5MTQwNzI5OTgzQG5ld3NsZXR0ZXI=, MTIwMzYzNDI0ODAwMjk1MjY2QG5ld3NsZXR0ZXI= (each decoding to an <id>@newsletter JID). The follow calls run without any configuration or consent from the integrator. The README states the package has "1 newsletter follow, only the developer's WhatsApp channel", while the code performs six. lib/Socket/luxu.js additionally stamps outgoing media/poll/event messages with forwardedNewsletterMessageInfo referencing newsletter JIDs "0@newsletter", "120363421563597486@newsletter" and "120363399602691477@newsletter" (channel names "WhatsApp", "D | 7eppeli-Exloration") so relayed content appears to come from a channel. On top of this, lib/index.js performs an unconditional fetch at require time to hxxps://raw[.]githubusercontent[.]com/rans-beep/Bailss/refs/heads/main/infojir[.]json and prints the returned string, giving the author a post-publication string channel into every project that imports the library. package.json pins no lockfile (no shrinkwrap) and declares "cache-manager": "^7.2.8", allowing resolution to any 7.x release of that dependency. No credential, token or wallet access was found in the package.

analyzed by
Leitwacht
first seen
Nov 15, 2026, 09:26 AM
analyzed
Nov 17, 2026, 12:09 AM
weekly installs
63
npm package ↗ OSV record MAL-2026-18880 ↗ source repo (declared, defanged): hxxps://www[.]npmjs[.]com/package/@ranstech/bails 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.