Malware is malicious code that can infect your website, slow down performance, steal sensitive data, or cause your site to be blocked by search engines like Google. If you see warnings such as “Deceptive Site Ahead” or notice unusual behavior on your website, it is important to scan your site immediately.
This guide explains how to scan your website for malware using cPanel tools, with a focus on cpGuard, one of the most effective security scanners.
You should perform a malware scan if:
Your website loads slowly or redirects to unknown pages
Google shows a security warning for your site
Your hosting provider sends a malware alert
You recently installed new plugins, themes, or scripts
You suspect unauthorized access to your account
cpGuard is an advanced security tool available in many cPanel hosting environments. It scans website files, databases, and CMS core files for known malware signatures.
Sign in to your cPanel account using the login details provided by your hosting provider.
Scroll down to the Security section.
Click on cpGuard.

Select your account or domain.
Click Scan Now.
cpGuard will scan:
Website files
Databases
Core CMS files (WordPress, Joomla, Drupal, etc.)
Plugins and themes
After the scan completes:
Infected files will be clearly marked
Malware signatures and threats will be listed
File paths of infected files will be shown
Important: Note down the infected file paths so you can clean or replace them.
If cpGuard is not available, you can perform a basic manual check.
Recently modified files in File Manager
Files with strange or random names
Suspicious .php files
Code that appears unreadable, encoded, or obfuscated (e.g., base64_decode, eval, gzinflate)
Manual checks are helpful but not a replacement for automated malware scanners.
If your website is infected:
Remove or quarantine infected files
Restore clean files from a backup
Update your CMS, plugins, and themes
Change all cPanel, FTP, and CMS passwords
Run another scan to confirm the site is clean
Scan your website regularly
Always update your CMS and extensions
Avoid using pirated themes or plugins
Enable firewalls and security plugins
Keep regular backups of your website
Regular malware scanning helps protect your website and prevents it from being blacklisted by search engines like Google.