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.

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
7 events from the most recent confirmed update back to the earliest known activity.
The domain fontsgoogle-apis[.]com, later recovered as the skimmer's exfiltration gate in a newer variant, was registered.
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.
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.
The domain googletag-manager[.]com, used by an earlier version of the skimmer's exfiltration logic, was registered.
The domain gstatlcs[.]com, later noted as being hosted on the same server as other campaign infrastructure, was registered.
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.
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.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
2 references tracked. Mallory keeps watching after this page renders.
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.