Tutorials 2 min read

WebRTC skimmer: understanding and detecting next-gen payment theft

Key Takeaways

  • New payment skimmer type using WebRTC data channels
  • WebRTC bypasses WAFs and most network monitoring tools
  • Payload received and data exfiltrated via encrypted peer-to-peer connections
  • Classic detection methods (HTTP traffic analysis) are ineffective

WebRTC: the new skimmer exfiltration channel

Security researchers discovered a new payment skimmer that uses WebRTC data channels to receive its payload and exfiltrate card data. This technique effectively bypasses traditional security controls.

How it works

  1. Loader injection: compromised e-commerce site gets a minimal script on payment pages
  2. Payload via WebRTC: instead of HTTP (detectable by WAF), the loader establishes a WebRTC DataChannel to a C2 server
  3. Data capture: skimmer intercepts card number, expiry, CVV, cardholder name
  4. Exfiltration via WebRTC: stolen data sent back through the encrypted WebRTC channel, not HTTP

Why classic defenses fail

DefenseEffectiveness
WAFIneffective: payload doesn’t use HTTP
CSPPartially effective if connect-src is restrictive
HTTP monitoringIneffective: exfiltration via WebRTC
Static script analysisPartially: loader is minimal

Detection

  1. Monitor unexpected WebRTC connections: payment pages have no reason to establish WebRTC connections
  2. Strict CSP on payment pages: limit connection destinations via connect-src
  3. Integrity verification: regularly compare payment page DOM against a known baseline
  4. Behavioral monitoring: watch for unusual JS events on payment pages (RTCPeerConnection creation, input field listeners)

Recommendations

Strict CSP on all payment pages, SRI on all third-party scripts, WebRTC monitoring alerts on transactional pages, regular front-end code audits, and payment page isolation on a dedicated subdomain.

These are affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.

Sources

Share :

Advertisement

Related Articles