Detecting and Removing Malware
If your website has been compromised, malware may have been injected into your files or database. Regular scanning helps detect infections early before they cause serious damage to your site and reputation.
Signs Your Site May Be Infected
- Your site redirects to suspicious websites.
- Google shows a "This site may be hacked" warning in search results.
- Your browser displays a red security warning when visiting your site.
- Unexpected new files or modified files appear in your hosting account.
- Your site is significantly slower than usual.
- You find spam content or links on your pages that you did not add.
- Your hosting provider or email provider suspends your account due to abuse.
Scanning with cPanel Virus Scanner
- Log in to cPanel and go to Security > Virus Scanner (if available).
- Select Scan Entire Home Directory for a comprehensive scan.
- Wait for the scan to complete and review any infected files that are found.
- Choose to quarantine or delete infected files.
Scanning with WordPress Plugins
- Wordfence: Install the Wordfence Security plugin, go to Wordfence > Scan, and click Start New Scan. Wordfence compares your WordPress core files, plugins, and themes against the official repository to detect modifications.
- Sucuri Security: The Sucuri plugin provides malware scanning and security hardening. It can also check if your site is on any blacklists.
External Scanning Tools
- Sucuri SiteCheck: Visit
sitecheck.sucuri.netand enter your domain for a free external scan. - Google Safe Browsing: Check
transparencyreport.google.com/safe-browsingto see if Google has flagged your site. - VirusTotal: Submit your URL to VirusTotal for a scan across multiple security engines.
Cleaning an Infected Site
- Restore from a clean backup if you have one from before the infection.
- If no backup exists, manually remove malicious code from infected files identified by the scanner.
- Change all passwords — WordPress admin, cPanel, FTP, database, and email.
- Update everything — WordPress core, all plugins, and all themes.
- Remove unused plugins and themes that may have been the entry point.
- Request a review from Google if your site was flagged, via Google Search Console.