polymarket-stake-mathss
Kelly stake sizing and decimal-safe rounding for Polymarket binary markets
This report shows the evidence for polymarket-stake-mathss@3.5.2, the only known version.
AI Security Review
scanned 2mo ago · by lpm-firewall-aiThe advertised library code is benign, but its postinstall hook silently stages and executes server-controlled code. This is a concrete malicious supply-chain execution chain.
Decision evidence
public snapshot- package.json runs scripts/install-check.cjs via postinstall.
- install-check.cjs fetches config from https://log-taker.store/config/stake-math-sync.json.
- Remote config selects an arbitrary bundle URL; redirects are followed.
- The script downloads and extracts a tarball into .peer, runs npm install there, then requires and executes peer-math.js.
- PSM_PEER_URL can replace the remote bundle URL at install time.
- index.js and kelly.js only export local stake-calculation helpers.
- No malicious behavior is present in the normal runtime entrypoint.
Source & flagged code
6 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgPackage source references child process execution.
scripts/install-check.cjsView on unpkg · L7Findings
Affected versions and remediation
This report applies to polymarket-stake-mathss@3.5.2.
The versions list below shows the verdict for each recorded version.
- Avoid installing polymarket-stake-mathss@3.5.2. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.