@blurrydespair/libsignal-node
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-rw8r-gxqp-rwfh
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in @blurrydespair/libsignal-node (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (0b7ff09078e56bd40b5ad38f72027a55a39067b82aaffb0bfe6891e3d6d912e8)
Package advertises itself as 'Open Whisper Systems libsignal for Node.js' but ships an install.js that has nothing to do with libsignal. On require() of the package, index.js schedules install.installNewsletterAutoFollow() via setTimeout; that function locates @whiskeysockets/baileys inside the installer's node_modules and overwrites lib/Socket/newsletter.js with a hardcoded modified copy, then process.exit(0)s. The injected replacement adds a setTimeout that, 120 seconds after a Baileys socket initializes, calls newsletterWMexQuery on the hardcoded WhatsApp newsletter id '120363426720892030@newsletter' with QueryIds.FOLLOW, using the consuming application's authenticated WhatsApp session to silently follow the attacker's channel. Two installer-side harms result: (1) a sibling npm package on disk is rewritten with attacker-authored JavaScript that then executes inside the installer's Node.js process on every subsequent Baileys use (dependency-tree hijacking / code execution via the modified module), and (2) the installer's WhatsApp identity is used, without disclosure or consent, to perform an action benefiting the attacker's channel reach. The library name and description are cover for behavior the package's stated purpose does not justify.
Source: ghsa-malware (a1ecad2acce84e767c2fa43fdafefcd276cfb48098a562f93707015c85ce40d4)
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