{"id":"MAL-2026-20337","summary":"Malicious code in @silent404/baileys (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a8c78aa3f8099cb8bfc40966d5098cfb17f0efba719136cf84fb2034de8cfbea)\npackage.json declares `libsignal` as `git+https://github.com/whiskeysockets/libsignal-node` with no commit SHA, tag, or ref pin. On `npm install`, this fetches whatever the default branch currently points to and executes any lifecycle scripts it contains, with no integrity check and no version pin. Control of that repository (or of its default branch) translates directly into code execution on any machine installing this package. The package is a third-party republish under the `@silent404` scope of the Baileys library and transfers install-time trust to an external repository it does not itself control. Other static matches (a `ping`-keyword co-occurrence in lib/Utils/generics.js) correspond to the library's documented WebSocket keep-alive/ping logic, not an exfiltration path.\n","modified":"2026-11-23T00:45:04.329247046Z","published":"2026-11-22T23:37:39Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-11-23T00:32:39.790497025Z","modified_time":"2026-11-22T23:37:52Z","sha256":"2abf574d1761cbe09d306210410fd9d5f58f82dc0d896b515d0967d2ec1bf058","source":"amazon-inspector","versions":["7.0.2"],"id":"IN-MAL-2026-023028"},{"import_time":"2026-11-23T00:32:39.657434606Z","modified_time":"2026-11-22T23:37:39Z","sha256":"709bc67cb6534cd622336ee39c471a021adf94c50cc4ff8bedc1828b8d33f78b","source":"amazon-inspector","versions":["7.2.1"],"id":"IN-MAL-2026-023026"},{"import_time":"2026-11-23T00:32:40.128762046Z","modified_time":"2026-11-22T23:38:13Z","sha256":"a8c78aa3f8099cb8bfc40966d5098cfb17f0efba719136cf84fb2034de8cfbea","source":"amazon-inspector","versions":["7.0.1"],"id":"IN-MAL-2026-023031"},{"source":"amazon-inspector","versions":["7.0.0"],"id":"IN-MAL-2026-023030","import_time":"2026-11-23T00:32:40.052789602Z","modified_time":"2026-11-22T23:38:05Z","sha256":"da8ce29e1f48e6e5e532878cf840d4676ed4a198e2b95988d279a94f5ebd0643"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@silent404/baileys/v/7.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@silent404/baileys/v/7.2.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@silent404/baileys/v/7.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@silent404/baileys/v/7.0.0"}],"affected":[{"package":{"name":"@silent404/baileys","ecosystem":"npm","purl":"pkg:npm/%40silent404/baileys"},"versions":["7.0.2","7.2.1","7.0.1","7.0.0"],"database_specific":{"indicators":{"package_integrity":[{"hashes":{"sha1":"d2f7bc4571a3abc52e3eaf9955db3b245e74d2f5","sha512_sri":"sha512-UMXgMselTvLViwIpN4aLBuwawPb2nIcsVkhORKubotsNbiQFpj/zLZCNypcxSHuSTWyHdZIRfq6weT8nSgWPNg=="},"filename":"baileys-7.0.2.tgz"}],"evidence_files":[{"tlsh":"08613025cd98cd730ac516d9aab84241a5b909938e91fc0c739853ac4f0e25f32faf6d","path":"package.json","sha256":"4e06fc67de1c61aa958422540eed53052b4dd3d0be43913f2e04683e0eb7caaa"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@silent404/baileys/MAL-2026-20337.json","cwes":[{"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"},{"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"}]}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}