Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Cybercrime

Hackers Target Online Stores With Web Skimmer Hidden in Image Metadata

A group of cybercriminals managed to hide their web skimmer in the EXIF metadata of an image that was then surreptitiously loaded by compromised online stores, Malwarebytes reveals.

A group of cybercriminals managed to hide their web skimmer in the EXIF metadata of an image that was then surreptitiously loaded by compromised online stores, Malwarebytes reveals.

Although image files have been long used to carry malicious code and exfiltrate data (steganography became a popular trick among hackers several years ago), it’s unusual to have web skimmers hidden in image files.

Such scripts are designed to identify and steal credit card data and other sensitive information that unsuspecting users enter on compromised ecommerce websites, and to send the harvested data to campaign operators.

The recently observed attack, Malwarebytes’ security researchers say, stands out not only because of the use of images to hide skimmers, but also because it uses images to exfiltrate stolen credit card data.

According to Malwarebytes, an initial JavaScript is being loaded from an online store running the WooCommerce plugin for WordPress, where extraneous code had been appended to a legitimate script hosted by the merchant.

The script would load a favicon file identical to the favicon used by the compromised store (a logo of their brand), and the web skimmer was being loaded from the Copyright metadata field of this image.

The skimmer was designed to grab the content of the input fields where online shoppers enter their name, billing address and credit card details, just as other similar code does.

The skimmer also encodes the harvested data, reverses the string, and sends the information to an external server as an image file, via a POST request.

Advertisement. Scroll to continue reading.

“The threat actors probably decided to stick with the image theme to also conceal the exfiltrated data via the favicon.ico file,” Malwarebytes notes.

During their investigation, the security researchers found a copy of the skimmer toolkit’s source code in an open directory of a compromised site, which provided them with the possibility to understand how the favicon.ico file is crafted with the injected script inside of the Copyright field.

Malwarebytes was also able to identify an earlier version of the skimmer, which lacked the obfuscation present in the latest iteration but had the same code features, and believes that it might have ties with Magecart Group 9.

Related: Magecart Hackers Continue Improving Skimmers

Related: Magecart Attack on eCommerce Platform Hits Thousands of Online Shops

Related: Visa Warns of New JavaScript Skimmer ‘Pipka’

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join the session as we discuss the challenges and best practices for cybersecurity leaders managing cloud identities.

Register

SecurityWeek’s Ransomware Resilience and Recovery Summit helps businesses to plan, prepare, and recover from a ransomware incident.

Register

Expert Insights

Related Content

Cybercrime

The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.

Cybercrime

A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...

Cybercrime

As it evolves, web3 will contain and increase all the security issues of web2 – and perhaps add a few more.

Cybercrime

Luxury retailer Neiman Marcus Group informed some customers last week that their online accounts had been breached by hackers.

Cybercrime

Zendesk is informing customers about a data breach that started with an SMS phishing campaign targeting the company’s employees.

Cybercrime

Patch Tuesday: Microsoft calls attention to a series of zero-day remote code execution attacks hitting its Office productivity suite.

Artificial Intelligence

The release of OpenAI’s ChatGPT in late 2022 has demonstrated the potential of AI for both good and bad.

Cybercrime

Satellite TV giant Dish Network confirmed that a recent outage was the result of a cyberattack and admitted that data was stolen.