Site down, hacked, or disappearing from search? Call (754) 302-4631
sosSTEVIE Start the Site Rescue

Rescue · Emergency guide

WordPress malware removal: what a real cleanup involves.

Your scanner says the site is clean, but the spam is still in Google or the redirect came back. Here is why, what a real removal looks like, and when to stop doing it yourself.

Just found it? Do the first-hour checklist before anything else. Not sure it’s malware? Run the free Site Check or the six checks.

By Stevie · October 28, 2026

The short answer

Real malware removal is not a scan. Back up the site as it is, find how they got in, replace core, plugins and themes with clean copies, clean the uploads folder and the database, lock down users and scheduled tasks, then get the spam out of Google.

Skip the entry point and the malware comes back, usually within weeks, often within days.

Why “clean” isn’t clean

A one-click scan finds what it recognises. Backdoors are built not to be recognised.

Security plugins are useful for prevention, monitoring and spotting known malicious code. But a scanner compares your files against what it already knows, and a competent attacker plans for that. Here is what a one-click scan commonly misses:

  • A backdoor of a few lines, disguised as ordinary code inside a theme or plugin file that otherwise looks normal.
  • Code stored in the database rather than in a file, so a file scan never sees it.
  • A second administrator account that looks like a plugin’s service account. That’s not malware, so no scanner flags it.
  • A scheduled task that recreates the files and the user a week after you delete them.
  • Spam served only to Google or to visitors arriving from Google. Logged in as yourself, the site looks spotless.

And a scanner can’t tell you how the attacker got in. It removes a symptom and reports success. The door stays open.

What a real removal involves

8 steps. In this order. The order is the method.

This assumes the first hour is done: site offline, passwords changed from a clean device, administrators written down. If it isn’t, start there.

Malware removal checklist

0 of 8 done
Out of your depth?Call (754) 302-4631
  1. Step 1

    Back up the site exactly as it is.

    How: download a full copy of every file and the database, and store it off the server.

    Why: this copy is the evidence. It shows what was changed, when, and often how the attacker got in. Clean first and that trail is gone.

    This backup is never restored over the site. It is a record, not a restore point.

  2. Step 2

    Find the entry point.

    How: look at which files changed and when, the server access logs if your host keeps them, and every plugin and theme that hasn’t been updated by its developer in over a year.

    Why: the way in is usually ordinary: an outdated plugin, an abandoned theme, a reused password, or an old administrator account. If you clean without finding it, the attacker walks back in through the same door.

  3. Step 3

    Replace WordPress core, plugins and themes from clean copies.

    How: replace the WordPress core files with a fresh download of the same version. Reinstall every plugin and theme from its original source.

    Why: a backdoor can be a few lines tucked into a normal-looking file. Replacing whole files beats hunting for those lines.

  4. Step 4

    Check the uploads folder and the wp-config file.

    How: the uploads folder holds your images and documents. Any PHP file in there is a red flag. Read wp-config.php line by line, and look for stray files in the site root that you didn’t put there.

  5. Step 5

    Clean the database.

    How: search posts, pages and the options table for injected scripts, hidden links and pages you never wrote. Look for settings that load code from another domain.

    Why: plenty of infections never touch a file. They live in the database, where a file scan doesn’t look.

  6. Step 6

    Lock down users and passwords.

    How: every administrator should be a person you can name. Remove the rest once they are documented. Change every password again from a device that has never logged in to the site. Replace the security keys in wp-config.php so every existing login is thrown out.

  7. Step 7

    Check scheduled tasks.

    How: list the scheduled tasks inside WordPress and ask your host for the server-level ones.

    Why: a scheduled task is how deleted files and deleted users quietly come back a week later.

  8. Step 8

    Re-check, de-index and request a review.

    How: fetch the homepage as Googlebot in Search Console and compare it with what you see. Watch for files or users reappearing. Make sure the spam URLs return the right status codes, clean up the sitemap, request removals, and if Google has flagged the site, request a review.

    Why: you can delete every spam page in an afternoon and stay invisible in Google for months if those pages aren’t properly de-indexed.

