Use of software with malware In @ubedsockets/baileys
Description
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.
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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version |
|---|---|---|
npm |
Aliases
References