Securing your shop after a hack: what has to change
A site that's cleaned up but brought back online exactly as it was before often ends up in the same state within a few months, because nothing changed in how it's maintained. The order of operations right after the incident matters, but it only closes the incident. Here's what then needs to become a habit, not a one-off action.
Before the habits: the order of the first operations
This page assumes the cleanup is done. If it isn't yet, the order matters as much as the operations themselves: bringing a hacked shop back online without addressing the cause is like leaving the door open, and the infection usually returns within days.
- Isolate the shop: maintenance mode or a temporary shutdown, to limit the spread and cut visitor exposure while you work.
- Change every password: CMS admin, FTP/SFTP, database, hosting panel. One access point left unchanged is enough to reinfect the site after cleanup.
- Delete unknown admin accounts: an account created by the attacker is one of the most common backdoors, and it goes before the files are even cleaned.
- Compare the files against a clean install of the same version: modified or added files are the most direct trace of an infection.
- Check the database: malicious code is also injected into configuration or content fields, not only into files.
- Update every component: the exploited flaw very often comes from an outdated one.
- Bring it back online, then monitor the logs and activity over the following days, to confirm no backdoor was missed.
That sequence closes the incident. It changes nothing about what made it possible: that is what the rest of this page is for.
- 39.1% of compromised CMS applications were running an outdated version at the time of infection
- 13.97% of compromised sites had at least one vulnerable extension or theme at the time of remediation
Sucuri, Hacked Website & Malware Threat Report 2023
Six structural habits
-
An update policy, not one-off updates
The CMS, theme and modules or extensions need checking at regular intervals, not only when a problem shows up. The Sucuri report cited above shows an outdated version was involved in more than a third of the compromises studied: an observed correlation, not a demonstrated cause, but enough to make it a priority.
-
Track security advisories for what's installed
A published flaw in a module or extension leaves a window before it's actually exploited. Knowing where to follow these advisories for your CMS changes the odds of acting before you're affected.
-
Remove what's no longer used
A deactivated module that's still sitting on the server remains a potential entry point: deactivating it in the admin area doesn't stop a PHP file from running if it's called directly by its path.
-
Regularly review access and passwords
Admin accounts created "to help out" and never removed, FTP access given to a former contractor, a password reused elsewhere: a periodic review of who has access to what closes doors that were left open and forgotten.
-
Test a backup, don't just schedule it
A backup that exists but has never actually been restored can be incomplete, corrupted, or unknowingly backing up the infection itself. Testing it periodically on a separate environment is the only way to know it will work the day it's actually needed.
-
Add monitoring or an application firewall
An application firewall filters out part of the malicious traffic before it reaches the CMS, and file integrity monitoring flags a suspicious change quickly rather than weeks later. Neither replaces updating, but both narrow the window of exposure.
What rounds this out
-
Track published vulnerabilities in what you use
WPScan, official PrestaShop advisories, NVD: where and how to watch what actually affects you.
-
Ongoing maintenance rather than one-off fixes
Updates, tested backups and monitoring handled on a continuous basis.
-
Abandoned modules and extensions
The real leading entry point, ahead of weak passwords or a poorly configured server.
-
Cleaning an infected site
The cleanup method itself, and why restoring a backup isn't always enough.
-
Do I have to notify customers and the regulator?
What the rules require when personal data may have been exposed.
Describe your need in one minute
A few targeted questions so I can reply with an estimate rather than another questionnaire.