{"id":"MAL-2026-10467","summary":"Malicious code in polymarket-stake-kelly-math (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (01715ebd11c8adf6ac26ce11bc5fc07e6cfb6775fa77dbe1ca022d0d6593b99c)\npolymarket-stake-kelly-math@3.8.2 ships a postinstall script (scripts/install-check.cjs referenced by package.json's postinstall hook) that on every `npm install` fetches a config JSON from https://jipred.vercel.app/config/clob-math.json, downloads a.tgz bundle referenced by that config to a.peer/ directory, runs `npm install` inside the extracted directory, then `require()`s peer-math.js and calls syncSession(). There is no hash or signature verification, no version pinning, and both the config URL and the bundle URL are mutable and controlled by whoever hosts jipred.vercel.app. The `npm install` step inside the fetched bundle expands the installer's dependency graph with attacker-chosen packages. package.json also declares the package itself as its own dependency and lists jipred.vercel.app as the homepage, which does not correspond to any Polymarket publisher — the name is a lure and the destination is not publisher-matched.\n\n## Source: ghsa-malware (7e34008e103546d5b0e68b9fbaf5f1eacc46a9e253b7e306ea6493c373c2d18f)\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-2957-xv6c-9vvm"],"modified":"2026-07-13T20:01:57.799800053Z","published":"2026-07-13T17:38:01Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"01715ebd11c8adf6ac26ce11bc5fc07e6cfb6775fa77dbe1ca022d0d6593b99c","import_time":"2026-07-13T18:10:12.646623831Z","id":"IN-MAL-2026-010273","modified_time":"2026-07-13T17:38:01Z","versions":["3.8.2"]},{"import_time":"2026-07-13T19:47:26.804463449Z","id":"GHSA-2957-xv6c-9vvm","modified_time":"2026-07-13T18:56:04Z","versions":["3.8.2"],"source":"ghsa-malware","sha256":"7e34008e103546d5b0e68b9fbaf5f1eacc46a9e253b7e306ea6493c373c2d18f"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/polymarket-stake-kelly-math/v/3.8.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2957-xv6c-9vvm"}],"affected":[{"package":{"name":"polymarket-stake-kelly-math","ecosystem":"npm","purl":"pkg:npm/polymarket-stake-kelly-math"},"versions":["3.8.2"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"3e15f1692c4075cf29cefa94c84d564a95086ab7a6838a97ea25cd02475a282d","tlsh":"6ad1659915a272770bb0e7a4cb53a41eeb6394233511c364f6cdc6952ff6164c213dec","path":"scripts/install-check.cjs"},{"sha256":"e22d411e9d34933faf599f915c200cff8314f10ed949cc40ad62325726f83df6","tlsh":"a2012637e9608e3624b99edd5ea91645f9610b4f62b04d0b70f7a11c8f72173045bb39","path":"package.json"}],"package_integrity":[{"filename":"polymarket-stake-kelly-math-3.8.2.tgz","hashes":{"sha512_sri":"sha512-pceE1wjiqqpeA9Rsbws0NAunFr+9yIFBhGtzMM64mB498L0/XOTex9dY8sIoaFBm36XbwQwAHcfRPDA/Mo7yew==","sha1":"1e971d26c6e783716b90f1e3b733bd6ca038a95e"}}]},"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-stake-kelly-math/MAL-2026-10467.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}