Magecart Skimmer Abuses Google Tag Manager and Stripe API to Steal Card Data
Attack Tradecraft · 2 sources · Updated 5mo ago · First seen Jun 4, 2026

Researchers at Sansec uncovered a Magecart campaign that uses trusted Google Tag Manager and Stripe infrastructure to steal payment data from e-commerce checkout pages. The skimmer is delivered through a malicious but legitimate-looking GTM container and activates on Magento and Adobe Commerce checkout flows, where it harvests card numbers, expiration dates, CVV codes, names, billing addresses, email addresses, and phone numbers. The malware retrieves additional JavaScript from Stripe customer metadata and executes it dynamically, helping the attack blend into normal traffic to trusted services.
The stolen data is obfuscated with XOR, stored locally, and later exfiltrated by creating fake customer records in an attacker-controlled Stripe account, causing the theft to appear as ordinary traffic to api.stripe.com and potentially bypass content security policies and network filtering. Sansec also identified a variant that uses Google Firestore instead of Stripe, pulling payloads from a document named tracking/captcha in a project called braintree-payment-app. Researchers said the Stripe customer record used to host the skimmer was created on Dec. 24, 2025, indicating the campaign may have been active since at least then.
Why it matters
Impact assessment
This campaign affects e-commerce merchants running Magento and Adobe Commerce, and directly exposes online shoppers entering payment and billing data during checkout. The impact is high because it enables theft of full payment card data plus associated PII, creating immediate fraud risk for customers and financial, legal, and reputational damage for merchants.
The exposure appears targeted at compromised storefronts rather than internet-wide exploitation of a software flaw, but the use of trusted Google Tag Manager and Stripe infrastructure increases the likelihood of prolonged undetected compromise across multiple stores. Researchers assess the activity has likely been active since at least 2025-12-24, indicating real-world malicious use rather than a theoretical technique.
Supporting facts
- Affected platforms: Magento and Adobe Commerce checkout pages.
- Affected populations: online retailers and customers submitting cardholder data.
- Data at risk: card number, expiration date, CVV, customer name, billing address, email address, and phone number.
- Business impact: payment fraud exposure, PCI compliance issues, incident response costs, chargebacks, customer notification obligations, and brand damage.
- Scope: campaign-based web skimming on compromised sites; not tied to a published CVE.
- Exploitation status: active malicious campaign observed by Sansec.
- Earliest known activity indicator: Stripe customer record reportedly created on 2025-12-24.


