Malicious code in raiden-baileys (npm)
Description
Malicious package. raiden-baileys is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). on connection it issues an authenticated w:mex newsletter FOLLOW mutation (query_id 7871414976211147) that silently subscribes every victim to attacker-controlled WhatsApp channels — hardcoded newsletter JIDs: 120363407277177688@newsletter, 120363407702752541@newsletter, 120363411769951302@newsletter. Legitimate Baileys never hardcodes a channel JID or auto-follows on connect; all published versions are malicious.
package.json declares the libsignal dependency as github:RahmadTenpoles/libsignal-node with no commit SHA, tag, or integrity hash. On npm install, this resolves to whatever the default branch of that personal GitHub repository currently contains, including any lifecycle scripts, and executes them on the installer's machine. The source is a personal account unrelated to the official libsignal publisher, and the repository owner can push new code at any time to retroactively change what every subsequent install runs. The declared dependency key equals the standard name libsignal, so the override silently substitutes a third-party fork for what would otherwise resolve from the registry — a dependency-confusion-shaped override. The package also presents itself as a fork of the Baileys WhatsApp library (raiden-baileys), a lookalike naming pattern against the widely used @whiskeysockets/baileys family.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Affected versions
References
wormsign.io
npmjs.com
- package/raiden-baileys/v/2.1.6
- package/raiden-baileys/v/2.2.2
- package/raiden-baileys/v/2.2.4
- package/raiden-baileys/v/2.1.7
- package/raiden-baileys/v/2.1.1
- package/raiden-baileys/v/2.2.0
- package/raiden-baileys/v/2.2.1
- package/raiden-baileys/v/2.2.5
- package/raiden-baileys/v/2.1.2
- package/raiden-baileys/v/2.1.4
- package/raiden-baileys/v/2.1.3
- package/raiden-baileys/v/2.1.5
- package/raiden-baileys/v/2.2.3
- package/raiden-baileys/v/2.1.0
- package/raiden-baileys/v/2.2.6
- package/raiden-baileys/v/2.2.7
- package/raiden-baileys/v/2.2.8