What not to do

Five moves that make removal harder.

  • Don’t delete the spam pages first.It hides the symptom, destroys evidence and leaves the door open.
  • Don’t trust a single “clean” result.A scan is one input. It is not proof.
  • Don’t restore a backup blind.The compromise almost certainly started before you noticed, so recent backups probably carry it too.
  • Don’t just reinstall the theme.A rogue administrator, a database injection or a scheduled task survives a fresh theme.
  • Don’t keep the plugin that let them in.If it’s abandoned, replace it. If it’s patched, update it before the site goes back up.

Do it yourself, or get help?

Be honest about which side of the line you’re on.

Plenty of owners can clean a simple infection. The risk isn’t the work. It’s believing the job is finished when it isn’t.

You can probably do it yourself if

  • You’re comfortable with SFTP, file permissions and the database.
  • You can find the entry point, not just the infected files.
  • There are no spam pages in Google and no warning on the site.
  • No customer data was stored on the site.

Get help if

  • It has come back after a cleanup.
  • Google shows pages on your domain you never wrote, or is warning visitors away.
  • There’s an administrator you can’t name and you don’t know how it got there.
  • The site stored customer details. That can mean a disclosure obligation, so talk to a lawyer too.

Why I’m strict about the order

I learned it on my own site.

In 2024 my own site was taken over by a spammer who made himself primary administrator and built tens of thousands of hidden pages underneath it. My homepage looked exactly the way it always had. I found out from the silence, not from an alert.

The cleanup on the server was the cheap part. The expensive part was the domain reputation, which is why de-indexing is a step in a real removal and not an afterthought. The full account is on the story page. The hacked website rescue page explains each phase.

If you want it handled

The Site Rescue: find it, fix it, get back online.

  • $997, fixed. No hourly billing.
  • I find what’s wrong and fix what’s causing the damage: malware, rogue accounts, the entry point.
  • A full backup before any change, and every change logged.
  • A written report: what was found, what was fixed, what is left.
  • Most small and medium sites are fully recovered within the $997. Larger sites see the scope and the cost before anything more is done.

$997fixed

Start the Site Rescue: $997 About the Site Rescue Payment is through PayPal. After payment I email you within one business day to get access and book the 30-minute intake call. The fee is non-refundable once work begins.

Frequently asked questions

Straight answers.

Can a security plugin remove malware from WordPress on its own?

It can remove the files it recognises. It usually can’t prove the site is clean, because backdoors are often disguised as ordinary code, hidden in the database, or kept alive by a rogue administrator or a scheduled task. Use a scanner as one input, then find the entry point and check by hand.

How long does WordPress malware removal take?

The cleaning itself is often a matter of days for a small site. Getting the spam out of Google takes longer, usually weeks, because each removed page has to drop out of the index and any warning has to be reviewed.

Why does the malware keep coming back after I delete it?

Because the door is still open. The attacker usually leaves a second way in before anything visible happens: an extra administrator, a backdoor file, or a scheduled task that puts everything back. Until the entry point is found and closed, a cleanup just resets the clock.

What does the Site Rescue cost?

$997, fixed, with no hourly billing, paid through PayPal. It includes a full backup before any change, a log of every change, and a written report of what was found, what was fixed and what is left. The fee is non-refundable once work begins.

I think my site has malware right now. Who do I call?

Call (754) 302-4631. Don’t fill in a form and don’t start deleting things. Outside Monday to Friday, 9 to 6 Eastern, text the same number instead.

Next step

Don’t delete anything yet. Call (754) 302-4631.

Tell me what the scanner found and what you’re still seeing. You’ll get a straight answer on what it probably means before anything is touched.

Call Monday to Friday, 9 to 6 ET. Outside those hours, text the same number instead; I’ll see it first thing the next business morning.