PrestaShop hacked: what to do in the first hour

PrestaShop hacked

If your PrestaShop has been hacked, what you do in the first hour decides how much it costs you. Almost everyone does the opposite of what they should: they delete the strange file they found, change the back office password and restore a backup. With that, the attacker is still inside, you have destroyed the evidence of how they got in and, if the backup was already infected, you are back to square one in two weeks.

Below you have how to confirm it is a hack, what to do in the first 60 minutes and in what order, and what not to touch.

How to tell if you have been hacked

These are the signs of a compromised shop, from most to least serious:

What you see What it usually is
Customers saying they have been charged for purchases they did not make on the card they used in your shop A skimmer: code that copies payment details on your checkout page
A payment form that is not your gateway’s, or that appears before going to the bank The same: an injected fake form
Google flags your site as dangerous, or pages that are not yours (casino, pharmacy) show up in Search Console Injected pages or redirects
Visitors arriving from Google end up on another website, but you go in directly and see nothing Conditional redirect: it only acts on search engine traffic
An employee in the back office that nobody created The attacker’s administrator access
.php files in folders where there should only be images or downloads A backdoor

If you have the first or the second, it is a payment emergency, not a website one: your customers’ data is leaving right now.

Signs that a PrestaShop shop has been hacked, from most to least urgent
The first two signs are a payment emergency: the shop has to close now.

Is this happening to you right now?

Leave us the URL and what you are seeing. A technician will look at it today and tell you what it is before touching anything.

We reply within 24 working hours.

Why it happens: how they get in

In PrestaShop the way in is almost never an up-to-date core. It is one of three places:

  • A module with a published vulnerability. Friends of Presta, the association that publishes security advisories for the ecosystem, keeps a public registry of vulnerable modules (security advisories, Friends of Presta). In 2024 it warned that a flaw in a Facebook module was being used to install a skimmer and steal cards on a large scale (CVE-2024-36680).
  • An official module that has not been updated. On 3 June 2026 PrestaShop released a fix for the faceted search module, ps_facetedsearch: versions 3.0.0 to 4.0.3 allowed code to be executed on the server with no account or password. It is fixed in 4.0.4 (PrestaShop notice). It is the filter module installed on almost every shop.
  • The server’s PHP. If your shop runs PrestaShop 1.6 or 1.7, it cannot run on the PHP versions that have the current security patches. We explain it in the October PHP flaw (in Spanish).

That is why it matters not to delete anything yet: the path of the malicious file usually points to the module they came in through, and if you do not close that door, they come back.

How attackers get into a hacked PrestaShop: vulnerable module, outdated official module and server PHP
The way in is almost never an up-to-date core: it is the modules and PHP.

What to do in the first hour

In this order. Do not skip the first step even if it feels like wasting time.

Minutes 0 to 10: close the shop to the public, without deleting anything

Shop Parameters > General > Maintenance: disable the shop and add your IP to the maintenance IP field (the button next to it adds yours). Customers see the maintenance page and you can still see the shop.

If you suspect a skimmer, this step is not up for discussion: every order that comes in while you hesitate is one more card.

If the back office does not load or you do not trust it, ask your hosting to block public access to the domain. It is a normal request and they do it in minutes.

Minutes 10 to 25: make a copy as it is

Copy all the files and the database, infected ones included, and keep it off the server. It is not the backup to restore: it is the evidence. Without it there is no way of knowing how they got in or what they took.

Also write down the date and time you saw the first sign. You will need it.

Minutes 25 to 45: look, without touching

  • Employees. Advanced Parameters > Team. Any employee you do not recognise, or an administrator profile that should not be there, gets noted down. Do not delete it yet: its creation date tells you when they got in.
  • Changed core files. Advanced Parameters > Information compares PrestaShop’s files with the originals for your version and lists the modified ones. PrestaShop points to it as the first place to look (PrestaShop notice).
  • PHP files where they should not be. In your hosting’s file manager, or from a terminal, look for .php files inside /img/, /upload/, /download/ and /var/, and for .php files modified in the last few days:
