WordPress Security ServicesMalware Removal
Wordfence Malware Removal

Wordfence Found Malware on Your Site? Here's What to Do Next

You opened your email or your dashboard and Wordfence says it found malware. Take a breath. This is fixable, and Wordfence gives you most of the tools to do it. Here's how to read the results, clean things up without breaking your site, and recognize the cases where Wordfence alone won't get you there.

Sergey By Sergey, WordPress security specialist Updated 5 min read
In this guide
  1. First: don’t click “Delete all” yet
  2. How to read the Wordfence scan results
  3. Cleaning up with Wordfence, step by step
  4. Free vs Premium: the 30-day delay
  5. When Wordfence can’t remove the malware
  6. Your options if you need help
  7. After the cleanup: keep Wordfence working for you

First: don’t click “Delete all” yet

Wordfence makes cleanup look like a one-click job. Sometimes it is. But that button deletes files based on patterns, and it doesn’t know which files your site actually needs. Wordfence’s own documentation warns that one-click removal can delete custom files along with the malware.

So before you touch anything:

  1. Make a full backup of the site as it is now: files and database. Yes, the infected version. If a deletion breaks something, you can get the file back.
  2. Write down what Wordfence found. Take screenshots of the scan results, or copy the list. The file names and dates help later when you work out how the attacker got in.

How to read the Wordfence scan results

Wordfence groups its findings by type. These are the ones you’ll see most during an infection, and what each one usually means:

What Wordfence says What it usually means What to do
File appears to be malicious or unsafe The file matches a known malware signature Look at it. If it’s not a file you created, it’s almost certainly malware
Modified WordPress core file A core file differs from the official version Use Repair, which restores the original from WordPress.org
Modified plugin or theme file A plugin or theme file differs from the WordPress.org copy Use Repair, or reinstall the plugin. Premium plugins can’t be compared, so reinstall them from the vendor
Unknown file in WordPress core directory An extra file in wp-admin, wp-includes or the site root Usually malware. Check it, then Delete
Malicious URL in a post or comment Spam or a malicious link inside your content Edit or delete the post or comment
Plugin has been abandoned / has a known vulnerability Possibly how the attacker got in Update it, replace it, or remove it

Cleaning up with Wordfence, step by step

1. Update Wordfence and run a high-sensitivity scan. In Wordfence → Scan → Scan Options and Scheduling, choose High Sensitivity. It’s slower and gives more false alarms, but it’s the right setting when you know something is wrong. Also enable scanning of files outside your WordPress installation if your host allows it.

2. Repair core, plugin and theme files first. For anything marked as modified, use Repair. It replaces the file with the clean original, which is safer than deleting.

