By Cyber Defense Technologies November 30, 2026 3 min read
Most holiday security advice is for shoppers. This article is for the organizations that sell, accept donations or take payments online, including the many government contractors and nonprofits with an online store, registration page or payment portal.
For them, Cyber Monday and the weeks around it bring the year's highest traffic and the year's most valuable target: a checkout page full of card numbers.
How web skimming works
In a web skimming attack, sometimes called Magecart after the groups that popularized it, an attacker injects a few lines of JavaScript into a checkout or payment page. The script copies whatever customers type, such as card numbers, expiration dates, security codes and addresses, and sends it to a server the attacker controls.
The purchase still completes normally. The customer sees nothing wrong, the merchant sees normal sales, and the theft can continue for weeks until card fraud is traced back to the site.
How a web skimming attack works
-
1
Get in
Unpatched storefront, compromised third-party script or stolen admin account.
-
2
Inject
A few lines of JavaScript are added to the checkout page.
-
3
Copy
The script copies card details as customers type them.
-
4
Send
Data goes to an attacker-controlled server; the purchase completes normally.
-
5
Cash out
Stolen cards are sold or used, often weeks before anyone notices.
How attackers get in
- Unpatched e-commerce platforms. Flaws in storefront software let attackers modify pages directly. In October 2026, CISA added an Adobe Commerce and Magento file upload flaw (CVE-2026-48356) to its Known Exploited Vulnerabilities catalog, as we noted in our November threat roundup.
- Compromised third-party scripts. Checkout pages often load analytics, chat, marketing and review scripts from other companies. If one of those providers is compromised, the malicious code runs on your page. We covered this risk in Software Supply Chain Attacks.
- Stolen administrator accounts. An attacker who signs in to the store's administration panel can add a script through ordinary settings.
- Exposed development and staging copies that share credentials or code with production.
Why it is hard to spot
The code runs in customers' browsers, not on your servers, so server-side security tools may never see it. It is often obfuscated, loaded only on checkout pages, or activated only for certain visitors, so a quick check of the home page finds nothing.
Controls that protect checkout
- Patch the storefront and its extensions, prioritizing anything in the KEV catalog, and do it before peak season, not during it.
- Inventory every script that runs on payment pages, and remove any that do not need to be there. Fewer scripts mean fewer ways in.
- Use a strict Content Security Policy that allows scripts only from approved sources and restricts where the page can send data.
- Use Subresource Integrity for third-party scripts loaded from fixed URLs, so a modified file will not run.
- Monitor payment pages for changes. Alert on any change to the scripts or content of checkout pages. PCI DSS v4 requires both an inventory of payment page scripts and a mechanism to detect unauthorized changes.
- Consider hosted payment fields from your payment provider, which keep card entry off your page entirely.
- Require MFA for every administrator of the store and its hosting.
If you suspect skimming
Remove the malicious code, preserve evidence first if you can, and contact your payment processor promptly. Card brands and processors have specific notification requirements. Then find out how the code got there, because removing it without closing the entry point invites it back.
How CDT can help
CDT's penetration testing and code review teams test checkout flows and storefront configurations, and our incident response team investigates suspected skimming.