find . -name "*.php" -mtime -10 -not -path "./var/cache/*" | head -100
find ./img ./upload ./download -name "*.php"
  • The checkout page, seen as a customer. From another browser, in a private window and without your maintenance IP if you can (a phone off wifi works), look at the source of the last checkout step. A <script> loading from a domain that is neither yours nor your gateway’s is the sign of a skimmer.
  • Your hosting’s access logs for the days before the first sign: repeated requests to the same file of a module, or to a .php file you do not recognise.
What to do in the first hour with a hacked PrestaShop: close, copy, look and notify
Close, copy, look and notify. Cleaning and changing passwords come later.

Minutes 45 to 60: tell the people you need to tell

  • Your payment gateway, if there are signs of a skimmer. They can detect the fraudulent charges and will tell you what they need.
  • Your hosting, so they check the whole server. If you share the server with other websites of yours, all of them are suspect.
  • Whoever handles data protection in your company. If customers’ personal data has leaked, the GDPR requires you to notify the supervisory authority within 72 hours of becoming aware of it, unless it is unlikely to pose a risk to people (Article 33 of the GDPR). In Spain the authority is the AEPD; in the UK it is the ICO. We are not lawyers: your adviser makes this decision, but the clock starts today.

How it is cleaned, after the first hour

Cleaning is not deleting the strange files. It is, in this order:

  1. Find the way in. With the evidence copy, the dates and the logs: which module or which file came first.
  2. Close it. Update that module to the fixed version, or remove it if there is no fix. And update the rest of the modules with published advisories.
  3. Clean. Replace the core files with the originals for your version, remove the backdoors, check the theme and the database (skimmers are also stored in module configuration or in content blocks).
  4. Change the passwords, once the shop is clean. Back office, database, FTP, hosting panel and payment gateway keys. PrestaShop recommends doing it after confirming the shop is clean (PrestaShop notice): if the attacker still has a backdoor, they see the new password as soon as you type it.
  5. Request a review from Google, if it flagged you as dangerous, from the Security issues report in Search Console.
  6. Reopen and watch the logs for the next two weeks.

What happens next

What happens after a PrestaShop hack depending on whether the first hour was done in order or the wrong way round
If the evidence is deleted, the way in stays open and the infection comes back.

If it was done in order, the shop reopens the same day or the next, you know how they got in and that door is closed. If it was done the wrong way round, the usual outcome is a reinfection within a few weeks, because the door is still open, and by then there is no clean backup left to go back to.

What breaks if you get it wrong

  • Deleting the malicious file as soon as you see it. The evidence disappears and the door stays open.
  • Restoring a backup without knowing when the hack happened. If the backup is from after they got in, you restore the infection. If it is much older, you lose real orders and customers.
  • Changing only the back office password. A backdoor does not need a password.
  • Uninstalling modules blindly. You can delete the payment or shipping module’s tables and still be infected.
  • Carrying on selling “because it is nearly done”. If there was a skimmer, every order is one more affected customer.
  • Not telling anyone. The data protection deadline runs whether you know about it or not.

When you cannot do this yourself

The first hour’s steps, yes: close the shop, copy, look and notify. The cleaning, if you cannot read an access log or tell a modified core file from an original one, no. And if there are signs of card theft, you should not do it alone either. That, and making sure it does not happen again, is part of our PrestaShop maintenance service (in Spanish): modules kept up to date against published advisories, backups that actually restore and a server with a supported PHP version.

Is this happening to you right now?

Leave us the URL and what you are seeing. A technician will look at it today and tell you what it is before touching anything.

We reply within 24 working hours.

Frequently asked questions

How do I know if my PrestaShop has been hacked?

The most common signs are redirects to other websites, especially from mobile or from Google, pages or files you did not create, payments that never arrive, warnings from Google or your hosting, and administrators you do not recognise in the back office.

What do I do first if my shop has been hacked?

Put the shop in maintenance mode without deleting anything, make a copy as it is, check what has changed without touching it, and tell your hosting and payment gateway. If personal data is affected, assess the notification the law requires.

Is restoring a backup enough after a hack?

No. If the door they came in through is not closed, usually a vulnerable module or an old version, they get back in. The backup may also already be infected if the attack happened earlier.

How do I stop PrestaShop being hacked again?

By keeping PrestaShop, modules and PHP up to date, removing unused modules, using strong passwords and limited back office access, and having backups that are tested.