Web Skimming
Web skimming is a type of cyberattack in which criminals secretly insert malicious code into a website to steal information that customers enter, such as payment card details. It often targets the checkout or payment pages of online stores, capturing data as shoppers type it into web forms. It is sometimes called a Magecart attack or formjacking.
Web skimming, also referred to as a Magecart attack or formjacking, is a client-side attack in which an adversary injects malicious code, typically JavaScript, into a website or its dependencies and exfiltrates data submitted through HTML forms. The injected skimmer commonly harvests data entered on payment or checkout pages, including payment card details, and transmits it to attacker-controlled infrastructure. Because the theft occurs in the browser as data is entered, it can capture cardholder data and any sensitive authentication data (such as CVV2/CVC2/CID) present in the form regardless of server-side storage controls; note that specific detection and control effectiveness depends on implementation and validation.
Why it matters
Web skimming is significant because it captures payment data at the point where a customer types it into a web form, inside the browser, before server-side protections apply. This means that even where a merchant follows storage controls for cardholder data, a skimmer can still harvest the data as it is entered, including sensitive authentication data such as CVV2/CVC2/CID that must not be stored after authorization. The attack undermines the assumption that securing back-end systems is sufficient, because the theft occurs client-side.
The risk is compounded by the modern web supply chain. Checkout pages routinely load third-party JavaScript for analytics, tag management, chat, and payment functionality, and any of these dependencies can become the injection point for malicious code. Because the same skimmer may target businesses connected to major payment networks across long-running campaigns, a single compromised script or vendor can affect many merchants at once, and the malicious code can persist undetected while continuing to exfiltrate data.
For compliance and security teams, web skimming illustrates why controls governing scripts on payment pages and monitoring for unauthorized changes to those pages are relevant to protecting cardholder data. The exact detection and control effectiveness depends on implementation and validation rather than on the presence of any single control, and readers should confirm applicable requirements against the current published PCI DSS standard rather than assuming fixed requirement numbers.
Who it's relevant to
Inside Web Skimming
Common questions
Answers to the questions practitioners most commonly ask about Web Skimming.