When a site is infected, the first desire is to quickly delete the suspicious files. But a chaotic cleanup can lead to data loss or complete site inoperability. We have cured more than 350 Joomla sites and we know: the right order of actions is more important than speed. Let us look at a step-by-step plan.
Step 1. Make a Backup
Before any actions, be sure to copy the site files and database. Even if the copy is infected — it is your insurance. If something goes wrong during the cleanup, you can return the site to its original state and try again.
It is better to make the backup via the hosting panel or via the Joomla extensions manager. Save the copy on a separate medium, not on the same server.
Step 2. Stop the Spread
Put the site into maintenance mode. This will not stop the virus but will prevent visitors from getting to the infected pages. At the same time, change the passwords:
- For the Joomla control panel.
- For the hosting and FTP.
- For the database.
If the attacker gained access through a stolen password, changing the passwords will cut off their way back.
Step 3. Find the Source of the Infection
Simply deleting the malicious file is not enough. You need to understand how the virus got onto the site. Otherwise in a week it will return. The source can be:
- A vulnerability in an outdated Joomla extension.
- A stolen administrator password.
- An insecure theme or template.
- An infected file on the local computer.
Diagnostics include checking the server logs, scanning the files and analyzing the entry point. This is the most important part of the treatment.
What Is Checked During Diagnostics
A complete list of objects for analysis:
- All PHP files for malicious code.
- The database for embedded scripts and hidden links.
- Joomla users for suspicious accounts.
- The
configuration.phpfile for traces of changes.
Step 4. Remove the Malicious Code
After diagnostics you can start the cleanup. A professional cleanup includes removing web shells, malicious insertions into legitimate files and hidden links from the database. It is important not only to remove the suspicious code but also to restore the modified Joomla system files to their original state.
This is the job of the Malicious Code Removal service: we scan the files and database, clean out shells, backdoors and hidden scripts. If the infection has spread to several files and the database, we connect Virus Removal — usually 1–2 days, urgently in 2–4 hours.
Step 5. Close the Vulnerabilities
After the cleanup, update Joomla and all the extensions to current versions. Delete unused plugins and components. Configure the access permissions for the files and folders. This will protect the site from re-infection through the same vulnerability.
The comprehensive Joomla Security and Firewall service includes a vulnerability audit, WAF setup and admin panel protection in 2–3 days, with a 30-day guarantee. This reduces the risk of a repeated hack many times over.
"Treating a site is not only removing a virus. It is restoring the trust of search engines and users."
If you are not sure about your actions — entrust the cleanup to specialists. Professional treatment takes 1–2 days and includes a guarantee on the work performed. And if after the hack you need to restore data from a backup or manually — there is the Recovery After a Hack service.