Knowledgebase

How to scan your website for malware with Imunify360 in cPanel

If your site suddenly redirects to strange pages, shows spam links, or Google warns visitors about it, the first step is a malware scan with Imunify360. This guide shows you how to scan your hosting account for viruses from cPanel, read the results, clean infected files, and stop the infection from coming back.

EgWeb hosting servers run Imunify360, a security suite that watches files in real time and lets you run an on-demand scan from your own cPanel account.

Step 1: Open Imunify360 in cPanel

  1. Log in to cPanel.
  2. Scroll to the Security section and click Imunify360.
  3. The Imunify360 page opens. You will see tabs for the malware scanner and a history of past detections. Tab names can differ slightly between versions.

Step 2: Start a scan

  1. Open the malware scanner tab (usually called Malware Scanner or Files).
  2. Click Start scanning (or Scan). Imunify360 checks every file in your home directory, including all your domains and subdomains.
  3. Keep the page open or come back later. A small site takes a few minutes; an account with many files or big upload folders can take longer.

Step 3: Read the results

When the scan finishes you get a list of detected files. For each file you usually see:

  • The file path, for example public_html/wp-content/uploads/2024/05/x.php.
  • The detection reason (the signature name), which tells you what kind of malicious code was found.
  • The status, such as infected, cleaned or restored.

Pay attention to where the files are. A PHP file inside an uploads or images folder is almost always malicious, because those folders should only contain images and documents.

Step 4: Clean the infected files

  1. Select the infected files and choose Clean (or the clean-up action shown on your screen). Imunify360 removes the malicious code and keeps the rest of the file when it can.
  2. If a cleaned file breaks the site, use Restore original to bring back the version from before the clean-up, then ask support to check it.
  3. Depending on how the server is configured, some files may already be cleaned or quarantined automatically. You will see that in the file status or in the history tab.
  4. Run the scan again until it comes back clean.
Tip: Take a fresh backup before you start deleting files by hand. See How to back up and restore your website. If the infection is serious, restoring a clean backup from before the hack is often faster than cleaning file by file.

Step 5: Close the hole the attacker used

Cleaning removes the symptoms. If you skip this step the malware usually comes back within days.

  1. Change every password: cPanel, FTP accounts, the database user, and all WordPress administrators.
  2. Update everything: WordPress core, themes and plugins. Delete themes and plugins you do not use, and never use "nulled" (pirated) themes or plugins.
  3. Check WordPress users: remove any administrator you do not recognise. See How to reset your WordPress admin password.
  4. Check cron jobs in cPanel for commands you did not add.
  5. Check .htaccess files for strange redirect rules.
  6. Follow the hardening steps in How to secure your WordPress website.

Common problems

  • The scan finds nothing but the site still redirects: the malicious code may be stored in the database (for example inside posts or options), not in files. Open a ticket and we will help you check it.
  • The same file is infected again after cleaning: there is still a backdoor or a vulnerable plugin on the site. Update or remove plugins and change all passwords.
  • The site broke after cleaning: restore the original file from Imunify360 or from a backup, then contact support.
  • A file you trust is flagged: do not ignore it straight away. Ask support to confirm it is a false positive before adding it to the ignore list.

Frequently asked questions

Does Imunify360 scan my site automatically?

Yes. It watches new and changed files in real time, and the server can also run scheduled scans. A manual scan is useful when you suspect a problem or after you clean a site.

Will scanning slow down my website?

The scan runs in the background with low priority, so visitors normally do not notice it.

Does a clean scan mean my site is 100% safe?

No scanner catches everything. Keep your software updated, use strong passwords and keep regular backups.

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • imunify360, malware, virus scan, cpanel, security, hacked website

Was this answer helpful?

0 Users Found This Useful