What is digital skimming?
Digital skimming is the theft of card and personal data from online checkout pages by malicious code that copies what customers type and sends it to the attacker.
Also called: e-skimming, formjacking, Magecart-style attacks
How it works
Attackers place a malicious script on a website, usually on the checkout or payment page. They may get in through a weakness in the site itself, through a third-party script that the site loads, such as analytics or chat tools, or through a compromised software dependency. The name "Magecart" is widely used for this family of attacks.
The script watches the form as the customer types card numbers, expiry dates, security codes, names and addresses. It copies the data and sends it to a server the attacker controls. The checkout still works, so neither the customer nor the merchant notices.
Why it matters for fraud and trust
One infected page can leak data from every customer who checks out until the code is removed. The stolen cards feed card-not-present fraud and card testing, and the merchant faces breach costs, card network scrutiny and lost trust. It is the online version of card skimming.
Warning signs
Signs show up in site code, network traffic and fraud patterns.
- Unexpected changes to scripts on payment pages.
- Checkout pages sending data to unfamiliar domains.
- Issuers or card networks reporting your site as a common point of compromise.
- A rise in fraud on cards that were all recently used on your site.
How teams defend against it
Merchants keep a list of every script allowed on payment pages and watch for changes. Content security policies, integrity checks on third-party scripts and hosted payment fields from the payment provider reduce exposure. Regular code reviews, patching and fast incident response limit how long an infection lasts.
Related terms
- Card skimmingCard skimming is the theft of payment card data with hidden devices fitted to ATMs, fuel pumps or card terminals, often with a camera or fake keypad to capture the PIN.
- Card-not-present fraud (CNP fraud)Card-not-present fraud is the use of stolen card details to pay where the physical card is not shown, such as online, in apps or over the phone.
- Data breachA data breach is when private information, such as passwords, personal details or card numbers, is accessed or exposed without permission, often then sold or used for fraud.
- Card testingCard testing is when fraudsters run many small or failed payments through a merchant to find out which stolen card numbers still work before using them for larger fraud.
- XSS (cross-site scripting)Cross-site scripting (XSS) is a web attack that injects untrusted script into a page, so it runs in other users' browsers and can steal sessions or act as them.