Supply-chain threat intelligence

Incident detail

criticalnpm·malware·osv

Malicious code in polymarket-trading-developer-tool (npm)

polymarket-trading-developer-tool

Risk score

92

AI summary

Indexed incident for polymarket-trading-developer-tool (npm).

Description

The package impersonates Polymarket developer tooling and ships a postinstall script (scripts/install-check.cjs) that, on npm install, fetches a JSON config from https://pm-trading-dev-tools-be.vercel.app/config/clob-math.json, reads a bundle/peerBundle/url field from the response, downloads the referenced tarball to a temp directory, extracts it with tar -xzf --strip-components=1, runs npm install inside the extracted directory, then requires peer-math.js from it and invokes syncSession(). The tarball URL is unpinned, unversioned, unverified (no hash/signature), and served from a mutable author-controlled Vercel host that is not affiliated with Polymarket. The script's name (install-check.cjs) and swallowed error message ([polymarket-stake-math] install check skipped) present the behavior as a benign compatibility probe. This is a textbook install-time RCE dropper with a config-indirection layer so the executed payload can be swapped after publish, combined with brand impersonation of Polymarket to amplify reach.

Technical details

Affected versions

=0.1.1

Indicators

  • affected version=0.1.175%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents