@pasqua-dev/baileys@1.0.0
Malicious code in @pasqua-dev/baileys (npm)
Analysis
This package republishes a WhatsApp Web automation library under the name "baileys" in a scope that is not the canonical publisher, and bundles abuse-oriented code beyond the upstream library. lib/Utils/bug-payloads.js builds messages explicitly intended to crash, freeze or glitch recipient WhatsApp clients: 1500-level nested tag alternation (nesting), 1024 null-byte injections interleaved with bidi characters (nullbyte), ~50k zero-width and RTL-override sequences (glitchdot), a 16 MB invisible-separator body (overflow), corrupted media metadata, and 2048 phantom device entries with oversized identity keys (deviceinfo). These are sent via sock.sendBugPayload, wired up in lib/Socket/chats.js. The package also ships lib/antiban.cjs, a full "anti-ban" evasion layer that randomises and throttles sending to avoid WhatsApp ban detection and can forward alerts to configured webhook, Telegram bot or Discord webhook URLs. Its own network traffic targets WhatsApp/Meta endpoints (web[.]whatsapp[.]com, api[.]whatsapp[.]com, graph[.]whatsapp[.]com, call[.]whatsapp[.]com) plus caller-supplied URLs for media and link previews; the preinstall hook only enforces Node.js >= 20. No hardcoded command-and-control host or install-time exfiltration of the installer's credentials was found.
- analyzed by
- Leitwacht
- first seen
- Nov 9, 2026, 01:35 AM
- analyzed
- Nov 9, 2026, 01:39 AM
Related advisories
- osinthell@1.9.5
- @zaiinlin/bails@1.0.7
- @jexkcode/baileys@1.3.1
- sauruspro-bail@5.0.2
- charape@1.0.20
- @yuanjielab/cli@0.10.1
- @memtensor/memos-cloud-openclaw-plugin@0.1.22
- raiden-baileys@2.2.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.