CSP’s connect-src controls fetch, XHR, WebSocket, EventSource and sendBeacon, but not WebRTC peer connections, so a skimmer that sends card data over a WebRTC data channel goes straight past it. The CSP webrtc 'block' directive is in the spec, but no browser enforces it as of November 2026. What works today: fewer scripts on checkout, Chrome’s Connection-Allowlist header, and testing from a phone-sized browser.
What happened with the Black Friday WebRTC skimmers?
In the week before Black Friday 2026, a card skimmer was planted on five online stores and sent payment details out over WebRTC. InfoHawk published the details on November 27, after every store had removed the script on November 24 or 25.
The script reached the stores three different ways:
| Store | How the skimmer got onto the page |
|---|---|
| Lascana | An altered Quorum marketing pixel |
| Samsonite, American Tourister | An edited Seers cookie-banner setting: the privacy-policy link field held a hidden image whose onerror handler loaded the code |
| Revolve, FWRD | An altered file on Revolve’s own CDN |
None of the three paths needed a change to the stores’ own application code. The skimmer ran only on small or touch screens, and InfoHawk only saw the server turn it on at checkout. It was built to take the card number, expiry, security code, name, address, phone and email as the shopper typed them, before the store checked the payment. InfoHawk watched it send a test card’s details off-site at Lascana. Nobody knows how many real shoppers were hit.
Earlier in the month, on November 16, attackers used a flaw in Optimizely Web Experimentation to push malicious JavaScript to visitors of 178 organisations, including Zoom, the BBC and CNN, according to Report URI’s analysis. Optimizely’s own update of November 25 traces it to a legacy free-trial signup flow and impersonated user accounts. Report URI crawled 256 of the affected organisations’ hosts and checked their CSPs against the payload. Of the organisations it could evaluate, 68 had no CSP at all, 50 had one that let the payload and the data theft through, 17 let the payload run but blocked the theft with connect-src, and 24 (15%) blocked the payload outright.
The 24 protected sites had a script-src that listed only the hosts they needed. On the 17 others, connect-src stopped the theft because that skimmer sent cards out with navigator.sendBeacon, which connect-src covers. The WebRTC kit was built to walk around exactly that second line of defence.
How does a WebRTC skimmer get past CSP?
connect-src doesn’t apply to WebRTC, and the data channel isn’t HTTP, so neither CSP nor HTTP-level monitoring sees the card data leave. MDN’s connect-src reference lists the APIs it restricts: the ping attribute, fetch(), fetchLater(), XMLHttpRequest, WebSocket, EventSource and sendBeacon(). RTCPeerConnection isn’t one of them. Google’s Chrome team says it directly: CSP “does not exhaustively cover all web platform APIs, omitting mechanisms like DNS prefetch, navigations, WebRTC, and more.”
InfoHawk’s breakdown of the kit, at a high level:
- A loader gets onto the page through one of the paths above and pulls a script from an Amazon S3 bucket named to look like the brand.
- It checks for a small or touch screen.
- It makes two ordinary HTTP requests, one to fetch relay details and one to send a WebRTC offer. This is the only step
connect-srccan block. - Everything after that runs over a WebRTC data channel through Cloudflare’s TURN relay. The skimmer’s main code arrives in chunks, is checked against a SHA-256 digest and is run with
eval, and the card data leaves the same way.
The relay makes detection harder. Traffic to a well-known TURN service looks like any video call and hides the real endpoint. Sansec, which described an earlier WebRTC skimmer in March 2026, adds that data channels run over DTLS-encrypted UDP, so “network security tools that inspect HTTP traffic will never see the stolen data leave.” Developer tools don’t help much either. A commenter in the Hacker News discussion pointed out that Chrome DevTools doesn’t surface WebRTC connections at all, which leaves you with chrome://webrtc-internals.
Another commenter made a fair point: block WebRTC and a different technique would very likely work. Once untrusted code runs on your checkout, it has other ways out. Closing the WebRTC gap helps, but keeping that code off the page helps more.
Does CSP have a webrtc directive?
Yes, on paper. CSP Level 3 (W3C Working Draft, 27 October 2026) defines webrtc with exactly two values, 'allow' and 'block'. Under webrtc 'block', the spec says no ICE candidates are gathered, no connectivity checks run, and the connection goes from “new” straight to “failed.”
Before you rely on it:
- It’s all or nothing. There’s no source list, so you can’t allow your own video provider and block everyone else.
default-srcdoesn’t cover it. The spec’s check only looks for awebrtcdirective, sodefault-src 'none'on its own doesn’t block WebRTC.- No browser enforces it. Here is what’s known as of November 29, 2026:
| Browser | webrtc directive status |
Evidence |
|---|---|---|
| Chrome | Not implemented; logged as an unrecognized directive | CentralCSP’s reference; a hands-on test in headless Chrome 156 with default-src 'self'; webrtc 'block' still saw the peer connection gather candidates |
| Firefox | Not implemented | Bug 1783489, “Implement CSP ‘webrtc’ directive”, status NEW and unassigned |
| Safari | Not implemented | CentralCSP; no entry in MDN’s compatibility data |
MDN has no page for the directive, and its browser compatibility data lists no webrtc entry. Sansec’s March post said Chrome had “shipped experimental support.” I couldn’t find a Chrome Platform Status entry for the CSP directive, and the newer tests above show no effect. Either way, it isn’t protecting shoppers today.
Add webrtc 'block' anyway on pages that don’t use WebRTC. Browsers ignore directives they don’t recognise (Chrome prints a console warning), and it starts working when support ships. The CSP on this site, served from a Cloudflare Pages _headers file, doesn’t have one yet either.
What blocks WebRTC in browsers today?
In Chrome, the Connection-Allowlist header does, and it blocks WebRTC by default. The Chrome team’s announcement of September 23, 2026 says it is “officially available starting in Chrome 152.” It’s a deny-by-default list of URL patterns for the connections a document or worker makes, and “by default, connection allowlists block all redirects and WebRTC connections.”
What you should know before deploying it:
- It covers far more than
connect-src. The specification applies the check to resource requests generally (scripts, images, fonts, frames), plus WebRTC, DNS prefetch and navigations. Every host your checkout loads anything from has to be in the list.data:,blob:andabout:URLs are always allowed. - Redirects are blocked by default, including same-origin ones. If your checkout relies on one, for example a POST that redirects to an order confirmation page, you’ll need
redirects=allow. The spec also puts navigations in scope, so an off-site step such as a wallet or 3-D Secure page has to match a pattern. Report-only mode shows you where this bites. - It doesn’t protect iPhone shoppers. Chrome Platform Status lists Chrome 152 for desktop, Android and WebView, and no iOS release. Mozilla’s standards position is positive but Firefox has no implementation, and WebKit has given no signal. That matters here, because this skimmer targeted phones.
- It’s a WICG Draft Community Group Report (6 October 2026), not a W3C standard, so details may change.
- The policy is per window or worker. A cross-origin iframe, such as your payment provider’s, follows its own policy.
A checkout policy that combines both headers looks like this. Replace the psp.example hosts with your payment provider’s documented hosts and test it in staging first:
Content-Security-Policy: default-src 'self'; script-src 'self' https://js.psp.example; frame-src https://js.psp.example; connect-src 'self' https://api.psp.example; img-src 'self' data:; object-src 'none'; base-uri 'self'; form-action 'self'; webrtc 'block'; report-to csp
Connection-Allowlist-Report-Only: (response-origin "https://js.psp.example/*" "https://api.psp.example/*"); report-to=conn
Reporting-Endpoints: csp="https://reports.example.com/csp", conn="https://reports.example.com/conn"
What each part does:
script-srclists hosts and has no'unsafe-eval'and no'strict-dynamic'. Report URI found those two settings let the Optimizely payload through on many sites, and the WebRTC kit ran its main code witheval.connect-srclists only the hosts checkout needs, which blocks the HTTP setup calls InfoHawk describes.webrtc 'block'costs nothing today.- In the Connection-Allowlist header,
response-originstands for your own origin, and the two patterns cover the payment provider. It starts in report-only mode. When the reports are clean, rename it toConnection-Allowlist. WebRTC stays blocked because the header doesn’t setwebrtc=allow.
If your platform can send an Integrity-Policy header, for example Integrity-Policy: blocked-destinations=(script), the browser blocks any script that lacks a Subresource Integrity (SRI) hash, which turns a silently altered file into a blocked one. MDN lists support in Chrome 138, Safari 26 (including iOS) and, partly, Firefox 145, so unlike Connection-Allowlist it also reaches iPhones. It only works for files that don’t change without a release, which rules out most vendor tags.
How do you keep third-party scripts off your checkout?
Give checkout its own template with no tag manager, pixels, A/B testing, chat or consent-banner extras, and put the card fields in your payment provider’s hosted iframe. InfoHawk’s advice is the same: card fields “should sit in an isolated payment frame, and third-party tags should be kept off these pages entirely.”
The hosted iframe does real work. In the Optimizely incident, Report URI found that “cards entered in hosted payment iframes (Stripe, Adyen and similar) were out of its reach. Cards typed into a site’s own form fields were not.” The page around the iframe still matters, because a script there can rewrite what the shopper sees. That’s why the PCI Security Standards Council, when it took Requirements 6.4.3 and 11.6.1 out of SAQ A in January 2025, added an eligibility criterion instead: merchants must “confirm their site is not susceptible to attacks from scripts that could affect the merchant’s e-commerce system(s).”
For everything that does load on checkout, ask who can change it without going through your release process:
| Where the code comes from | Who can change it without your deploy | What to do |
|---|---|---|
| Your own bundle | Whoever can merge to main or touch CI | Branch protection and scoped CI tokens; see what your CI can reach |
| Your own CDN or bucket | Anyone with write access to it | Lock down write access, turn on versioning, add SRI on the script tag |
| A vendor-hosted script (pixel, A/B test) | The vendor, and anyone who compromises the vendor | Keep it off checkout. If it must stay, self-host a pinned copy with SRI |
| Vendor config rendered into your page (consent banner) | Anyone who can log in to the vendor dashboard | Keep it off checkout, require MFA on the vendor account, review URL fields |
| Tag manager | Every user with publish rights on the container | Exclude checkout in trigger rules and limit publish rights |
This table is most of what PCI DSS v4.0.1 Requirement 6.4.3 asks for. It says all payment page scripts loaded in the consumer’s browser are managed so that “a method is implemented to confirm that each script is authorized,” another assures “the integrity of each script,” and “an inventory of all scripts is maintained with written business or technical justification as to why each is necessary.” The council’s guidance supplement covers how. The same inventory helps when one of those vendors goes down, which is the subject of third-party outages for small teams.
How do you detect a skimmer on your own checkout?
Test the page the way a targeted shopper sees it: a phone-sized touch screen, at the payment step, with card fields filled in. InfoHawk notes that “desktop checks and homepage scans would likely not see it,” and static scanners can’t see code that the server only sends to some visitors.
A small Playwright test can catch WebRTC peer connections on checkout in a mobile profile. page.addInitScript runs before the page’s own scripts in the page and in every child frame, and page.exposeFunction gives each frame a way to report back to the test. It’s a tripwire, and a determined script can get around it, but it’s cheap to run on a schedule:
// tests/checkout-webrtc.spec.js
const { test, expect, devices } = require('@playwright/test');
test.use({ ...devices['Pixel 5'] }); // phone-sized touch screen, Chromium
test('checkout opens no WebRTC peer connections', async ({ page }) => {
const opened = [];
await page.exposeFunction('reportRtc', (frameUrl) => opened.push(frameUrl));
await page.addInitScript(() => {
for (const name of ['RTCPeerConnection', 'webkitRTCPeerConnection']) {
const Native = window[name];
if (!Native) continue;
window[name] = new Proxy(Native, {
construct(target, args, newTarget) {
window.reportRtc(location.href);
return Reflect.construct(target, args, newTarget);
},
});
}
});
await page.goto('https://shop.example/checkout');
// Type a test card the way a shopper would, but don't submit. Adjust the
// label to your form, e.g.:
// await page.getByLabel('Card number').pressSequentially('4242424242424242');
await page.waitForTimeout(10_000); // give late-loading scripts time to act
expect(opened).toEqual([]);
});
Run it against production as well as staging, because vendor pixels and banner configs often differ between the two. Alongside it:
- Collect CSP and Connection-Allowlist reports at the endpoints in the headers above, and alert on any new host.
- Meet Requirement 11.6.1. It asks for a change- and tamper-detection mechanism that alerts on unauthorized changes to “the security-impacting HTTP headers and the script contents of payment pages as received by the consumer browser,” run “at least weekly” or at the frequency set by a targeted risk analysis under Requirement 12.3.1, as quoted from the v4.0.1 standard. The scheduled mobile test above, plus a diff of the received headers, is a start on that. For an audit, check the wording in the official standard from the PCI SSC.
- Check for the indicators InfoHawk published: scripts from brand-named S3 buckets,
/_cf/iceand/_cf/relrequests to*.northbridgeads[.]comat the payment step, and the stringsKghRtc,rtc-signal-v1andquickfetch. Their post has the full list. - After an incident like Optimizely’s, review the change history in each vendor dashboard, not only your own repository.
What I’d do this week
- List every script that loads on your checkout and payment pages, with who can change each one. Remove anything that doesn’t take part in the payment itself.
- Move card entry into your payment provider’s hosted fields if it isn’t there already.
- Remove
'unsafe-eval'and'strict-dynamic'from the checkout CSP, tightenconnect-src, and addwebrtc 'block'. - Add
Connection-Allowlist-Report-Onlyto checkout, read a week of reports (watch for blocked redirects), then enforce it. - Add the mobile checkout test above to a nightly job against production.
- Turn on MFA for every vendor dashboard that can change code on your pages: tag manager, consent banner, A/B testing and analytics.
Further reading
- InfoHawk: credit card skimming scripts using WebRTC, the primary report with indicators
- Report URI on the Optimizely incident, with the CSP breakdown across affected sites
- Chrome: Connection allowlists, syntax and report-only mode
- Connection Allowlists specification, for what the header covers and how matching works
- CSP Level 3, webrtc directive
- Sansec on WebRTC skimmers, March 2026
- PCI SSC: payment page security and preventing e-skimming
- Hacker News discussion of the InfoHawk report
If you run a store and want a second opinion on what loads on your checkout and who can change it, that’s the kind of review I do as a fractional CTO.