Magecart Campaign Used Staged Loaders and WebSockets to Steal Payment Card Data

· Original article ↗

Summary

ANY.RUN describes a Magecart campaign active for 24+ months, associating 17 WooCommerce sites with infrastructure spanning 100+ domains. Its analysis details checkout mimicry and staged JavaScript; observed WebSocket exfiltration sent card data, while some site links to

Key points

  • ANY.RUN reports the campaign was active for at least 24 months and used more than 100 domains, with 17 WooCommerce sites associated with it from February 2024 to April 2025.
  • An injected JavaScript loader fetched configuration and later payload stages from fallback domains, allowing operators to rotate delivery infrastructure.
  • The payload monitored checkout pages, replaced or overlaid payment interfaces, and imitated providers including Redsys and PayPlug.
  • In an analyzed case, WebSocket traffic was used to exfiltrate payment-card data and receive commands; the article says other cases were linked through infrastructure correlation.
  • The JavaScript used obfuscation, anti-tampering checks, custom VM opcodes, and localStorage state persistence.
  • The same payload could display a localized prompt to install an Android APK under certain conditions.

Article Details

Attack Vectors
  • Injected, obfuscated JavaScript loaders on compromised e-commerce sites fetched additional payloads from fallback domains.
  • The payload replaced or overlaid checkout payment interfaces with fake forms and buttons mimicking providers such as Redsys and PayPlug.
  • Fake payment forms captured card details, which the payload transmitted through WebSocket connections to attacker infrastructure.
  • The same injected payload could present visitors with an offer to download an Android APK.
Defensive Notes
  • Monitor for unauthorized changes to embedded JavaScript and checkout pages, including replacement or concealment of legitimate payment controls.
  • Inspect outbound WebSocket connections and unexpected requests to external staging and payload-delivery domains.
  • Use continuous threat monitoring and deep visibility to detect dynamically delivered payloads and changes to payment flows.

Indicators of compromise

TypeIndicatorContext
DOMAINanalysiscache[.]comListed in the campaign's indicators of compromise as malicious infrastructure.
DOMAINanalyticsgctm[.]comListed as malicious campaign infrastructure.
DOMAINassetsbundle[.]comIdentified as a domain used to deliver the malicious payload.
DOMAINbundle-feedback[.]comListed as malicious campaign infrastructure used for delivery.
DOMAINbundle-referrer[.]comListed in the campaign's indicators of compromise as malicious infrastructure.
DOMAINbundlefeedback[.]comIdentified as a domain used to deliver the malicious payload.
DOMAINcachesecure[.]comListed in the campaign's indicators of compromise as malicious infrastructure.
DOMAINcategorywishlist[.]comListed in the campaign's indicators of compromise as malicious infrastructure.
DOMAINdoubleclickcache[.]comListed as malicious campaign infrastructure.
DOMAINexplorerpros[.]comListed in the campaign's indicators of compromise as malicious infrastructure.
DOMAINfirefoxcaptcha[.]comListed in the campaign's indicators of compromise as malicious infrastructure.
DOMAINhotjarcdn[.]comListed as malicious campaign infrastructure.
DOMAINjquerybootstrap[.]comIdentified as a domain used to deliver the malicious payload.
DOMAINnewassetspro[.]comIdentified as a domain used to deliver the malicious payload.
DOMAINredsysgate[.]comC2 server disguised as a Redsys domain and used for WebSocket card-data exfiltration.
DOMAINsecuredata-ns[.]comListed in the campaign's indicators of compromise as malicious infrastructure.
DOMAINsolutionjquery[.]comListed as malicious campaign infrastructure.

MITRE ATT&CK

Threat Actors

Products

Countries

Industries

Related Articles