Magecart Campaign Hides Magento Card Skimmer in 1x1 SVG Images
A large Magecart campaign compromised nearly 100 Magento and Adobe Commerce stores by hiding a full credit-card skimmer inside a 1x1-pixel SVG embedded directly in checkout page HTML. Researchers said the malware stores its payload in the SVG onload handler, decodes it with atob(), and runs it via setTimeout, allowing it to evade scanners that typically look for externally loaded scripts. When shoppers click checkout, the skimmer displays a convincing fake "Secure Checkout" overlay that captures billing and payment details before validating card numbers with the Luhn algorithm.
The stolen data is exfiltrated as XOR-encrypted, base64-obfuscated JSON to attacker-controlled infrastructure, in some cases disguised as Facebook analytics traffic. Sansec linked the infections to exploitation of the PolyShell vulnerability, which affects Magento Open Source and Adobe Commerce stable version 2 deployments and can enable unauthenticated code execution and account takeover. Defenders were urged to hunt for hidden SVG tags and suspicious onload code, check for the _mgx_cv localStorage key, and block outbound traffic to the identified attacker infrastructure, including domains resolving to 23.137.249.67 hosted by IncogNet in the Netherlands.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
3 events from the most recent confirmed update back to the earliest known activity.
Researchers disclose SVG-based skimmer technique and IOCs
Researchers publicly detailed that the skimmer used an SVG onload handler with base64-decoded JavaScript, fake 'Secure Checkout' overlays, Luhn validation, and XOR/base64-obfuscated exfiltration. They also published indicators and hunting guidance, including the _mgx_cv localStorage key, attacker domains, and traffic to 23.137.249.67.
PolyShell vulnerability leaves Magento stores exposed
An ongoing PolyShell vulnerability affecting Magento Open Source and Adobe Commerce stable version 2 installations enabled unauthenticated code execution and account takeover, and researchers believe attackers likely used it to gain access to compromised stores. At the time of reporting, Adobe had not released a production security update, with a fix only available in pre-release version 2.4.9-alpha3+.
Magecart campaign compromises 99 Magento stores
Sansec discovered on 2026-04-07 a large-scale Magento skimming campaign affecting 99 online stores. The attackers hid a credit card skimmer inside a 1x1-pixel SVG embedded in checkout page HTML to evade detection.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
2 references tracked. Mallory keeps watching after this page renders.
See the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.

