{ "schema_version": "1.7.4", "id": "MAL-2026-18873", "published": "2026-10-27T00:00:00Z", "modified": "2026-11-20T01:13:56.821557046Z", "aliases": [ "GHSA-mf5v-3qmw-mv6q" ], "summary": "Malicious code in @poucode/baileys (npm)", "details": "@poucode/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) 120363429394939370@newsletter, 120363430414713911@newsletter, 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 (120c37dfae80b6937c076ffe1abe60e6787840e1a7b379c5b615173891529e84)\npackage.json declares the production dependency `libsignal` with the value `github:tenka-san/libsignal-node`, a GitHub shorthand that carries no commit SHA, no tag, and no semver constraint. On `npm install`, npm resolves this specifier to the current HEAD of that personal fork, fetches whatever source is at HEAD at install time, and executes any lifecycle scripts the fork ships. Whoever controls `tenka-san/libsignal-node` can push arbitrary code to that branch at any time and that code will run on every machine that installs @poucode/baileys@2.0.4. The resolved source is a personal fork unrelated to the upstream Baileys libsignal dependency, and the specifier is both off-registry and unpinned, so the installed bytes are not covered by the npm registry integrity hash for @poucode/baileys and can change silently between installs.\n\n## Source: ghsa-malware (e7a897e7a41a88915d245d4907080d94195177e2ed743fb06a9a779df3594064)\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": "@poucode/baileys", "ecosystem": "npm" }, "ranges": [ { "type": "SEMVER", "events": [ { "introduced": "0" } ] } ], "versions": [ "1.0.0", "2.0.4", "2.0.1", "2.0.0", "1.0.2", "1.0.1" ], "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" }, { "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" }, { "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": "931a24cfc688b2a5497c428190807f965a7c92b7f86743a02c3bdb3170415803", "tlsh": "4e910d34ce28ce630ac525e8a9bd0042a97959439ec5fc1cb35847ac8f4e15f71b9f2e" } ], "package_integrity": [ { "filename": "baileys-2.0.4.tgz", "hashes": { "sha1": "93de95e0d298f19c38dfafac40c615e571891809", "sha512_sri": "sha512-n67GQeMlwQrYDNAFwSxziPhlK9+uSC5Qssno2oFTX8kBwyFOyrpmqLNJullFcXA9Z/Ga0SZzJR7p11MmelGuhg==" } } ] } } } ], "references": [ { "type": "PACKAGE", "url": "https://www.npmjs.com/package/@poucode/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-mf5v-3qmw-mv6q" }, { "type": "PACKAGE", "url": "https://www.npmjs.com/package/@poucode/baileys/v/2.0.4" }, { "type": "PACKAGE", "url": "https://www.npmjs.com/package/@poucode/baileys/v/2.0.1" }, { "type": "PACKAGE", "url": "https://www.npmjs.com/package/@poucode/baileys/v/2.0.0" }, { "type": "PACKAGE", "url": "https://www.npmjs.com/package/@poucode/baileys/v/1.0.2" }, { "type": "PACKAGE", "url": "https://www.npmjs.com/package/@poucode/baileys/v/1.0.1" } ], "database_specific": { "iocs": { "domains": [], "files": [ { "digests": { "sha256": "cde7d68f4e593e2d38f98918d5e671670f5242b1baf153523d48ad18fba67530" }, "paths": [ "lib/Socket/newsletter.js" ] } ], "ips": [], "urls": [] }, "malicious-packages-origins": [ { "id": "GHSA-mf5v-3qmw-mv6q", "import_time": "2026-11-19T18:21:11.765969832Z", "modified_time": "2026-11-19T17:46:34Z", "ranges": [ { "events": [ { "introduced": "0" } ], "type": "SEMVER" } ], "sha256": "e7a897e7a41a88915d245d4907080d94195177e2ed743fb06a9a779df3594064", "source": "ghsa-malware" }, { "id": "IN-MAL-2026-022903", "import_time": "2026-11-20T01:12:26.423414643Z", "modified_time": "2026-11-20T01:07:04Z", "sha256": "120c37dfae80b6937c076ffe1abe60e6787840e1a7b379c5b615173891529e84", "source": "amazon-inspector", "versions": [ "2.0.4" ] }, { "id": "IN-MAL-2026-022900", "import_time": "2026-11-20T01:12:26.327381876Z", "modified_time": "2026-11-20T01:06:44Z", "sha256": "4ef5d9675367d13af0747d5d9d1d47fd17aa44d4ab44c6747eaae57928dffa3d", "source": "amazon-inspector", "versions": [ "2.0.1" ] }, { "id": "IN-MAL-2026-022905", "import_time": "2026-11-20T01:12:26.501118494Z", "modified_time": "2026-11-20T01:07:20Z", "sha256": "742ea5d4ace8851a0d708be3a6bbfaba577e17eb69a53edba50216260a52faf2", "source": "amazon-inspector", "versions": [ "2.0.0" ] }, { "id": "IN-MAL-2026-022902", "import_time": "2026-11-20T01:12:26.393535314Z", "modified_time": "2026-11-20T01:06:57Z", "sha256": "a4d1fbaab631169dcf94fcd3beea22a7c30437127b41b0e54af4d087b6a5a219", "source": "amazon-inspector", "versions": [ "1.0.2" ] }, { "id": "IN-MAL-2026-022901", "import_time": "2026-11-20T01:12:26.358329606Z", "modified_time": "2026-11-20T01:06:51Z", "sha256": "e86886cbe43039cfbbc9f96638bd6ce87d1bfb93db9f8ab606d7105495742b0e", "source": "amazon-inspector", "versions": [ "1.0.1" ] } ] }, "credits": [ { "name": "Amazon Inspector", "contact": [ "inspector-research@amazon.com" ], "type": "FINDER" }, { "name": "CyberXYZ", "contact": [ "https://cyberxyz.io" ], "type": "FINDER" } ] }