Worked example · 2024-20
Embedded-Wallet and Trader-Tooling Supply-Chain Compromise Cohort — 2024–2026
Summary
Two separate Polymarket-adjacent patterns are grouped here. First, embedded-wallet login drains: in late September 2024 Cointelegraph reported users whose wallets were drained after logging in via Google (not users of MetaMask-style extension wallets); Polymarket's login used Magic's SDK, and the support team said investigations with magic.link were ongoing. In December 2025 Polymarket stated the cause of a further set of account drains was "a vulnerability introduced by a third-party authentication provider"; the affected users mainly signed up through Magic Labs, though Polymarket's statement did not name the provider. Second, malicious npm packages impersonating Polymarket trading tools stole private keys from developers in May 2026.
Timeline
T11.008: reports from 2024-09 (Google-login drains; cause not publicly established), 2025-12-24 (third-party auth provider vulnerability). T11.009: 2026-05-20/21 (SafeDep).
T11.008 — Embedded-Wallet Identity-Provider Compromise
Compromise of the identity-provider layer of an embedded wallet, where key derivation runs through a third-party authentication service (email magic-link, OAuth federation, MPC-backed social login). The on-chain wallet appears non-custodial; the effective custody surface is the auth provider's security posture.
Vendor cohort: Magic Labs, Privy, Web3Auth, Dynamic, Particle Network and similar embedded-wallet-as-a-service offerings.
Cases: Polymarket Google-login drains, September 2024 (provider only investigating; no published root cause) and Polymarket third-party-auth vulnerability, December 2025 (fixed per Polymarket; losses undisclosed). Users of embedded-wallet platforms typically have no seed phrase, so there is no self-custody fallback when the auth provider is at fault.
T11.009 — Trader-Tooling Supply-Chain Compromise Targeting .env Private Keys
Malicious packages in trader-tooling distribution channels (npm here) that exfiltrate plaintext private keys from developer environments.
Case: polymarket- npm packages, published 2026-05-20.* SafeDep reports nine packages (polymarket-trading-cli, polymarket-terminal, polymarket-trade, polymarket-auto-trade, polymarket-copy-trading, polymarket-bot, polymarket-claude-code, polymarket-ai-agent, polymarket-trader) that collect PRIVATE_KEY from the environment or a .env file, or via a postinstall prompt falsely claiming the key stays encrypted, and send it in plaintext to a Cloudflare Worker endpoint. A linked GitHub repository had likely purchased stars (69 stars, 22 forks). SafeDep makes no actor attribution.
Public references
[cryptotimespolymagic2025]— The Crypto Times, "Polymarket Reports Third-Party Vulnerability Behind Recent Hack" (2025-12-24): https://www.cryptotimes.io/2025/12/24/polymarket-reports-third-party-vulnerability-behind-recent-hack/ (third-party auth flaw; users mainly Magic Labs sign-ups; also recounts the September 2024 Google-login drains and a November 2025 comment-phishing loss over $500,000)[cointelegraphpolygoogle2024]— Cointelegraph, "Polymarket users complain of mysterious Google login wallet attacks" (2024-09): https://cointelegraph.com/news/polymarket-google-login-wallet-hack[safedeppolynpm2026]— SafeDep, "Polymarket npm Packages Steal Crypto Wallet Keys" (2026-05-21): https://safedep.io/malicious-polymarket-npm-crypto-wallet-drainer/ (nine malicious polymarket-* packages stealing wallet keys)