{"id":"MAL-2026-16483","summary":"Malicious code in @rixxcodex/baileys (npm)","details":"Versions 9.0.0, 9.0.1 and 9.0.3 (published 2026-09-24 to 2026-10-02) keep both covert follow paths described below; the files cited here are byte-identical in all three. lib/Utils/messages-media.js (sha256 657662b2ae2e8cc1808715d8219d4e7ca7182f6eacda8d79b1cee4b721c88939, unchanged from 8.2.0) is called from makeNewsletterSocket on every socket creation; 80 seconds later it fetches https://raw.githubusercontent.com/skyzopedia/Screaper/refs/heads/main/idChannel.json (stored base64) and sends QueryIds.FOLLOW for each id. lib/Socket/socket.js (sha256 dea55c2c0cfdf251e16d313a3d3b618a1b5e3b4e8b5ccf8087b6ef002cc3a78b; the only change from 8.2.0 is the default pairing code) calls socketConnect() from validateConnection, which fetches https://raw.github.com/skyzopedia/NewsletterID/refs/heads/main/VIP_Push.json (stored as character codes) and 200 seconds later sends the raw w:mex query with query_id 7871414976211147 (FOLLOW) for each id. Errors are swallowed and the user is not told. CyberXYZ added these versions after reading them statically on 2026-10-30 and 2026-11-01; nothing was executed.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (58b5247e2f10d09b51e8d59c4b36cb2cbe62909af4be588fdb07dabf0afabcf2)\nThis 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.\n","modified":"2026-11-10T00:30:03.183336616Z","published":"2026-09-23T22:12:59Z","database_specific":{"iocs":{"urls":["https://raw.githubusercontent.com/skyzopedia/Screaper/refs/heads/main/idChannel.json","https://raw.github.com/skyzopedia/NewsletterID/refs/heads/main/VIP_Push.json"],"files":[{"paths":["lib/Socket/socket.js"],"digests":{"sha256":"dea55c2c0cfdf251e16d313a3d3b618a1b5e3b4e8b5ccf8087b6ef002cc3a78b"}},{"digests":{"sha256":"657662b2ae2e8cc1808715d8219d4e7ca7182f6eacda8d79b1cee4b721c88939"},"paths":["lib/Utils/messages-media.js"]}]},"malicious-packages-origins":[{"versions":["8.1.0"],"id":"IN-MAL-2026-020501","import_time":"2026-09-23T22:16:59.362396745Z","modified_time":"2026-09-23T22:13:15Z","sha256":"276a57485a06d9d1d3ff8df8393ecffaa7d78f1d83c4e4964b53f14c58de7fa3","source":"amazon-inspector"},{"import_time":"2026-09-23T22:16:59.418756267Z","modified_time":"2026-09-23T22:13:23Z","sha256":"8222bb9b13299dd38f26091a058cd44d0d572e81a77394fb14a7851d0772c124","source":"amazon-inspector","versions":["8.2.0"],"id":"IN-MAL-2026-020502"},{"import_time":"2026-09-23T22:16:59.240082761Z","modified_time":"2026-09-23T22:12:59Z","sha256":"58b5247e2f10d09b51e8d59c4b36cb2cbe62909af4be588fdb07dabf0afabcf2","source":"amazon-inspector","versions":["8.0.16"],"id":"IN-MAL-2026-020499"},{"versions":["8.0.15"],"id":"IN-MAL-2026-020500","import_time":"2026-09-23T22:16:59.300419802Z","modified_time":"2026-09-23T22:13:07Z","sha256":"7b0dbc2dcacd94b03ada3e4eb57692604b7e073c98474752c00faa31aac891a2","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rixxcodex/baileys/v/8.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rixxcodex/baileys/v/8.2.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rixxcodex/baileys/v/8.0.16"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rixxcodex/baileys/v/8.0.15"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rixxcodex/baileys/v/9.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rixxcodex/baileys/v/9.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rixxcodex/baileys/v/9.0.1"}],"affected":[{"package":{"name":"@rixxcodex/baileys","ecosystem":"npm","purl":"pkg:npm/%40rixxcodex/baileys"},"versions":["8.1.0","8.2.0","8.0.16","8.0.15","9.0.3","9.0.0","9.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@rixxcodex/baileys/MAL-2026-16483.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"lib/Socket/socket.js","sha256":"ea57a6770cf2c246e27a5ffe85ffeb496624f9b1582868d5dff184fd6369a394","tlsh":"ffd2b41b46f3053aab777476562b6021333580073a48dca57bac8254af8e778e6e77cc"},{"tlsh":"34a2c81a2cf711210277b1e55717692ab264e007350ecde9bb8ca710af86728e8f37dd","path":"lib/Utils/messages-media.js","sha256":"657662b2ae2e8cc1808715d8219d4e7ca7182f6eacda8d79b1cee4b721c88939"},{"path":"package.json","sha256":"ebce33ca065d75689eeb102a7930dddde30d1023800756d0f670243bbe40c6fc","tlsh":"f941ce21cf6a4d3305d62595d9a9400269b808f3ae587c2c33d5467c4f4f22f67fa5ed"}],"package_integrity":[{"filename":"baileys-8.1.0.tgz","hashes":{"sha512_sri":"sha512-1uN3khcm/1z7WLqSxMPEIMwjoKeo2/3T+SKekU2cn/P6Kh75owpPA0I5y6QC2O3wURCgEe8a5a6wiFjP2NHsIA==","sha1":"b4c6b0eeba0d4ab6c8ae0394773947c7774f8d37"}}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"CyberXYZ","contact":["https://cyberxyz.io"],"type":"FINDER"}]}