Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

stake-mathnpm

Malicious code in stake-math (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-6585
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall stake-math

What this malware does

On npm install, the package's postinstall hook (scripts/install-check.cjs, wired via package.json scripts.postinstall) fetches a JSON config from a hardcoded non-publisher host (https://www.log-prettier.store/config/stake-peer-sync.json), reads a tgz URL from that config, downloads the tarball, extracts it, runs a nested npm install inside the extracted directory, and then require()s peer-math.js from the dropped tree, executing it in the installer's Node process. There is no version pin, hash, or signature check, and the control-plane host is mutable and unrelated to the package's advertised purpose (a small Kelly-stake math helper) or to any legitimate publisher. The package also exhibits identity divergence: package.json name is stake-math while the README presents it as polymarket-stake-math, and homepage points at the same unrelated log-prettier.store domain — consistent with brand impersonation used to lure installers into running the dropper. Installing this version results in arbitrary attacker-controlled code execution on the installer machine.

Malicious versions

3 flagged
3.5.23.5.33.5.4

Indicators of compromise (SHA-256)

20c910386d16928d69a1f1e840d183521875b5686ce101e2c4e0f95b4cf6147f
39d259fb24a848c551a7c2d36d213ff962e8ecedc70f0d1e358200b82fd4cf0d
a475d161b669ae748124a4d6c1da29ebda6e40da4aa5c3c5e8b10645ef96f57a

Detection & response playbook

Typosquat
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for stake-math (3 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging stake-math across your stack and pipelines.

  2. If you installed it — respond

    stake-math is a typosquat — you almost certainly intended a legitimately-named package. Remove stake-math, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.

  3. Did it already run?

    If stake-math was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks stake-math before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. stake-math on npm has been identified as a malicious package (versions 3.5.2, 3.5.3, 3.5.4 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-007746IN-MAL-2026-007748IN-MAL-2026-007747

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks stake-math-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

stake-math (npm) malicious package — MAL-2026-6585 | O3 Security