{"id":"MAL-2026-20287","summary":"Malicious code in @izi-coder/baileys (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c476c49d67a7760e7893b185a53a3b9de7cc6c005b5480493eb82f66bde8bac1)\nThis unofficial fork of Baileys declares a production dependency sourced directly from a GitHub repository with no commit pin: `\"libsignal\": \"github:Cogils/libsignal-node\"` in package.json. `npm install` resolves that source off-registry, fetches whatever the branch tip currently holds, and runs any lifecycle scripts inside it. The referenced repository is owned by a third party (`Cogils`), unrelated to the upstream WhiskeySockets/Baileys publisher, so whoever controls that repo controls code executed on the installer's machine at install time. The package also presents low-trust provenance: it is published under `@izi-coder` as an unofficial Baileys fork, the manifest's repository URL points at a Telegram channel rather than a source host, and `lib/index.js` prints a hostile ASCII banner and Telegram self-promo links on import.\n","modified":"2026-11-20T04:30:24.856500871Z","published":"2026-11-20T03:51:08Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022943","import_time":"2026-11-20T04:13:20.223441398Z","modified_time":"2026-11-20T03:51:31Z","sha256":"3513ff5be65c15710fa6832c00fbc6ec01649e3aaf6ed35eec61bee50b7f9d7f","source":"amazon-inspector","versions":["2.0.5"]},{"sha256":"51f81653444a13ce5226e627ea6e288de0b4fb5b05a7944140471af36941fdc0","source":"amazon-inspector","versions":["6.0.9"],"id":"IN-MAL-2026-022940","import_time":"2026-11-20T04:13:20.068635651Z","modified_time":"2026-11-20T03:51:08Z"},{"import_time":"2026-11-20T04:13:20.165607815Z","modified_time":"2026-11-20T03:51:24Z","sha256":"c476c49d67a7760e7893b185a53a3b9de7cc6c005b5480493eb82f66bde8bac1","source":"amazon-inspector","versions":["6.0.10"],"id":"IN-MAL-2026-022942"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@izi-coder/baileys/v/2.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@izi-coder/baileys/v/6.0.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@izi-coder/baileys/v/6.0.10"}],"affected":[{"package":{"name":"@izi-coder/baileys","ecosystem":"npm","purl":"pkg:npm/%40izi-coder/baileys"},"versions":["2.0.5","6.0.9","6.0.10"],"database_specific":{"indicators":{"package_integrity":[{"filename":"baileys-2.0.5.tgz","hashes":{"sha512_sri":"sha512-T0+HSnDkAID7Bp0x5CmKvBWi9N8jpr03EKF/FM2QjO4hz2IpYdrJ2ivWWUQrPvFvNM6m5gLq5ohNw9NHzpiTWw==","sha1":"a94bedaf1a5edbae69bb7e0628bc1036dbddf0ba"}}],"evidence_files":[{"tlsh":"9a91eb34ce18ce630ac526e9a9bd0141a87959039ec5fc1cb35807ac8f4e15f71b9b3d","path":"package.json","sha256":"ac04f7db3bcef1d5bd8bf8062b032ac3a81ef812018ae10cdcc8e0cee11b14b4"}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"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."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@izi-coder/baileys/MAL-2026-20287.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}