MAL-2026-10516Malicious code in polymarket-bot-logger (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | polymarket-bot-logger | * |
| npm | polymarket-bot-logger | 1.0.0 |
| npm | polymarket-bot-logger | 1.0.1 |
{"schema_version":"1.7.4","id":"MAL-2026-10516","published":"2026-07-13T22:48:52Z","modified":"2026-08-23T03:27:43.522797848Z","aliases":["GHSA-v4pc-gmg8-h48w"],"summary":"Malicious code in polymarket-bot-logger (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (16019aad4a4500c2df862c6b811c97b0fe227673fd10d921a453924410d17948)\nOn npm install, the package's postinstall hook runs install-check.cjs, which fetches a JSON config from https://jipred.vercel.app/config/clob-math.json (also overridable via the PSM_PEER_URL env var), reads a peerBundle/bundle URL from that JSON, downloads a.tgz to a.peer/ directory, runs npm install inside it, then require()s peer-math.js and invokes syncSession(). The fetched bundle is unpinned, unverified (no hash or signature check), and served from a mutable non-registry, non-publisher Vercel host, so the code executed on the installer's machine is fully controlled by whoever operates jipred.vercel.app at install time. The package.json name (polymarket-bot-logger, self-described as a logging library) also does not match the README (polymarket-stake-math, a Kelly stake-sizing math library) or the postinstall log tag ([polymarket-stake-math]), and neither declared purpose requires downloading and executing a remote code bundle at install time.\n\n## Source: ghsa-malware (f87cf236471990681e6705f98e5270bcd5212aea8b69b33f071b45eeb18b4449)\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","affected":[{"package":{"name":"polymarket-bot-logger","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1","1.0.0"],"database_specific":{"cwes":[{"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"scripts/install-check.cjs","sha256":"3e15f1692c4075cf29cefa94c84d564a95086ab7a6838a97ea25cd02475a282d","tlsh":"6ad1659915a272770bb0e7a4cb53a41eeb6394233511c364f6cdc6952ff6164c213dec"},{"path":"package.json","sha256":"a793625a419ad38ffa907b87ca4af00456f6d3f7c9ef61ba5a4844f431140290","tlsh":"fc017b2bea608e3728b84e9d6e646a09f5150f5f12b08c1b31f7a10c8fb1163085f739"}],"package_integrity":[{"filename":"polymarket-bot-logger-1.0.1.tgz","hashes":{"sha1":"45b094fac3557f98c048bc53f6172ef7bb9af9b7","sha512_sri":"sha512-oNF864H6Mw1XlUi6RQz0u1gix7fTBENSv5nitjqa1qGtDIq8wQYjUpzSpgFFD+Jl1oqhpOEbVW4zq6VixXAt5g=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/polymarket-bot-logger/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v4pc-gmg8-h48w"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/polymarket-bot-logger/v/1.0.0"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010355","import_time":"2026-07-13T22:49:46.264808913Z","modified_time":"2026-07-13T22:48:52Z","sha256":"16019aad4a4500c2df862c6b811c97b0fe227673fd10d921a453924410d17948","source":"amazon-inspector","versions":["1.0.1"]},{"id":"GHSA-v4pc-gmg8-h48w","import_time":"2026-08-21T11:24:15.73576607Z","modified_time":"2026-08-21T11:04:25Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"f87cf236471990681e6705f98e5270bcd5212aea8b69b33f071b45eeb18b4449","source":"ghsa-malware"},{"id":"IN-MAL-2026-018540","import_time":"2026-08-23T03:25:53.424086237Z","modified_time":"2026-08-23T03:10:27Z","sha256":"a36931b891efaaff906493c0f408590063cf12f6f90f5eb88c01b412e5ddbdbd","source":"amazon-inspector","versions":["1.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0