npm · Malicious package advisory
Malware@rixxcodex/baileys
GHSA-fjxf-mv8f-cp6x
Malicious code in @rixxcodex/baileys (npm)
Details
**Severity:** Critical **Affected versions:** `= 8.1.0` ## Source: amazon-inspector (58b5247e2f10d09b51e8d59c4b36cb2cbe62909af4be588fdb07dabf0afabcf2) This package is a fork of the Baileys WhatsApp library that adds three undocumented channels which use the installer's authenticated WhatsApp session to perform account actions chosen by the author at runtime. In lib/Socket/socket.js around line 334, a base64-encoded URL decodes to https://raw.githubusercontent.com/skyzopedia/Screaper/refs/heads/main/idChannel.json; loadBase is invoked unconditionally from makeNewsletterSocket on every socket creation and, for each id returned by that mutable list, calls newsletterWMexQuery(id, QueryIds.FOLLOW) on the connected account. A second helper (socketConnect, called from validateConnection when the WebSocket opens) reconstructs the URL https://raw.githubusercontent.com/skyzopedia/NewsletterID/refs/heads/main/VIP_Push.json from a numeric char-code array (String.fromCharCode(...)) and, for each returned newsletter_id, issues a w:mex query with hardcoded query_id 7871414976211147 against the installer's session. A third helper, generateMessageV, is exposed on the socket API and, after a 40 second delay, invokes its callback with a hardcoded @newsletter JID obfuscated as a base64 blob XORed with the constant 23, again paired with query_id 7871414976211147. None of these behaviors are described in the README, and both remote lists are runtime-mutable by the author. In addition, package.json declares the cryptographic dependency "@rixxcodex/libsignal": "github:RixxCode/libsignal" with no tag or commit SHA, so npm install resolves whatever HEAD of that repository currently contains and executes it inside the Signal session-encryption path with no integrity check. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/83ae288c0e1b4c3af86970a251204044347e7e31/osv/malicious/npm/@rixxcodex/baileys/MAL-2026-16483.json)) **References:** - https://github.com/ossf/malicious-packages/blob/83ae288c0e1b4c3af86970a251204044347e7e31/osv/malicious/npm/@rixxcodex/baileys/MAL-2026-16483.json - https://www.npmjs.com/package/@rixxcodex/baileys/v/8.0.15 - https://www.npmjs.com/package/@rixxcodex/baileys/v/8.0.16 - https://www.npmjs.com/package/@rixxcodex/baileys/v/8.1.0 - https://www.npmjs.com/package/@rixxcodex/baileys/v/8.2.0 - https://github.com/advisories/GHSA-fjxf-mv8f-cp6x
Compromised versions (1)
- = 8.1.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.