Security and SSL
cPanel's Virus Scanner
Virus Scanner is the cPanel tool that uses the ClamAV antivirus to scan the files in your account on demand. Use it when you suspect there is malicious content, for example an infected attachment in a mailbox or a strange file on the website.
Run a scan
- Log in to cPanel and, in the Advanced section, open Virus Scanner.
- Choose what you want to scan:
- Scan Mail: the account's mailboxes.
- Scan Entire Home Directory: the whole account (website, email and the other folders). It is the most thorough and the slowest.
- Scan Public Web Space: the
public_htmlfolder, where the websites are. - Scan Public FTP Space: the
public_ftpfolder.
- Click Scan Now.

You will see the progress with the number of files and MB scanned. If the account is large it may take quite a while; the scan stops by itself if it lasts more than a day.

When it finishes, if everything is fine, the message Virus Scan Complete. No Virus Found. appears.
If it finds infected files
The detected files appear under Infected Files, with their path. For each one you can choose:
- Quarantine: moves it aside so that it is not used, without deleting it.
- Destroy: deletes it.
- Ignore: leaves it as it is.
Before deciding, look at the path:
- An attachment in a mailbox (path inside
mail/): delete it without worrying. - A file on your website that you do not recognise (a stray
.phpwith an odd name, inwp-content/uploadsor in the root): it is usually a backdoor left by an attacker. Quarantine it. - A file belonging to your application (for example
wp-config.php,index.phpor a plugin file): it has been modified with malicious code. If you destroy it, the website will stop working. Replace it with the original from the same version of the application or plugin.
If infected files appear on the website, someone has got in: cleaning the files is not enough, you have to close the way in. Follow the guide on what to do if your website or hosting has been hacked and, if it is a WordPress site, the one on cleaning WordPress after an attack.
If it finds nothing but the website still behaves oddly
ClamAV is designed mainly for viruses and email attachments, and it is less good at detecting PHP malware on websites. If your website redirects to other pages, users you did not create appear or spam is sent from the account, also check the Imunify360 scanner, which specialises in web malware and is also in your cPanel. We explain it in Imunify360.
You may also find useful
- Clean up and recover WordPress after an intrusion Sets out a controlled process to preserve evidence, verify and replace the core, check for persisten...
- Investigate a possible infection through FTP credentials Explains what evidence to check before attributing changes to FTP access, and how to contain and rec...
- My website or hosting has been hacked: how it happened and how to fix it Why websites get hacked, how to recognise the effects (spam, redirects, phishing, Google blocking) a...
- Request and view a hosting security review Request a review included with the service, learn what it covers and tell a scheduled report apart f...
Something wrong or out of date? Tell us and we will review it.