{ "schema_version": "1.7.4", "id": "MAL-2026-18681", "published": "2026-10-26T00:00:00Z", "modified": "2026-11-16T22:37:45.124638624Z", "aliases": [ "GHSA-8868-q7gh-f9jf" ], "summary": "Malicious code in @sakataa/baileys (npm)", "details": "@sakataa/baileys is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363408893555851@newsletter, 120363424295522327@newsletter, 120363426470081124@newsletter, 120363427718144294@newsletter (stored base64-encoded), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ee2b01123ec87ad2e7c30c65a3a7189c8dbd72cd32f06e77d8a58f0536f3739f)\npackage.json declares `libsignal` as `github:Cogils/libsignal-node` with no commit SHA, tag, or integrity check. On `npm install`, npm resolves this to whatever the default branch of that GitHub repository currently points at and executes any lifecycle scripts contained within the fetched tree. The owner of that repository can change the installed code at any time without any version change in @sakataa/baileys, and no registry-side immutability or audit applies. This is an off-registry dependency source: the manifest line itself causes attacker-mutable code to be fetched and run in the installer's environment on a default install.\n\n## Source: ghsa-malware (4abcf18dd6035677a062b94d9f59970622c3ca9af7a1dd7c0994c8402f61fc41)\nAny 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.\n", "affected": [ { "package": { "name": "@sakataa/baileys", "ecosystem": "npm" }, "ranges": [ { "type": "SEMVER", "events": [ { "introduced": "0" } ] } ], "versions": [ "1.0.0", "2.0.0", "3.0.0", "5.0.0" ], "database_specific": { "cwes": [ { "cweId": "CWE-506", "description": "The product contains code that appears to be malicious in nature.", "name": "Embedded Malicious Code" }, { "cweId": "CWE-506", "description": "The product contains code that appears to be malicious in nature.", "name": "Embedded Malicious Code" }, { "cweId": "CWE-506", "description": "The product contains code that appears to be malicious in nature.", "name": "Embedded Malicious Code" } ], "indicators": { "evidence_files": [ { "path": "package.json", "sha256": "df93f3f84789a2a2ca149612f865d28c955ab5646a0fb8090ed6564408741670", "tlsh": "6581fd34cd18cea30ac626eda9bc101294b55913aec5f81cb35807ac8f1e24f71b9b3d" } ] } } } ], "references": [ { "type": "PACKAGE", "url": "https://www.npmjs.com/package/@sakataa/baileys" }, { "type": "WEB", "url": "https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/" }, { "type": "ADVISORY", "url": "https://github.com/advisories/GHSA-8868-q7gh-f9jf" }, { "type": "PACKAGE", "url": "https://www.npmjs.com/package/@sakataa/baileys/v/5.0.0" } ], "database_specific": { "iocs": { "domains": [], "files": [ { "digests": { "sha256": "7db0ac4e599e7acd4b80d5f5092d43488eed474f4f1bce4b315a35e864375d52" }, "paths": [ "lib/Socket/newsletter.js" ] }, { "digests": { "sha256": "47f9c2471cbe7d15331c6599b2319693e4a6d65f522318aa68b6bbf8fe5ac92b" }, "paths": [ "lib/Socket/newsletter.js" ] } ], "ips": [], "urls": [] }, "malicious-packages-origins": [ { "id": "GHSA-8868-q7gh-f9jf", "import_time": "2026-11-16T18:21:27.168858212Z", "modified_time": "2026-11-16T17:37:50Z", "ranges": [ { "events": [ { "introduced": "0" } ], "type": "SEMVER" } ], "sha256": "4abcf18dd6035677a062b94d9f59970622c3ca9af7a1dd7c0994c8402f61fc41", "source": "ghsa-malware" }, { "id": "IN-MAL-2026-022787", "import_time": "2026-11-16T22:36:30.478431365Z", "modified_time": "2026-11-16T22:23:09Z", "sha256": "ee2b01123ec87ad2e7c30c65a3a7189c8dbd72cd32f06e77d8a58f0536f3739f", "source": "amazon-inspector", "versions": [ "5.0.0" ] } ] }, "credits": [ { "name": "Amazon Inspector", "contact": [ "inspector-research@amazon.com" ], "type": "FINDER" }, { "name": "CyberXYZ", "contact": [ "https://cyberxyz.io" ], "type": "FINDER" } ] }