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.


