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

stake-mathnpm

stake-math is a confirmed malicious npm package (MAL-2026-6585) that typosquats a legitimate package to trick installs (malicious versions 3.1.0, 3.2.0, 3.3.0…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in stake-math (npm)

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.

Any 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.

Malicious versions

7 flagged
3.1.03.2.03.3.03.5.23.5.33.5.43.5.5

Indicators of compromise (SHA-256)

20c910386d16928d69a1f1e840d183521875b5686ce101e2c4e0f95b4cf6147f
39d259fb24a848c551a7c2d36d213ff962e8ecedc70f0d1e358200b82fd4cf0d
a475d161b669ae748124a4d6c1da29ebda6e40da4aa5c3c5e8b10645ef96f57a
4fc43d9d226170bb17cbb6456938cabc787d76a59db37e9160a3f4ce5c8bb5a8
6a57de948b3cf870e972d14e575b53ab8818e48a2ec1603bb1f8c9897aa1ca20
fb425383534705d072e723e596851dbc8a9154f83fc42cb6431b7e3bcd307424
647878c4801a1ac7c8bf6c1212b68f9bc87c7effa276aa3f5c268d960428b941
0c0588616ff1e3cda86498497275add22443058899d0b9866cf3579e9f679c4f

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 (7 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.1.0, 3.2.0, 3.3.0, 3.5.2, 3.5.3, 3.5.4, 3.5.5 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-007747IN-MAL-2026-008500IN-MAL-2026-008495IN-MAL-2026-008492IN-MAL-2026-009178GHSA-qcc9-j6wh-4h9h

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.

Explore