Social media sharing icons could harbor info-stealing malware

Best credit card processing service
(Image credit: Pixabay)

Researchers at the cybersecurity firm Sansec have discovered a new type of malware that uses an innovative technique to inject payment card skimmer scripts into the checkout pages of compromised online stores.

The malware is able to hide in plain sight by using the social media buttons that now routinely appear at the bottom of websites to conceal its malicious payloads.

Magecart cybercrime groups routinely use credit card skimmers which are JavaScript-based scripts to automatically harvest payment and personal information submitted by customers on ecommerce websites. This data is then exfiltrated to servers controlled by the attackers and is used to commit fraud and even identity theft.

Sansec first spotted similar malware back in June though it was not nearly as sophisticated and was only detected on nine sites in a single day. However, of the infected sites, only one had functional malware as the others were missing a component that rendered the malware useless.

Hiding in plain sight

The payment skimmer malware discovered by Sansec use a double payload structure to help it avoid detection. 

The malware's creators hide the source code of the skimmer script in a social media sharing icon and a separate decoder is deployed somewhere else on an ecommerce's site's server which is used to extract and execute the credit card stealer.

In a blog post, Sansec provided further insight on how this new malware is able to avoid detection by using a novel technique, saying:

“This new malware has two parts: a concealed payload and a decoder, of which the latter reads the payload and executes the concealed code. While skimmers have added their malicious payload to benign files like images in the past, this is the first time that malicious code has been constructed as a perfectly valid image. The result is that security scanners can no longer find malware just by testing for valid syntax.”

We'll likely hear more about this new malware once an easier way to detect and remove it from vulnerable ecommerce sites is discovered.

Via BleepingComputer

TOPICS
Anthony Spadafora

After working with the TechRadar Pro team for the last several years, Anthony is now the security and networking editor at Tom’s Guide where he covers everything from data breaches and ransomware gangs to the best way to cover your whole home or business with Wi-Fi. When not writing, you can find him tinkering with PCs and game consoles, managing cables and upgrading his smart home. 

Latest in Security
Data leak
A major Keenetic router data leak could put a million households at risk
Code Skull
Interpol operation arrests 300 suspects linked to African cybercrime rings
Insecure network with several red platforms connected through glowing data lines and a black hat hacker symbol
Multiple routers hit by new critical severity remote command injection vulnerability, with no fix in sight
Code Skull
This dangerous new ransomware is hitting Windows, ARM, ESXi systems
An abstract image of a lock against a digital background, denoting cybersecurity.
Critical security flaw in Next.js could spell big trouble for JavaScript users
Microsoft
"Another pair of eyes" - Microsoft launches all-new Security Copilot Agents to give security teams the upper hand
Latest in News
Zotac Gaming RTX 5090 Graphics Card
Nvidia Blackwell stock woes are compounded by price hikes as more RTX 5090 GPUs soar in pricing, and I’m sick and tired of it all at this point
A collage of Elizabeth Olsen's Scarlet Witch and Tatiana Maslany's She-Hulk
Marvel fans are already tired of Doomsday and Secret Wars cast gossip as two more superheroes get linked with roles in the next two Avengers movies
An Apple Music pink/pixellated poster advertising DJ with Apple Music
DJ with Apple Music lands, allowing subscribers to build and mix DJ sets directly from its +100 million-song catalog
The Meta Quest 3 and controllers on their charging station which is itself on a wooden desk next to a lamp
Forget Android XR, I've got my eyes on Vivo's new Meta Quest 3 competitor as it could be the most important VR headset of 2025
Samsung Galaxy S25 from the front
The Now Bar on Samsung One UI 7 is about to get a lot more useful – and could soon match Live Activities on iOS
Marvel Rivals
Marvel Rivals will get two new hero skins for Moon Knight and Black Panther this week meaning I'll now need to farm even more Units