Your CSP cannot see the WebRTC card skimmer. I built a one-command check for your checkout page.
DEV Community

Your CSP cannot see the WebRTC card skimmer. I built a one-command check for your checkout page.

The week before Black Friday, card skimmers hit five big retailers and eighty US newspaper checkouts.

The modern skimmer does not send stolen cards over HTTP, so your CSP and your HTTP scanners cannot see it. I built a one-command check that audits your checkout page before you deploy.

What happened

InfoHawk, 27 November 2026. A skimmer ran on five retailers - Lascana, Samsonite, American Tourister, Revolve, FWRD.

It only ran on mobile and touch screens, and only on checkout pages, so desktop scans and homepage scans could not see it.

It read card number, expiry, CVV, name, address, phone and email, and sent them BEFORE the store validated payment, so a card could be taken even when the order was declined or cancelled.

The loader came from an S3 bucket in seven steps. Only step 4 was a plain web request (GET /_cf/ice, POST /_cf/rel to northbridgeads) that connect-src could block. Steps 5 to 7 ran over a WebRTC data channel through a Cloudflare TURN relay, outside connect-src: the payload arrived in chunks, was SHA-256 checked, then run with eval.

Entry points: a tampered Quorum marketing pixel (Lascana), a tampered Seers cookie-banner install (Samsonite, American Tourister), a file changed on Revolve's own CDN (Revolve, FWRD).

Reported 24 November; Lascana removed the pixel the same day at 15:48 UTC; Revolve and FWRD confirmed removal 25 November.

Guardio Labs, 22 November 2026 (PaperCut). Eighty US newspaper checkouts - Boston Herald, Denver Post, NY Daily News and others - through ONE added line in the shared Payway card form (Naviga platform), live from 13 November.

The loader posed as jQuery.1.3.1.js via jsDelivr; the stealer was delivered per visitor over WebRTC to 89.116.171.109 (UDP 40000); hovering the pay button sent the card data.

102,749 downloads of the malicious file from 13 to 19 November (jsDelivr stats), about 15,000 per day.

Three facts I never forget

  • The number of real cards stolen in either incident is UNKNOWN. InfoHawk: "we do not know how many, if any, shopper details may have been captured." Guardio did not enter a test card and confirmed no number of real cards stolen. My tool never prints a victim count.
  • The InfoHawk and PaperCut incidents used the same technique. They have NOT been shown to share an attacker.
  • WebRTC is not the vulnerability. It is only a less-monitored channel than HTTP.

Why the tools you already have miss it

  • CSP governs HTTP requests. The WebRTC data channel is not an HTTP request. A policy that scores well on a CSP evaluator is still blind to a WebRTC skimmer.
  • CSP Evaluator analyses policy syntax, directive by directive. It never fetches your page or reads a script.
  • Mozilla Observatory checks headers only. No script inventory, no exfil detection.
  • Sansec eComscan is the strongest threat intel here - it found the first WebRTC skimmer in March 2026 - and its server-side scanning finds backdoors in files and the database. But it is a commercial paid product, Magento-focused, and it scans the server, not your checkout page in CI.

What was missing was a local check that runs before deploy: inventory every script on the checkout page, flag WebRTC/eval/exfil patterns, compare hosts against your CSP connect-src, and fail the build when it finds something.

What I built

skimscan is a zero-dependency TypeScript CLI (Node 20+). It fetches a page and every script on it, checks 7 rules, and prints a verdict - CLEAN, REVIEW, or BLOCKED - with an exit code your CI gate can use.

It runs no browser, executes no page code, submits no form, and never touches card data.

git clone https://github.com/techdevfun/skimscan.git
cd skimscan
npm install
npm run build
node dist/cli.js audit https://your-shop.example/checkout

Five commands: init (scaffold config), audit (full table + verdict), check (one line + exit code for CI), diff (compare against an approved baseline), explain (each rule, plus the infohawk and papercut incidents with sources and dates).

Audit fetches with a mobile user agent by default - the InfoHawk skimmer only ran on mobile checkout. Use --desktop to compare.

Only audit sites you own or operate, or that you have permission to audit.

