@bellachu/bails@0.0.1
Malicious code in @bellachu/bails (npm)
Analysis
This package is a modified fork of the Baileys WhatsApp Web library (published as @bellachu/bails) that handles WhatsApp account credentials and message encryption. It runs an install-time script (preinstall: node ./engine-requirements.js, a Node version gate) and routes core cryptographic operations md5, hkdf, LTHash anti-tampering and app-state key expansion through two non-standard dependencies instead of the reference implementation: whatsapp-rust-bridge (native module, pinned 0.5.4) and libsignal pinned to a third-party GitHub fork (github:tenka-san/libsignal-node) rather than the published Signal package, so key material is passed to code maintained outside the upstream project. It also declares a runtime dependency on cache-manager (^7.2.8), which resolves to a malicious release. Message-generation code in lib/Socket/luxu.js silently stamps every generated event and poll-result payload with two hardcoded WhatsApp newsletter references (120363421563597486@newsletter, 120363399602691477@newsletter) that the calling code cannot remove, and lib/Socket/messages-send.js wires that module into sendMessage for all outgoing messages so the channel promotion is applied automatically. No command-and-control or exfiltration endpoint was found in the shipped JavaScript; the only URLs in the code are hxxps://web[.]whatsapp[.]com (WhatsApp's own WebSocket origin), the call domains, and a fetch of hxxps://raw[.]githubusercontent[.]com/WhiskeySockets/Baileys/master/src/Defaults/index[.]ts used by fetchLatestBaileysVersion.
- analyzed by
- Leitwacht
- first seen
- Nov 9, 2026, 11:42 PM
- analyzed
- Nov 9, 2026, 11:43 PM
- weekly installs
- 239
Related advisories
- @bellachu/bails@0.0.2 same package
- @barz-dev/baileys@8.4.0
- @alzx7z/baileys@2.0.5
- @baileys-md/baileys@12.2.0
- @arkanhahaha/baileys@1.0.0
- @alzx7z/baileys@2.0.6
- @aboutdisz/baileys@1.0.0
- archetype-index-sdk@0.0.0-stage
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.