@pasqua-dev/baileys@2.8.11
Malicious code in @pasqua-dev/baileys (npm)
Analysis
This WhatsApp Web automation library is a heavily modified fork of the @whiskeysockets/baileys API that installs unwanted behaviour and offensive tooling alongside its advertised features. On the first authenticated WhatsApp connection, lib/Socket/socket.js silently subscribes the user's account to two hardcoded channels ('0029Vb8YB2T90x2zvQLnEb2k@newsletter' and '0029Vb7zXQZD8SDri2PXZu06@newsletter') and stores a PASQUA_FOLLOW_DONE flag in the saved credentials so the subscription is never repeated and never surfaced to the user. It bundles lib/Utils/bug-payloads.js, a generator of deliberately malformed message stanzas built to crash or freeze a recipient's WhatsApp client — deep-nesting, null-byte and zero-width/RTL layout poison, a 16 MB overflow body, phantom device lists, a "groupcrash" payload that poisons group metadata, and a "timebomb" payload that fires when the victim reopens the chat — exposed as sock.sendBugPayload() in lib/Socket/chats.js. It also bundles lib/Utils/identity-chameleon.js, which copies a target contact's profile name, status text and avatar onto the operator's own account to impersonate them. The package additionally declares a dependency range on cache-manager (^7.2.8) that resolves to a release carrying injected malicious code. The preinstall hook (engine-requirements.js) performs only a Node.js version check and reads no credentials or files.
- analyzed by
- Leitwacht
- first seen
- Nov 27, 2026, 07:07 PM
- analyzed
- Nov 27, 2026, 07:13 PM
hxxps://github[.]com/pasquawisdom2007-beep/pasqua-baileys Request takedown / dispute →Related advisories
- @pasqua-dev/baileys@2.8.12 same package
- @pasqua-dev/baileys@2.0.0 same package
- @pasqua-dev/baileys@1.0.0 same package
- alwaysrizz@2.0.0
- @animebails/baileys@0.0.0-stage
- @hanzofc/baileys@7.2.4
- @dekzypedia/baileys@7.0.0-dekzy.3
- @leonoremods/baileys@1.2.9
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.