Security Experts:

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.

“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

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 this webinar to learn best practices that organizations can use to improve both their resilience to new threats and their response times to incidents.

Register

Join this live webinar as we explore the potential security threats that can arise when third parties are granted access to a sensitive data or systems.

Register

Expert Insights

Related Content

Cybercrime

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

Cybercrime

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.

Cybercrime

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

Application Security

PayPal is alerting roughly 35,000 individuals that their accounts have been targeted in a credential stuffing campaign.

Cybercrime

No one combatting cybercrime knows everything, but everyone in the battle has some intelligence to contribute to the larger knowledge base.

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

The FBI dismantled the network of the prolific Hive ransomware gang and seized infrastructure in Los Angeles that was used for the operation.