Skip to main content
Mallory
← Back to News
financial-sector-threatdata-exfiltration-methoddefense-evasion-methodthreat-infrastructure-tracking

Magecart Skimmers Hid JavaScript in PNG and EXIF Image Data

Sector Threat Intelligence · 2 sources · Updated 3mo ago · First seen May 2, 2020

Magecart Skimmers Hid JavaScript in PNG and EXIF Image Data

Researchers uncovered Magecart-style web skimming campaigns that concealed malicious JavaScript inside image files to evade detection on compromised e-commerce sites. In one case affecting Magento 2.x stores, injected code retrieved a seemingly legitimate PNG file at /pub/media/wysiwyg/m2themes/googletagmanager.png, extracted data appended after the PNG IEND marker, and executed the hidden payload in the browser to steal payment information entered at checkout.

A related campaign hid skimmer code in EXIF metadata and used image files for data theft, showing attackers were abusing trusted media formats both to stage malware and to exfiltrate stolen credit-card details. Investigators also found the Magento skimmer relied on a booby-trapped GitHub repository, mag202/magento, where malicious mage.png files were repeatedly uploaded and removed to update payloads and derive exfiltration gates tied to lookalike domains such as fontsgoogle-apis[.]com and googletag-manager[.]com, underscoring a broader shift toward image-based concealment and legitimate-platform abuse in web skimming operations.

Who's targeting your sector?See the actors and campaigns active against you right now.
See sector threats
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

7 events · Jul 23, 2019 – May 2, 2020
  1. Reported Jul 22, 20206y ago

    Sucuri documents PNG-embedded Magecart campaign

    Sucuri reported a Magecart-style campaign on compromised Magento 2.x sites where malicious JavaScript was appended after the IEND marker of legitimate PNG files and executed on checkout pages.

    Skimmers in Images & GitHub Repos
  2. Reported Jun 24, 20206y ago

    Malwarebytes reports EXIF-based web skimmer technique

    Malwarebytes published analysis of a web skimmer that hid within EXIF metadata and exfiltrated credit card data via image files, documenting a related image-based skimming technique.

    Web skimmer hides within EXIF metadata, exfiltrates credit cards via image files | Malwarebytes Labs
  3. May 2, 20207y ago

    fontsgoogle-apis[.]com domain registered

    The domain fontsgoogle-apis[.]com, later recovered as the skimmer's exfiltration gate in a newer variant, was registered.

    Skimmers in Images & GitHub Repos
  4. Apr 10, 20207y ago

    Malicious mage.png appears in repository history

    A historical April 10 version of app/design/frontend/Magento/luma/media/mage.png in the mag202/magento repository contained JavaScript appended after the PNG IEND marker, hiding skimmer logic and exfiltration details.

    Skimmers in Images & GitHub Repos
  5. Apr 4, 20207y ago

    mag202 creates Magento-themed GitHub repository

    A GitHub user named mag202 created the mag202/magento repository, presented as a beta version of Magento 2.4 and later used to host malicious mage.png files.

    Skimmers in Images & GitHub Repos
  6. Nov 4, 20197y ago

    googletag-manager[.]com domain registered

    The domain googletag-manager[.]com, used by an earlier version of the skimmer's exfiltration logic, was registered.

    Skimmers in Images & GitHub Repos
  7. Jul 23, 20197y ago

    gstatlcs[.]com domain registered

    The domain gstatlcs[.]com, later noted as being hosted on the same server as other campaign infrastructure, was registered.

    Skimmers in Images & GitHub Repos
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Threat actors

1 linked

Malware

1 linked

Affected products

1 linked
Magento

Observables

31 linked

Indicator values are masked on this page. View all 31 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See the adversaries and campaigns active against your sector right now, ranked by what they're exploiting.
See Your Sector's Threats
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.