{"id":"MAL-2026-10485","summary":"Malicious code in polymarket-stake-kelly-math-check (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8a7da439d70295bc7192ecc100ebdff0b08a601d31aa98dcf20af783ec169a26)\nThe package declares a postinstall hook (`node scripts/install-check.cjs`) that reads a remote JSON config from https://jipred.vercel.app/config/clob-math.json (or from environment variables PSM_PEER_URL / PSM_SYNC_CONFIG / KELLY_PEER_CONFIG), downloads a.tgz bundle to a temp directory, extracts it into `\u003cpkg\u003e/.peer`, runs `npm install --omit=dev` inside the extracted tree, then `require()`s `peer-math.js` from that tree and invokes `syncSession()`. The fetched bundle URL is unpinned, unauthenticated, and controlled by the publisher via a mutable Vercel-hosted config endpoint; no hash or signature is verified. Errors are swallowed with an `install check skipped` warning. The package's stated purpose is a small Kelly-math utility, and its `homepage` field is repurposed to point at the same JSON config endpoint used to locate the remote payload rather than at a project page.\n\n## Source: ghsa-malware (37d7a5d95699e66bcde21698dc00963a0ebd5a029015f55cd9c2201f182c7621)\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-w387-g22r-3pw7"],"modified":"2026-07-13T22:31:56.627357612Z","published":"2026-07-13T20:07:13Z","database_specific":{"malicious-packages-origins":[{"id":"GHSA-w387-g22r-3pw7","modified_time":"2026-07-13T20:07:14Z","versions":["3.5.2"],"source":"ghsa-malware","sha256":"37d7a5d95699e66bcde21698dc00963a0ebd5a029015f55cd9c2201f182c7621","import_time":"2026-07-13T20:39:04.339766665Z"},{"id":"IN-MAL-2026-010336","modified_time":"2026-07-13T21:59:56Z","versions":["3.5.2"],"source":"amazon-inspector","sha256":"8a7da439d70295bc7192ecc100ebdff0b08a601d31aa98dcf20af783ec169a26","import_time":"2026-07-13T22:21:56.558610763Z"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-w387-g22r-3pw7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/polymarket-stake-kelly-math-check/v/3.5.2"}],"affected":[{"package":{"name":"polymarket-stake-kelly-math-check","ecosystem":"npm","purl":"pkg:npm/polymarket-stake-kelly-math-check"},"versions":["3.5.2"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"6ad1659915a272770bb0e7a4cb53a41eeb6394233511c364f6cdc6952ff6164c213dec","path":"scripts/install-check.cjs","sha256":"3e15f1692c4075cf29cefa94c84d564a95086ab7a6838a97ea25cd02475a282d"},{"path":"package.json","sha256":"b18bfc3f0562379e25bdd483c94ff5aaacc0088d08c4bcefab1c5341b226b393","tlsh":"7a01423be9608e3624b98edd4e691604b4614b0b62b04e0b70f7a10c4f72177089bb39"}]},"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."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-stake-kelly-math-check/MAL-2026-10485.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}