@ubedsockets/baileys
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-c2qr-82xm-x8m4
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in @ubedsockets/baileys (npm)
Malicious package. @ubedsockets/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: 120363410154606795@newsletter, 120363423295236859@newsletter. Legitimate Baileys never hardcodes a channel JID or auto-follows on connect; all published versions are malicious. Detected by wormsign static analysis of the injected channel-subscription code.
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (3f2be0d76cf2f992588fc8c354387b055942990224579ba9b8c66aa5ce725ed2)
This fork of the Baileys WhatsApp library declares dependencies.libsignal as github:rexxzyid/libsignal-node with no commit SHA, tag, or version constraint. npm install resolves this reference to whatever the mutable branch currently points at and executes any lifecycle scripts in that tree, so whoever controls the rexxzyid/libsignal-node repository controls code that runs on every installer, with no integrity check and no review path. The package also contains an IP-locked kill switch in the main makeWASocket factory: a top-level verifyIP() call queries api.ipify.org and invokes process.exit(1) unless the installer's public IP matches one of two hardcoded values (20.207.192.84, 173.212.202.60), terminating the host process for all other users on socket initialization. The combination — an off-registry mutable dependency source as the main crypto component and a hostile denial-of-use primitive wired into the exported entry point — is incompatible with a trustworthy library release.
Source: ghsa-malware (8275f8031fa3107581c434b95b2cd539d5d19b6f72a4deeefcc45c111088e7ea)
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.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0