3. Review unknown files before deleting them. Click each file to see its contents. Malware usually looks like gibberish: long encoded strings, eval(, base64_decode(, or random variable names. If it’s clearly not yours, delete it. If you’re not sure, download a copy before you delete it.

4. Check your users. Go to Users and look for administrator accounts you don’t recognize. Delete them and reassign their content to a real user.

5. Scan again. Keep going until the scan comes back clean. If new files keep appearing between scans, stop and read the “When Wordfence can’t remove it” section below.

6. Check the places Wordfence doesn’t fully cover:

  • The database. Theme settings, widgets and plugin settings can hold scripts that Wordfence doesn’t flag. My database malware guide has safe queries to check them.
  • Hosting cron jobs. Look in your hosting control panel for scheduled jobs you didn’t create.
  • Other sites in the same hosting account. If one of them is infected, it can reinfect yours.

7. Lock the doors. Change your WordPress, hosting, SFTP and database passwords, turn on Wordfence’s two-factor login for administrators, and update everything.

8. Find out how they got in. Wordfence’s scan results often point to it: an outdated or abandoned plugin, a vulnerable theme, or a weak admin password. If you skip this step, you’ll probably be cleaning again soon.

Free vs Premium: the 30-day delay

Free and Premium Wordfence use the same scanner. The difference is timing. Free users get new malware signatures and firewall rules 30 days after Premium users do. Wordfence adds new signatures every month, so a brand-new piece of malware may not be detected by the free version for a few weeks.

In practice, that means a clean scan on the free version is a little less reassuring than a clean scan on Premium, especially if your site has symptoms. At the time of writing (November 2026), Premium costs $149 a year per site, rising to $199 on December 3, 2026.

When Wordfence can’t remove the malware

Wordfence is a good tool, but these situations usually need a closer, manual look:

  • The scan is clean, but the symptoms continue. Redirects, spam in Google, or browser warnings that won’t go away. The malware is probably in the database, in .htaccess, or only activates for certain visitors.
  • Deleted files come back within hours or days. Something on the server is recreating them.
  • Wordfence gets switched off or deleted. Some malware disables security plugins.
  • You can’t log in to WordPress or the site is suspended by your host, so you can’t run the plugin at all.
  • The attacker got back in after you cleaned. The entry point is still open.

A pattern I see a lot: Wordfence finds five infected files. The owner deletes them, the scan comes back clean, and everyone relaxes. Three days later, the same five files are back. The culprit is a small backdoor hidden inside a legitimate-looking plugin folder. It doesn’t match any signature, so Wordfence doesn’t flag it, and it quietly downloads the malware again. Finding it means comparing the plugin’s files with a clean copy line by line, which is exactly the kind of work a scanner can’t do for you.

Your options if you need help

  • Follow a full manual cleanup. My step-by-step WordPress malware removal guide covers what to check beyond the Wordfence scan.
  • Wordfence Care or Response. Wordfence’s own team cleans the site, and the plans include monitoring and security audits. They’re yearly subscriptions. At the time of writing, Care costs $590 a year per site and Response (24/7, 1-hour response) costs $1,250. Both are rising on December 3, 2026, to $890 and $1,900.
  • A one-time cleanup by an independent specialist. If you don’t need a subscription, I’ll find and remove the malware, close the entry point, and send you a report for $95 per site, with a 1-month guarantee. Wordfence stays installed and keeps protecting the site afterwards.

After the cleanup: keep Wordfence working for you

  • Make sure the firewall is on. If Wordfence offers to optimize it (“Extended Protection”), do it, so it loads before WordPress.
  • Turn on two-factor authentication for every administrator.
  • Keep email alerts on for new issues, admin logins, and plugin vulnerabilities.
  • Let the scheduled scans run, and actually read the alerts.

This guide is independent and not affiliated with Wordfence or Defiant Inc. Prices and features are based on Wordfence’s public information as of November 2026 and may change.

Sergey, WordPress Security Specialist
About the author
Sergey, WordPress Security Specialist

10 years in WordPress security and incident investigation, and more than 200 websites cleaned of malware. Top Rated on Upwork with a 100% Job Success score. More about me

Frequently Asked Questions

Can the free version of Wordfence remove malware?

Yes, the free plugin includes the same Repair and Delete tools as Premium, so you can clean many infections yourself. The difference is detection: free users get new malware signatures 30 days after Premium users, so very recent malware may not be flagged yet.

Is it safe to click "Delete All Deletable Files"?

Not without looking first. Wordfence itself warns that one-click removal can delete files your site needs, such as custom code, backups, or files from premium plugins it doesn't recognize. Review each file, make a backup, and delete in small batches.

Why does Wordfence keep finding the same malware?

Something is putting it back. Usually that's a backdoor Wordfence didn't flag, a cron job, a fake plugin, or another infected site in the same hosting account. Deleting the files again won't help. You need to find what recreates them, and how the attacker got in.

Does Wordfence scan the WordPress database?

Partly. It checks posts, comments and some options for known dangerous URLs and suspicious content. It doesn't review everything in the database, so scripts hidden in theme settings, widgets or custom tables can be missed.

Will Wordfence remove the malware for me?

The free and Premium plugins give you tools to clean it yourself. If you want Wordfence's team to do it, malware removal is included in their Care and Response plans, which are yearly subscriptions. An independent specialist can also do a one-time cleanup.

Need a hand?

Let me clean your WordPress site for you

Send me your site URL and what you're seeing. I'll reply with what I think is going on and the next step.

$95 per infected site · 1-month guarantee · direct contact with the specialist

Get My Site Cleaned →