My PrestaShop store was hacked: the 7 immediate actions

In short: every minute counts after a hack. Take the site offline, change all credentials, then identify the vulnerability BEFORE cleaning — otherwise the attacker will be back. Here is the exact order of operations.

Don't panic (but act fast)

In our audit of 60 French stores, 20 had at least one critical issue and 11 ran on end-of-life PHP, with no security patches for years. In other words: PrestaShop store hacks are not rare, and most are linked to known, documented vulnerabilities. That's bad news — but also good news: it means cleanup follows a known procedure you can apply in order.

The 7 actions, in order

1. Take the store offline immediately

Cut public access to the site (maintenance mode or suspension with your host). Goal: stop the data leak and prevent the attacker from doing more damage. Your revenue can wait 24 hours — your customers and your reputation cannot.

2. Change ALL passwords

PrestaShop back office, database, FTP/SFTP, hosting, business emails, PrestaShop Addons accounts. Use unique, long passwords (a password manager is essential). Enable two-factor authentication (2FA) everywhere possible. An attacker who got in once often leaves backup access.

3. Back up the current state

Before deleting anything, save the entire site as-is: files (via SFTP) and database (via phpMyAdmin or your host's tool). This "contaminated" copy is your evidence: it lets you analyze the malware safely and understand what the attacker did. Never restore it as-is.

4. Identify the vulnerability (the most important step)

If you clean up without finding the entry point, the attacker will return within days — that's the classic scenario. Look for:

Our PrestaShield module automates this search: scan of known infection patterns (eval+decode, webshells, phpunit exploit), recent files in critical folders, suspicious .htaccess, exposed accounts. The report scores your store /100 and lists the issues — exactly what you need at this step.

5. Clean the malware

Two strategies: restore from a clean backup predating the hack (the safest), or surgical file-by-file cleanup (when you have precisely identified the infected files). In both cases:

6. Update BEFORE reopening

Upgrade PHP, PrestaShop and all modules to the latest compatible versions. A hacked store running PHP 7.0 (end-of-life since January 2019) is a magnet for attackers: as long as the version is unsupported, the same vulnerability stays open. This is the time to do that migration you keep postponing.

7. Reopen with monitoring

Once the site is clean and up to date: change passwords once more, enable logs, and monitor modified files and suspicious connections for at least a month. If you have a legal obligation (customer data — GDPR), document the incident and notify the CNIL (72 hours) as well as the affected individuals if data was exposed.

What if it happens again?

Prevention is cheaper than intervention: the stores we monitor continuously detect problems before attackers do, not after. The free audit gives you a /100 score in 30 seconds, and the PrestaShield module (€29.90) scans your files in the back office with automatic email alerts — the kind of safety net that turns a hack into a simple incident.

Check your store now

Passive audit, no modification of your site. Score /100 in 30 seconds.

Sources: statistics from our audit of 60 French stores (August 2026). Incident procedure follows PrestaShop recommendations and OWASP best practices.