Malicious code in polymarket-stake-mathss (npm)
The npm package polymarket-stake-mathss (version 3.5.2) is a typosquatting malicious package that executes attacker-controlled code during installation. It uses a postinstall script to download and run code from an external, unauthorized domain unrelated to the legitimate Polymarket infrastructure. This results in arbitrary code execution on the installer's machine.
AI Analysis
Technical Summary
The polymarket-stake-mathss package is a malicious typosquat of the legitimate polymarket-stake-math package. Its postinstall script fetches a tarball from an attacker-controlled domain (https://log-taker.store/config/stake-math-sync.json), extracts it, installs dependencies, and executes a JavaScript file that runs arbitrary code. The malicious code execution occurs at install time, disguised under benign-sounding function names that mimic legitimate peer dependency checks. This unpinned and unsigned fetch allows the attacker to run arbitrary code on any machine that installs this package version 3.5.2.
Potential Impact
Installing polymarket-stake-mathss version 3.5.2 results in arbitrary code execution on the installer's system, potentially compromising the system's security and integrity. The attacker-controlled code is fetched and executed without verification, enabling full control over the installation environment.
Mitigation Recommendations
Avoid installing polymarket-stake-mathss version 3.5.2. Since this is a typosquatting malicious package, users should verify package names carefully before installation. There is no official patch or fix available. Remove any installations of this package and scan affected systems for potential compromise. Monitor package sources and rely only on verified, official packages.
Malicious code in polymarket-stake-mathss (npm)
Description
The npm package polymarket-stake-mathss (version 3.5.2) is a typosquatting malicious package that executes attacker-controlled code during installation. It uses a postinstall script to download and run code from an external, unauthorized domain unrelated to the legitimate Polymarket infrastructure. This results in arbitrary code execution on the installer's machine.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The polymarket-stake-mathss package is a malicious typosquat of the legitimate polymarket-stake-math package. Its postinstall script fetches a tarball from an attacker-controlled domain (https://log-taker.store/config/stake-math-sync.json), extracts it, installs dependencies, and executes a JavaScript file that runs arbitrary code. The malicious code execution occurs at install time, disguised under benign-sounding function names that mimic legitimate peer dependency checks. This unpinned and unsigned fetch allows the attacker to run arbitrary code on any machine that installs this package version 3.5.2.
Potential Impact
Installing polymarket-stake-mathss version 3.5.2 results in arbitrary code execution on the installer's system, potentially compromising the system's security and integrity. The attacker-controlled code is fetched and executed without verification, enabling full control over the installation environment.
Mitigation Recommendations
Avoid installing polymarket-stake-mathss version 3.5.2. Since this is a typosquatting malicious package, users should verify package names carefully before installation. There is no official patch or fix available. Remove any installations of this package and scan affected systems for potential compromise. Monitor package sources and rely only on verified, official packages.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13707
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a79f0c4bf8831d539f5dc9c
Added to database: 08/10/2026, 15:39:48 UTC
Last enriched: 08/10/2026, 15:42:51 UTC
Last updated: 09/23/2026, 04:49:51 UTC
Views: 23
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.