Web-Skimming (Magecart) Checkout Scam
Malicious code hidden in a genuine online store's checkout silently copies your card details as you type them, even though your order goes through normally.
Last reviewed: 22 July 2026
What this scam is
Web skimming — often called Magecart, after the criminal groups that made the technique notorious — is the digital version of an ATM skimmer, planted inside a real online shop. Criminals compromise a legitimate store's website, or one of the third-party scripts it loads, and inject a small piece of malicious code into the checkout page. As you type your card number, expiry date, security code, name, and address, the code copies each field and sends it to a server the criminals control. The store is genuine, the padlock and web address are correct, your payment is processed, and your goods usually arrive — nothing signals that your card details were stolen along the way. This is what makes web skimming so dangerous: it defeats all the standard advice about checking the URL and shopping with real retailers. A single compromised shop can leak the details of every customer who checks out until the code is found and removed, and the stolen data feeds card-not-present fraud worldwide.
How it works
The attackers first get their code onto the checkout page. Sometimes they breach the store directly through outdated shop software, weak admin passwords, or vulnerable plugins. Just as often they compromise a supplier instead: a chat widget, analytics tag, advertising script, or hosted library that hundreds of shops load into their pages. One poisoned script then skims every site that uses it. The injected code is small, disguised to look like normal site functionality, and often activates only on pages with payment fields. When you check out, it reads the payment form as you type or when you press pay, and sends a copy of the data to the criminals' collection server while the genuine payment goes through as usual. A common variant overlays a fake payment form on top of the real one: you enter your details, see a message that the payment failed, and are passed to the legitimate form, so the transaction succeeds on the second attempt. The stolen card details are typically sold or used for online purchases weeks later, far removed from the shop where they were taken.
Why this scam works
Every visible trust signal is genuine. The web address is correct, the padlock is real, the store may be one you have used for years, and your order is confirmed and delivered. There is nothing a shopper can inspect that would reveal the skimmer — the malicious code runs invisibly among dozens of legitimate scripts. The delay between theft and fraud also hides the cause: when strange charges appear weeks later, the successful, uneventful purchase never comes to mind. Even the store is often unaware, since the compromise sits in code most merchants rarely review, sometimes inside a supplier they trusted.
Common red flags
- The payment form errors and asks you to re-enter your card details, then works the second time
- Checkout redirects to a payment page on an unfamiliar or misspelled domain
- The payment form's design or behaviour does not match the rest of the site
- Wallet or one-click payment options that usually appear are suddenly missing, leaving only manual card entry
- The site asks for your PIN or online banking password — no shop needs these
- Small unfamiliar charges appear days or weeks after an otherwise normal order
Sanitized example messages
Illustrative, sanitized examples. Personal details are replaced with placeholders such as [phone number] and [fake link].
'Payment failed. Please re-enter your card details to complete your order.' — shown after a fake form has already captured them
'You are being redirected to our secure payment partner.' — landing on a domain with no connection to the shop
A checkout that normally offers wallet payment suddenly insists on typed card details due to a technical issue
How to verify before you act
You cannot audit a shop's code, so protect the card instead of the checkout. Pay with a digital wallet where offered — the merchant receives a one-time token, so a skimmer captures nothing reusable. Ask your bank about virtual or single-use card numbers for online shopping, which become worthless after the purchase. Prefer a credit card to a debit card online so fraud never draws on your bank balance directly. Treat a checkout that errors and asks you to re-enter card details, or that redirects to an unfamiliar payment page, as a reason to stop. Keep instant transaction alerts on so any misuse of the card surfaces immediately.
Payment methods used
- Credit card
- Debit card
Who is usually targeted
- Online shoppers
- Customers of small and mid-size web stores
- Holiday-season bargain hunters
What to do immediately
- Contact your card issuer, report the compromise, and have the card blocked and replaced
- Dispute every charge you did not authorise, however small
- Tell the retailer their checkout may be compromised so other customers are protected
- Report the fraud to your national reporting service with the shop name and order date
- Update saved-card details anywhere the old number was stored once the new card arrives
- Monitor statements closely for several weeks — stolen numbers are often used or sold later
How to prevent it
- Use a digital wallet at online checkouts whenever it is offered
- Ask your bank for virtual or single-use card numbers for online shopping
- Pay online with a credit card rather than a debit card
- Avoid storing your card details in shop accounts you rarely use
- Turn on instant notifications for every card transaction
- Stop if a checkout errors and asks for your card details a second time
Evidence to preserve
- Your order confirmation email with the shop name, date, and amount
- Statements highlighting the fraudulent charges
- The exact web address of the checkout page you used
- Screenshots of any unusual payment form, error message, or redirect you noticed
Where to report it
- Action Fraud (UK) — UK national fraud & cybercrime reporting centre
- FTC ReportFraud (US) — US Federal Trade Commission fraud reports
- FBI IC3 (US) — US Internet Crime Complaint Center
- Scamwatch (Australia) — Australian competition & consumer reporting
- Your bank's fraud line — Use the number on the back of your card or in your banking app — never a number the caller gives you
Always verify reporting routes and emergency contacts on the official government or agency website for your country.
Frequently asked questions
The shop was real and my order arrived — how was I still scammed?
That is exactly how web skimming operates. The store is legitimate, but its checkout page carries hidden code that copies card details as customers type them, while the genuine payment still goes through. Neither you nor the shop sees anything wrong at the time. The fraud appears later, when the stolen number is used or sold. Your dispute is with the fraudulent charges, not the shop's order, and normal card protections still apply.
Does the padlock icon mean a checkout is safe?
No. The padlock only means the connection between your browser and the site is encrypted — it says nothing about what the site's own code does with your data. A skimmed checkout page has a perfectly valid padlock. This is why technical trust signals cannot protect you here; tokenised payments like digital wallets and single-use card numbers protect you instead, because they give the page nothing worth stealing.
How do digital wallets protect me at checkout?
When you pay with a wallet, the merchant's page never receives your real card number. It gets a one-time cryptographic token that is useless if intercepted, and the transaction is usually confirmed on your device with a fingerprint or face check. Even if the checkout is fully compromised, a skimmer that captures the token has captured nothing it can reuse, which removes the value of the attack entirely.