{"id":"MAL-2026-20335","summary":"Malicious code in @rizzkezik/bailseys (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2fa8bdc9bd695b0c97cf49bf1ed749af15e57c3237be6f0ed2e2797f15ad5ae5)\npackage.json declares the libsignal dependency as `github:tenka-san/libsignal-node` with no commit SHA or tag. On `npm install`, npm clones whatever bytes currently sit at that personal GitHub repository's default-branch HEAD and installs them into the dependency tree, running any lifecycle scripts the fetched payload defines. There is no version pin, no integrity check, and the source is a non-registry, personal-account repository under third-party control — whoever controls tenka-san/libsignal-node can substitute arbitrary code at any time, and every subsequent install of @rizzkezik/bailseys will execute it. The project is a Baileys (WhatsApp library) fork; libsignal is a core cryptographic dependency normally sourced from a pinned registry release, so an unpinned mutable git reference in that slot is a direct install-time code-inclusion path from an untrusted control sphere.\n","modified":"2026-11-23T00:45:04.321414330Z","published":"2026-11-22T23:37:59Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["6.7.10"],"id":"IN-MAL-2026-023029","import_time":"2026-11-23T00:32:39.918781528Z","modified_time":"2026-11-22T23:37:59Z","sha256":"2fa8bdc9bd695b0c97cf49bf1ed749af15e57c3237be6f0ed2e2797f15ad5ae5"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@rizzkezik/bailseys/v/6.7.10"}],"affected":[{"package":{"name":"@rizzkezik/bailseys","ecosystem":"npm","purl":"pkg:npm/%40rizzkezik/bailseys"},"versions":["6.7.10"],"database_specific":{"cwes":[{"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":"7e965d941db21d835dd6b8fe063090a3d78b8928ba62cddec7bbf23847b16bcf","tlsh":"a6611024cd18cea305c526d9a4bd4202a1b459039d85fc1cb3a987ac4f5d25f36b9f7d"}],"package_integrity":[{"filename":"bailseys-6.7.10.tgz","hashes":{"sha512_sri":"sha512-tmMvFt1sFdUjIquwhaO0KRaUQ3Xwm7BGujAhjcw1mXJhdac+QyqJPYniMc87u+YUID+1asy3hHxYGfbKgJH0YQ==","sha1":"d33669b30310273a3ab03e6d294cd79a2b1f5643"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@rizzkezik/bailseys/MAL-2026-20335.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}