The skimmer in your checkout is now phoning home over WebRTC

4 min read 1 source explainer
├── "WebRTC exfiltration represents a fundamental blind spot in current e-commerce defenses"
│  ├── top10.dev editorial (top10.dev) → read below

The editorial argues that the defensive stack most merchants built — centered on CSP's connect-src directive and DevTools Network tab visibility — was architected around the assumption that exfiltration happens over HTTP. WebRTC data channels bypass both: they don't appear in the Network panel and aren't governed by connect-src, leaving a gap that can only be closed via the spottily-supported CSP Level 3 webrtc directive.

│  └── scanr (Hacker News, 175 pts) → read

The submitter frames the finding as a live, in-the-wild deployment on mid-tier Shopify and Magento stores during peak Black Friday traffic. The emphasis is on the exfiltration channel's invisibility — under 4KB of script, no fetch/XHR/beacon, traffic only visible via chrome://webrtc-internals — making it a meaningful escalation over prior Magecart variants.

└── "The technique isn't novel — it's a long-known PoC finally weaponized"
  └── @HN commenters (aggregate) (Hacker News) → view

Commenters on the thread point out that WebRTC-based exfiltration was described in proof-of-concept form as far back as 2019. Their take is that the real news isn't the technique but the lag between public disclosure of a bypass and its first widespread criminal deployment against production retail.

What happened

Researchers posting to InfoHawk on November 27 disclosed a batch of live credit-card skimmers running on several mid-tier Shopify and Magento storefronts in the middle of Black Friday weekend. The novelty isn't the injection vector — tag-manager supply-chain compromise, same as every Magecart variant since 2018 — it's the exfiltration path. Instead of POSTing stolen form data to an attacker-controlled HTTPS endpoint, the script opens an `RTCPeerConnection`, negotiates an SDP offer through a public STUN server, and streams card numbers, CVVs, and billing addresses over a WebRTC data channel to a peer running on a residential IP.

The reported script weighs under 4KB. It hooks the checkout form's `submit` listener, serializes the PAN, expiry, CVV, name, and billing block into a compact JSON blob, and shoves it into `dataChannel.send()`. There is no `fetch`, no `XMLHttpRequest`, no `navigator.sendBeacon`, no image-pixel trick. From the browser's DevTools Network tab the checkout looks completely clean — the traffic doesn't appear there at all, because WebRTC data channels don't show up in the Network panel. You have to open `chrome://webrtc-internals` to even see the session exists.

HN commenters flagged the same technique being described in proof-of-concept form as far back as 2019, but this appears to be one of the first widely-reported in-the-wild deployments against production retail. At time of writing, affected merchants had been notified; at least two had taken their checkout offline.

Why it matters

The defensive posture most e-commerce shops have built over the last five years assumes exfiltration is an HTTP request. Content Security Policy's `connect-src` directive, the single control most teams rely on to stop skimmers, does not govern WebRTC peer connections at all in practice — you need the separate (and spottily-supported) `webrtc` directive from CSP Level 3, which Chrome has only shipped behind a flag and Firefox hasn't shipped at all. So a CSP that reads `connect-src 'self' https://api.stripe.com` — which looks tight on paper — will happily let a compromised third-party script open a WebRTC channel to anywhere on the public internet.

It gets worse for the detection side. WAFs and egress proxies inspect outbound HTTP; WebRTC traffic is UDP, encrypted via DTLS-SRTP, and in the data-channel case uses SCTP-over-DTLS. There is nothing for an HTTP-aware WAF to parse. Even if you're running a reverse-proxy inspection product like Akamai Page Integrity Manager or Human Security's PerimeterX, those hook the browser via injected JS — which the skimmer can detect and route around, since it controls the same execution context.

The STUN/TURN layer is the other quietly broken assumption. Most commercial skimmer-detection tools maintain blocklists of known-malicious exfiltration domains. Public STUN servers — Google's `stun.l.google.com:19302`, Cloudflare's, Twilio's — are on virtually every allowlist, because real-world WebRTC apps (video calls, collab editors, game lobbies) depend on them. The skimmer uses the same infrastructure your Zoom tab uses. Blocking it blocks the legitimate feature.

Community reaction on HN split two ways. The security researchers' camp argued this is the inevitable endgame of treating CSP as sufficient defense — the real fix is to render checkout inside a strictly sandboxed iframe (Stripe Elements, Adyen Components) so that even full script-injection on the merchant page cannot see the card fields. The other camp noted that plenty of mid-market shops cannot or will not iframe their checkout, because the conversion hit from a third-party iframe is real and measurable.

What this means for your stack

If you run a checkout page and you're not already using a hosted-fields iframe product, you have three concrete things to do before Cyber Monday traffic lands. First, audit your CSP. Add `connect-src` and, if your users are on Chrome Canary or a hardened enterprise build, `webrtc 'none'` — and test that the directive actually fires by trying to open an `RTCPeerConnection` from your checkout in a canary profile. For Firefox and Safari users, CSP won't help you here; you need the second lever.

Second, instrument the client. Override `window.RTCPeerConnection` early in your checkout bundle — before any tag-manager script runs — and log every construction, every `createDataChannel` call, and every `setRemoteDescription` with the SDP body. Ship those events to your SIEM. You will get zero hits on a clean checkout and immediate loud alarms if a skimmer shows up. This is a ten-line patch and the most reliable signal available right now.

Third, review your third-party script inventory with fresh eyes. The skimmers in this disclosure rode in via a compromised analytics tag and a compromised chat-widget vendor — both industries notorious for weak supply-chain hygiene. If you don't have a Subresource Integrity hash on every `