polymarket-apis@1.1.0
Malicious code in polymarket-apis (npm)
Analysis
polymarket-apis@1.1.0 is a combosquat package impersonating the Polymarket API SDK. The exported getPlugin() function fetches remote JavaScript code from hxxps://svganchordev[.]net/icons/{token} and executes it via the Function constructor with full Node.js runtime access (require, process, Buffer, child_process). The fetched response field "data.credits" is the executed payload. The package ships dependencies for credential theft: @primno/dpapi (Windows DPAPI credential decryption), better-sqlite3 (browser credential database access), node-machine-id (system fingerprinting), and socket[.]io-client (C2 communications). Any code importing and calling getPlugin() will download and execute an arbitrary second-stage payload from the C2 host svganchordev[.]net.
- analyzed by
- Leitwacht
- first seen
- Jul 3, 2026, 12:53 PM
- analyzed
- Jul 3, 2026, 12:56 PM
Related advisories
- yiyuan-api@1.0.3
- polygon-gamma-apis@1.5.2
- ue-jenkins-buildkite@99999.0.0
- epic-internal-tools@99999.0.0
- robomerge@99999.0.0
- compose-logger-stand@1.0.126
- cursed-ecto-d3ab00@1.0.0
- mjs-eslint@7.0.7
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.