The 7 rules

  • S1 THIRD-PARTY-ON-PAYMENT - HIGH: A script from a host outside the page origin and outside the allowlist on a payment page
  • S2 WEBRTC-CHANNEL - HIGH: A WebRTC data channel in a script, together with a card-field read, an off-policy exfil, or dynamic code on the same page
  • S3 DYNAMIC-CODE - HIGH: eval(, Function(, or chunk-load with a SHA-256 check before running code
  • S4 EXFIL-OUTSIDE-CSP - HIGH: fetch / XHR / sendBeacon / WebSocket to a host not in the page CSP connect-src
  • S5 CARD-FIELD-READ - MEDIUM: A script that is not from an allowlisted payment provider reads card fields by selector
  • S6 HOSTED-FORM-DRIFT - HIGH: A hosted payment script pinned in the config changed hash since approval
  • S7 CSP-WEAK - MEDIUM: No CSP header, or connect-src too wide (*, https:, http:)

Verdict: BLOCKED if any HIGH rule fails; REVIEW if only MEDIUM rules fail; CLEAN if every rule passes. CLEAN means "no known skimmer pattern detected in this fetch", not "proven clean".

S2 is deliberately gated: a plain video-chat widget on a checkout page does NOT fail it. WebRTC only fails when it rides with a card-field read, an off-policy exfil, or dynamic code on the same page.

It catches the real shapes

I rebuilt both incidents as labelled fixtures from the public writeups (no real card data, exfil hosts renamed to .invalid where they point nowhere real) and locked the verdicts in tests:

A clean checkout:

skimscan audit http://127.0.0.1:18123/clean-checkout/checkout.html

scripts: 2 (2 external, 0 inline, 0 frame) - CSP: present ...

VERDICT: CLEAN No known skimmer pattern detected in this fetch - this does not prove the page is clean.

The InfoHawk shape, reconstructed:

skimscan audit http://127.0.0.1:18123/infohawk-reconstructed/checkout.html

RULE / RESULT / SEVERITY / DETAIL
S1 / FAIL / HIGH / 1 third-party script(s) not in the allowlist
S2 / FAIL / HIGH / WebRTC data channel in 1 script(s) together with off-policy exfil (S4)
S3 / FAIL / HIGH / 1 script(s) use eval/Function or chunk-load with SHA-256 check
S4 / FAIL / HIGH / 1 exfil target(s) outside CSP connect-src ...

VERDICT: BLOCKED

Run the same URL with --desktop and the loader vanishes: the fixture server serves the loader script tag only to mobile user agents, matching the public reporting. That is the whole point of the mobile default.

Drift: catch the one added line

PaperCut was one added line in a shared form. diff compares the current script inventory against an approved baseline:

skimscan audit --desktop --json https://your-shop.example/checkout > baseline.json
# ... later, or after a deploy ...
skimscan diff --baseline baseline.json https://your-shop.example/checkout

Exit 1 when a script appears that is not in the baseline and not in the allowlist, or when a script that was in the baseline changed hash. A new same-origin or inline script fails the gate too: it is new code on the checkout.

In the PaperCut fixture, the pinned payment script changed hash and S6 fires - BLOCKED.

Where rivals beat us

Sansec eComscan / Shield / Watch has live threat intel and server-side scanning: eComscan finds backdoors in files and the database, which skimscan can never see from the client. eComscan is a commercial paid product - Sansec publishes no prices on its pricing page (tiers Secure, Advanced and Enterprise, checked 28/11/2026) - and is Magento-focused. skimscan is a free local CLI that any stack can run in CI; it only audits the client side (HTML + script + header).

Google CSP Evaluator analyses a CSP policy deeper than skimscan (syntax, directive by directive). skimscan only checks connect-src coverage against the hosts actually observed.

Runtime scanners and production monitoring see real behaviour over time. skimscan is a point-in-time static audit: it cannot see a skimmer that only activates at certain hours or for certain visitors.

skimscan does NOT prove a page is clean. It proves that no known pattern and no host outside the policy were found in that one fetch.

Honest limits

Static fetch only (HTML + script + CSP header). No browser, no runtime behaviour. A checkout rendered client-side may hide its real scripts from a static fetch: audit warns when a page has very few scripts. A headless-browser mode is on the roadmap.

No CSP directive governs reading the DOM, so S5 is a heuristic over explicit card-field selectors, not a guarantee.

A fetch blocked by bot defense (403/429) is reported as a fetch error (exit 2). skimscan does not retry blindly and does not spoof user agents beyond the standard mobile/desktop pair.

100% local: the tool sends the page URL only to that page itself (and each script URL to its own host). It never prints card data: it never reads form values at all, only field names and code patterns.

Install

Install from source for now - the npm package is not published yet:

git clone https://github.com/techdevfun/skimscan.git
cd skimscan
npm install
npm run build

34 tests (unit + e2e) plus live smoke tests, tsc strict, eslint + prettier clean. The repo is github.com/techdevfun/skimscan.

If you run a checkout page, run it in CI before your next deploy - the skimmer that beat CSP was one added line in a shared form, and nobody noticed for six days.

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.