prestashop-ecommerce-credit-card-skimmer

WebSocket Malware Steals Payment Data from PrestaShop Sites

Introduction

PrestaShop, as a widely-used ecommerce platform, is a frequent target for attackers seeking to compromise online shops and their customers. JavaScript injections, particularly obfuscated and “fileless” types are a common method used to evade detection and inflict maximum damage. In this article, we analyze a real-world obfuscated JavaScript snippet discovered on a compromised PrestaShop site, examine its purpose, decode its payload, and provide expert advice on cleaning and securing infected ecommerce environments. We’ll also introduce the MoeSec Website Security Platform to protect your business.


Malware Sample Overview

The following snippet was discovered in a compromised PrestaShop website (often injected into template files, JavaScript files, or even directly into the database):

Reversed JS Malware

Key features:

  • Stealth: Uses a 1×1 pixel SVG to avoid visual detection.
  • Obfuscation: Payload is string-encoded, reversed, and XOR-encrypted.
  • Execution: Payload is dynamically evaluated within the browser context.

Threat Explanation

How it works:

  • The SVG’s onload event runs obfuscated code.
  • The payload is decoded at runtime and executed in the browser.
  • Can be injected via PHP templates, JavaScript files, or directly into the PrestaShop database (e.g. in CMS content, product descriptions, or configuration options).

Potential Risks:

  • Data theft: Credit card skimming, credential theft.
  • Redirection: Sending customers to phishing or scam sites.
  • Session hijacking: Stealing admin/customer sessions.
  • Further infection: Loading additional malware from remote servers.

Through technical analysis and live investigation, it was determined that the decoded JavaScript payload connects to the following malicious server in real time:

wss : // wsocket[.]store/soket

The following malicious domains were found to be involved and used in this malicious campaign and it’s variants:

  • jscode[.]cloud
  • elementatorprof[.]info
  • orristhekyone[.]site
  • ghanamusthi[.]xyz

How MoeSec Can Help – Platform Professional Services

MoeSec Website Security Platform provides advanced services for ecommerce sites, including:

Why choose MoeSec Platform?

  • More powerful than any free plugin or scanner.
  • Direct access to certified security professionals.
  • Comprehensive reporting and 24/7 monitoring.

Final Warning: No Ecommerce Platform is Safe by Default

This kind of attack is not limited to any one CMS. Any online shop, regardless of software or size, can be compromised with this technique, leading to catastrophic loss of customer trust, severe legal liability, and blacklisting by payment providers.

Only advanced, professional-grade security platforms like MoeSec provide the layered, real-time, and expert-driven protection needed to defeat today’s evolving ecommerce threats.


Don’t wait for your customers’ payment details to be stolen.
Protect your business and reputation by securing your website with MoeSec now.

Learn more about MoeSec Website Security Platform 


Stay vigilant. Stay secure. Trust MoeSec.

Conclusion

The analyzed JavaScript injection is an obfuscated, highly evasive malware loader found on compromised PrestaShop websites. It enables attackers to steal sensitive data, disrupt business, and damage your reputation. Removing such infections requires thorough file and database scans, immediate patching, and security hardening.

MoeSec Website Security Platform provides comprehensive protection, professional cleaning, and ongoing monitoring for PrestaShop and other ecommerce CMS. 

Protect your ecommerce business, act before attackers do!
For professional help, advanced scanning, and full website cleaning, contact MoeSec Website Security Platform.


Stay safe, stay secure, and keep your customers protected with MoeSec.

Special Offer

 
Discount
-10%

Use Promocode: Welcome10