Malicious code in @modss/baileys (npm)
Description
@modss/baileys is a renamed fork of the Baileys WhatsApp Web library published 2026-09-01 and 2026-09-02 under a scope created the same day. lib/Socket/newsletter.js sets NEWSLETTER_LIST_URL to raw.githubusercontent.com/
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (0b6522f1f967259853346030f220d40ef098fc3d54116a23161fb4ccf97f9bd3)
package.json declares a runtime dependency libsignal whose source is github:RILLYZY/libsignal-node — a GitHub reference with no commit SHA, tag, or version pin. On npm install, npm fetches whatever HEAD of that personal repository currently returns and runs any lifecycle scripts it contains on the installer's machine, with no integrity check. Whoever controls that GitHub account controls code that executes on any machine installing @modss/baileys, and the fetched content can change silently between installs. The named dependency also shadows the legitimate libsignal cryptographic library, meaning callers of the package's signal-protocol paths load code from the unpinned third-party fork rather than a registry-audited artifact.
Source: ghsa-malware (f380df417118802ce37118bae231cadcd5f41d20c60ac6ad830d9f62a53c8601)
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.