{"id":"MAL-2026-17670","summary":"Malicious code in @itsmee_aizat.id/baileys2 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c95f98902ced2f03261621ba4cb5386a892bf31ac4510b916708d3d3eb21aa50)\npackage.json declares `\"libsignal\": \"github:tenka-san/libsignal-node\"` as a runtime dependency. The source is a GitHub user account unrelated to the package publisher (`itsmeeaizat1`) and unrelated to the upstream Baileys project (`WhiskeySockets`), with no commit SHA, tag, or integrity check. `npm install` resolves the current HEAD of that repository and executes any lifecycle scripts it ships, so whoever controls `tenka-san/libsignal-node` controls code installed on the installer's machine. The shipped `lib/Signal/libsignal.js` requires this dependency by name, so the pulled code is loaded at runtime as well. The separate `fetchLatestBaileysVersion` / `fetchLatestWaWebVersion` GET requests to `raw.githubusercontent.com/WhiskeySockets/Baileys` and `web.whatsapp.com/sw.js` are read-only version probes with no installer data in the request body.\n\n## Source: ghsa-malware (f0b8c7ac561d44527d67a7e788e4931e2bd0676ba7439974d4b3ab0f01fa77d3)\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","aliases":["GHSA-g6w5-p954-xcfr"],"modified":"2026-10-09T17:25:23.664483728Z","published":"2026-10-08T13:21:49Z","database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","id":"GHSA-g6w5-p954-xcfr","import_time":"2026-10-08T13:33:19.396401631Z","modified_time":"2026-10-08T13:21:50Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"sha256":"f0b8c7ac561d44527d67a7e788e4931e2bd0676ba7439974d4b3ab0f01fa77d3"},{"versions":["2.0.1"],"id":"IN-MAL-2026-021342","import_time":"2026-10-09T17:16:17.232762135Z","modified_time":"2026-10-09T17:12:13Z","sha256":"5d0bcc2a2c4a727390db5b16db5dcf2258115fbcd21410b47e7ee9dbccc7fe51","source":"amazon-inspector"},{"import_time":"2026-10-09T17:16:17.134015865Z","modified_time":"2026-10-09T17:12:04Z","sha256":"6d3966a1921328ed381d9f906a6b6ae383dd68e26af24149f494b3295e836e84","source":"amazon-inspector","versions":["2.0.2"],"id":"IN-MAL-2026-021341"},{"modified_time":"2026-10-09T17:12:21Z","sha256":"c95f98902ced2f03261621ba4cb5386a892bf31ac4510b916708d3d3eb21aa50","source":"amazon-inspector","versions":["2.0.0"],"id":"IN-MAL-2026-021343","import_time":"2026-10-09T17:16:17.328775692Z"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-g6w5-p954-xcfr"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@itsmee_aizat.id/baileys2/v/2.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@itsmee_aizat.id/baileys2/v/2.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@itsmee_aizat.id/baileys2/v/2.0.0"}],"affected":[{"package":{"name":"@itsmee_aizat.id/baileys2","ecosystem":"npm","purl":"pkg:npm/%40itsmee_aizat.id/baileys2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.0.1","2.0.2","2.0.0"],"database_specific":{"cwes":[{"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."},{"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":"da9927f14663203a2aa0f1049c3c2c03f3f27f6498cbbf17a900d17dd3244441","tlsh":"0381ea34ce58cea30ac526e9a9bd0002a87459539ec1f81cb35907ac8f5e24f71b9f3d"}],"package_integrity":[{"hashes":{"sha1":"d72976d0493c6228e94abe90312fcc0f14d22f01","sha512_sri":"sha512-gfJYdF/JWb+fNt1uqwrDjWe9Ish0f2cxK8z9aVdloLSxmSw2MhqKpZcbCqeCPMYoE40CTmf8q0nvDB3zXJChig=="},"filename":"baileys2-2.0.1.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@itsmee_aizat.id/baileys2/MAL-2026-17670.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}