My host says my site has malware. Is it real?
Host malware scanners are right often enough that every warning needs a real check, and wrong often enough that you should not let them delete files blindly. Comparing flagged files with clean copies from their makers usually settles it before anything gets deleted.
The problem
Your host emailed a malware alert. It names files, sets a deadline, and sometimes threatens to suspend the account. The tempting response is to delete whatever was flagged and hope.
If clients reach you through the site, taking it down over a false alarm costs real inquiries. Deleting the wrong file can break the site in ways that look like an attack.
How to fix it
- Get the details: which files, which rule flagged them, and when. Ask the host.
- If a flagged file belongs to WordPress or a WordPress.org plugin, compare it with the official checksums. If it belongs to a commercial plugin or theme, compare it with a fresh download from the vendor. An exact match is a false positive, often set off by encoded code such as licensing code.
- If a flagged file sits inside a plugin you can update, reinstall it from its maker, then ask the host to scan again.
- Check whether the file belongs there at all. A PHP file in uploads, a plugin nobody installed, or a randomly named file in the site root is not a false positive.
- Search for your site on Google from a phone, logged out, and click through. Some infections only show to search visitors or phone users. Check Search Console under Security issues.
- If everything is clean, send the host a short note: which files, why they are clean, and what you compared them against. If not, treat the site as hacked, starting with the first hour.
When to stop
Stop when the flagged files are in custom code or the uploads folder, when visitors report odd redirects, or when the host has set a deadline.
Or I can do it for you
If the host is about to suspend the site, send an emergency request. I move fast on emergencies. Otherwise checking a warning is a one-off I quote. See hacked site recovery and WordPress security, or get a quote.
This happened
A law firm whose site I look after got a malware alert from its host, with files named and a threat of suspension. I checked each flagged file against clean copies and confirmed it was a false positive. I sent the host a note with what was flagged and what I compared it against, so they could clear it.