@silent404/baileys@7.0.0
Malicious code in @silent404/baileys (npm)
Analysis
@silent404/baileys is an unofficial fork of the WhiskeySockets Baileys WhatsApp Web library published under an unrelated scope, presenting itself as a "custom patched version of Baileys" while reusing the upstream package basename, and it is not the @whiskeysockets/baileys project. Installing it executes code on the installer's machine: a preinstall lifecycle hook runs ./engine-requirements.js, and the dependency tree pulls libsignal from a mutable git URL (git+hxxps://github[.]com/whiskeysockets/libsignal-node[.]git) rather than a pinned registry version, so install-time code is resolved from a branch reference rather than an immutable artifact. The package also adds a whatsapp-rust-bridge dependency whose wasm-bindgen glue builds functions dynamically in the Signal crypto paths (lib/Utils/crypto.js, lib/Utils/lt-hash.js, lib/Utils/chat-utils.js). No C2 host, credential or token harvesting, or executable payload was found in the shipped bytes of versions 7.0.0 and 7.0.1: all outbound endpoints in the code are upstream WhatsApp and GitHub resources (wss://web[.]whatsapp[.]com, web[.]whatsapp[.]com/sw.js, raw[.]githubusercontent[.]com/WhiskeySockets/Baileys, mmg[.]whatsapp[.]net), there are no process.env reads, no access to .npmrc/.ssh/.aws or wallet files, and no obfuscated payload. Treat the risk as package-identity impersonation plus install-time execution under an unverified fork identity; users should install the canonical @whiskeysockets/baileys instead.
- analyzed by
- Leitwacht
- first seen
- Nov 23, 2026, 12:51 AM
- analyzed
- Nov 23, 2026, 12:54 AM
hxxps://github[.]com/Silent404Project/Baileys Request takedown / dispute →Related advisories
- @silent404/baileys@7.2.2 same package
- @silent404/baileys@7.2.1 same package
- @silent404/baileys@7.0.4 same package
- @silent404/baileys@7.0.2 same package
- dependent-final@1.0.3
- hushed_zebra_green-81@2.4.2
- aia-b-locator-fe@1.0.2
- aia-b-locator-fe@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.