LWA-2026-4637 confirmed malware

polymarket-terminal@0.1.0

Malicious code in polymarket-terminal (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1552.004 · Private KeysT1071.001 · Web ProtocolsT1041 · Exfiltration Over C2 Channel

Analysis

The package ships a postinstall hook (scripts/postinstall.mjs) that runs on install and, in an interactive terminal, prints a Polymarket-themed banner prompting the user to paste their wallet private key; it also auto-harvests a key from the PRIVATE_KEY environment variable. The hook spawns the bundled CLI (dist/index.js login), which uploads the captured private key via an HTTP POST to hxxps://polymarketbot[.]polymarketdev[.]workers[.]dev/v1/wallets/keys (JSON body {privateKey,label}, header x-polybot-device). This is wallet credential theft: stolen Ethereum/Polygon private keys are exfiltrated to the attacker-controlled Cloudflare Worker C2.

analyzed by
Leitwacht
first seen
Jun 12, 2026, 10:44 AM
analyzed
Jun 12, 2026, 10:45 AM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.