Most hacked WordPress sites get worse in the hour after someone notices. Not because the attacker does anything new, but because the people trying to fix it start deleting things: the strange admin account, the files the scanner flagged, the plugin nobody remembers installing. Some of that is right. Done in the wrong order, it destroys the record of what happened, leaves the way back in open, and sometimes takes down a site that was only hacked.
FatLab has hosted and looked after WordPress sites since 2011, and this year we worked on five hacked ones. We made some of these mistakes ourselves. This post is the first hour as we now run it, what those five sites taught us, and what WordPress malware removal should actually include.
The short answer: if your WordPress site has been hacked, don't start by deleting things. First take a copy of the site exactly as it is, tell your host, and stop the site from sending email. Then change every password and log everyone out, work out how the attacker got in from the server's access logs, clean everything they touched (files, database and user accounts), and only then ask Google to review the site. A backup helps only if it was taken before the attacker first got in, which is often earlier than anyone thinks. If you have a host or support team that handles security, call them before you touch anything.
What should I do first if my WordPress site is hacked?
Stop, and write down what you're seeing before anything changes. WordPress.org's own guide for hacked sites starts the same way: stay calm, then document. Note the time you noticed, what you saw and where (homepage, search results, an email from Google, a customer's screenshot), and anything that changed recently: a new plugin, a new staff member, an update.
Then do three things, in this order.
- Take a copy of the site as it is now. Files and database, before any cleanup. This is the evidence of what the attacker did, and it's what lets anyone work out how they got in. WordPress.org lists creating a backup as a step in its own response, and when a client site of ours is hit, we copy the affected site as found before any cleanup begins. If you don't know how to take a copy, your host does.
- Tell your host. Google's guide for hacked sites puts contacting your host near the top of the list, because the host can check whether other sites on the same server were touched and can often see logs you can't. If your host also manages your site's security, this call is most of the job.
- Stop the site from sending email. A hacked site can send spam or phishing in your organization's name, through your own mail settings, which does lasting damage to your email reputation. During the cleanup of a national advocacy group's site that came to us after a breach, we blocked all outgoing mail from the site until the cleanup was finished and verified.
Google's guide also says to take the site offline. That's right when the site is actively harming visitors, such as sending them to a scam or loading malware in their browsers. Google is specific that an error page alone isn't enough to protect them; it suggests pointing the site at a static page on a different server. When the hack is hidden from visitors, as most are, we usually keep the site up and work fast instead. That's a judgment call for whoever runs the response, which is why the UK's National Cyber Security Centre tells small organizations to decide in advance "who decides if the website should be shut down?"

What five hacked WordPress sites taught us in 2026
These are all five hacked WordPress sites we worked on this year. One was on our hosting when it was hit. The other four came to us during or after the breach, or we found the attacker while moving the site.
| The site | Where it was hosted | How the attacker got in | How it came to light | How it ended |
|---|---|---|---|---|
| A medical mission nonprofit | Our hosting | An administrator account created from inside a staff member's logged-in session | Staff saw a casino page on their homepage | Clean 21 minutes after their ticket; a second pass the next day |
| A national advocacy group | An enterprise WordPress platform | The built-in admin password, guessed slowly over weeks | The owner took the site offline and called in a security vendor | Cleaned on an isolated server; live on our hosting three days after our first call |
| A company website | An enterprise WordPress platform | A critical WordPress flaw from July; the fix was available but never deployed to the live site | The client's IT team found an unknown user in the site's activity log after reading an advisory | Updating WordPress didn't remove the attacker's files; they had to be cleaned separately |
| A nonprofit moving to us | A large mainstream host | The same July WordPress flaw | We found two hidden administrator accounts while moving the site | Rebuilt clean during the move; the old host had removed files but left the accounts |
| A small business | A server in the owner's home | The same July flaw, on a version that was never updated | The owner found 40 administrator accounts he hadn't created | Cleaned in a morning; new attack attempts refused from then on |
Three things stand out.
- Three of the five were the same flaw, a WordPress core vulnerability fixed on July 17. On each, the fix existed and hadn't been applied. Malware removal without updates just resets the clock; I wrote about how fast that window closes in the race after a security fix ships.
- The other two got in with a login, not a software flaw: one guessed password, one hijacked session. That's why the cleanup always ends with every password changed and two-factor logins for administrators.
- No owner found out from a dashboard. Each one came to light because a person saw something wrong: a casino page, a stranger in the activity log, 40 unfamiliar administrators. Some hacks are built to stay invisible to the owner, so "the site looks fine to me" isn't proof of anything.
What mistakes make a hacked WordPress site worse?
Deleting things before you've copied them, deleting the hacked account itself, trusting a scan that checks only some files, calling the site clean once the visible damage is gone, and resetting passwords without warning the people who'll get the emails. We've made each of these mistakes on real cleanups this year. The standard advice lists the right steps without saying what goes wrong between them.
1. Letting a scanner clean during the investigation
During one cleanup, I switched on our server's automatic malware cleanup partway through the investigation, to sweep up anything we'd missed. It did remove the attacker's files. It also emptied one of WordPress's own core files, which the attacker had altered, and because every page on the site loads that file, the site started serving blank pages until we put a clean copy of WordPress back.
Nothing was lost, because we had copied the attacker's files before turning it on. But a tool that deletes on its own, during an incident, decides for you what gets removed and when, without knowing what the site needs to keep running, and without telling you what it took.
What we do now: preserve first, then clean deliberately. Automated scanners are good at finding things. In the first hour, a person decides what gets removed.
2. Deleting the hacked account
The advocacy group's site was broken into through its built-in admin account. The obvious move is to delete that account. It also happened to be the author of 6,166 pieces of content: posts, pages, uploaded files and their revision history.
Deleting it would have meant reassigning all 6,166 to someone else in one go, or losing them, and every link to that author's archive page would have broken. So we renamed the account, took away its administrator role, set a password nobody holds and logged out every session it had.
What we do now: disable the account, don't delete it in a hurry. An account with no role and a password nobody knows can't hurt you, and you can decide what to do with its content later. (How that password was guessed is in our post on brute force attacks.)
3. Trusting a scan that only checked one kind of file
On the same site, our first comparison of the hacked files against clean copies looked at PHP files, which is where most WordPress malware lives. It came back with a list of backdoors, and it missed the thing actually attacking visitors: a piece of JavaScript appended to a legitimate plugin's file. WordPress's own checksum check, which compares every plugin file with the official copy, caught it.
What we do now: check every file against the official version, not just the file types malware usually uses. One rule came out of it that we apply to every cleanup: if a plugin's files changed but its version number didn't, that isn't an update. It's an injection.
4. Deleting what you can see and calling it clean
Attackers leave more than one way back in. Sucuri's 2023 hacked website report found at least one backdoor on 49% of the compromised sites it cleaned, and fake administrator accounts in 55% of infected WordPress databases.
We see it from the other side. The small business owner in the table deleted his 40 unknown administrators one evening, and a new one appeared 45 minutes later; I wrote about it in why "not a target" is a myth. And our own first pass on the medical mission site missed a second file manager the attacker had installed, which we found the next day by retracing the attacker's steps through the access logs (the full story is here).
What we do now: work from the logs, then check the disk. The access logs show which addresses logged in, what they requested and what they uploaded. Everything they touched gets checked, not just what a scanner flagged.

5. Not warning people about the password emails
Resetting every password and logging everyone out is the right move, and WordPress.org recommends it too: "forcing a global password reset for all users, especially administrators." What nobody mentions is what it looks like from the inside.
The day after the medical mission site's cleanup, a staff member sent us a screenshot of a WordPress email saying the password had changed for a login she didn't recognize. She thought the attacker was back. It was one of our own team's accounts, reset as part of the cleanup, and WordPress had notified the site's administrators, as it's designed to.
What we do now: warn the client before we reset anything that they'll see a burst of password-change emails, some naming logins they won't recognize, and tell them which ones are ours. After a hack, people are right to be suspicious of every email. Tell them what to expect.
How do I remove malware from a WordPress site completely?
Find how the attacker got in, then check everything they could have touched: every file against the official versions, the database, and the user accounts. Change every password, update everything, and check again a day or two later. Removing the files a scanner flags is where malware removal starts, not where it ends.
Whoever does it, a complete cleanup covers:
- A copy of the site as found, kept until the cleanup is verified.
- The way in, identified, from the access logs: a guessed or stolen password, a vulnerable plugin, an unpatched WordPress version.
- Every file checked against the official versions: WordPress core, plugins and themes, including JavaScript and anything in the uploads folder. WordPress.org notes the
/wp-adminand/wp-includesfolders can be replaced outright with clean copies. - The database checked for injected code, fake administrator accounts and changed settings.
- Every password changed and every session ended: WordPress users, the database, SFTP, the hosting account. WordPress's security keys regenerated, which logs everyone out.
- Everything updated, and anything unused removed.
- Two-factor logins for administrators. On the medical mission site, the way in was a real staff member's logged-in session, and two-factor logins for its administrators followed within two weeks; more in what two-factor authentication stops.
- A second pass a day or two later, from the logs, for anything the first pass missed.
- A Google review, only once all of the above is done, if Google flagged the site.
A free scanner is a good way to check whether something is wrong, not whether it's fixed. Sucuri's SiteCheck, for example, is free, but its own page says a remote scanner "only has access to what's visible on the browser level, it will not detect anything on the server-side," which is where backdoors live.
Should I restore a hacked WordPress site from a backup or clean it?
Restore only if you can show the backup was taken before the attacker first got in. Otherwise, clean.
The problem is that the date the site looked hacked is rarely the date it was hacked. Attackers often create an account or plant a backdoor and wait before doing anything visible, so a backup from the day before you noticed can already contain the way back in. Google's cleanup guide makes the same point: "check that your backup was created before your site was hacked." Even then, a restore puts back the same vulnerable plugin or weak password the attacker used, so it has to be followed by updates and a full password reset.
In practice, we use backups as clean reference copies and as a fallback, and clean the live site from the logs. A good backup also has to restore cleanly, which isn't a given: we cover that in what happens when a backup plugin fails.
What happens if your website gets hacked?
It depends on what the attacker wanted, but the usual results are spam pages in your Google results, visitors redirected to scams, malware served to visitors' devices, spam email sent in your name, and stolen data if the site holds any. Most hacks are about using your site's reputation, not about you.
- Search spam. Sucuri found SEO spam on 42% of the infected sites it saw in 2023. Our medical mission site was one: the attacker showed a casino page only to Google.
- Harm to visitors. Yes, a visitor can get malware from a hacked website. Google's page on sites hacked with malware warns that "opening a malware-infected page in a browser may damage your computer," and its browser warning tells visitors, "This site may harm your computer." The JavaScript we found on the advocacy group's site was there to load the attacker's code into visitors' browsers.
- Email in your name, which is why mail gets switched off in the first hour.
- Personal data. If the site stores information about people (members, donors, customers, form submissions), the FTC's data breach response guide notes that every state has laws "requiring notification of security breaches involving personal information." Talk to whoever handles legal questions for your organization early.
How long does it take Google to remove the hacked site warning?
A few days for malware, and up to several weeks for hacked spam, after you request a review. Those are Google's own figures from its guide to requesting a review and its Security issues report.
Two things matter more than the wait. First, fix the whole site before you ask. Google says fixing only some pages "will not earn you a partial return to search results," and asking before the problem is truly fixed "can cause longer turnaround time for the next request, or even get you marked as a repeat offender." Second, write a real request: Google asks it to explain the issue, the steps you took and the result.
Not every hack ends in a warning, and speed is most of the reason. The medical mission site was clean the same day, and its search results showed no measurable harm afterwards. The longer spam sits in Google's index, the more likely it is to be flagged.
Will my web host clean up my hacked WordPress site?
It depends entirely on the host, and the answers range from yes, included, to not our job. Here's what four large hosts say on their own pages, as of December 2026:
| Host | What its own page says |
|---|---|
| Kinsta | Malware removal included at no extra cost, for WordPress sites without pirated plugins or themes; a $100 fee for a reinfection if post-cleanup steps are skipped |
| WordPress.com | Malware scanning and removal included with the plan |
| Bluehost | Manual removal on request, only for sites on its Complete Security plan |
| SiteGround | Malicious code cleanup is listed as outside its scope of support; it advises contacting cleanup professionals |
Read the fine print on whether "removal" means the whole job. The nonprofit in our table came from a host that had emptied the attacker's files but left the attacker's two administrator accounts in place, so one password reset would have let them back in. More on that in our post on taking over a WordPress site.
How much does WordPress malware removal cost?
From the security vendors, a single cleanup starts around $100, and plans that include cleanup run a few hundred dollars a year. As of December 1, 2026, on their own pricing pages:
- Sucuri one-time cleanup: $98 for one site, with no cover for reinfection. Its platform plans, which include unlimited cleanups, start at $229 a year.
- MalCare plans that include cleanup start at $299 a year for one site; its $99 plan doesn't include cleanup.
What the price doesn't tell you is who checks the work. A cleanup is only as good as what happens afterwards: the vulnerable plugin still needs updating, the passwords still need changing, and someone still needs to watch the site in the weeks after. That's the part most often skipped, and it's where reinfections come from.
At FatLab, hack cleanup is part of looking after a site, with no separate fee, and so is the follow-up. A hacked site gets that by joining a plan rather than through a one-off cleanup, because cleaning a site well depends on knowing its history, and a stranger's quick fix is how sites end up hacked twice. Moving the site to our hosting is free. That's how the advocacy group in our table came to us: their first call was on a Friday, and their cleaned site was live on our hosting the following Monday, with the cleanup included. If that's where you are, our managed WordPress security service is the place to start.
How do I protect my WordPress site after a hack?
Close the way the attacker got in, then keep it closed: updates applied quickly, two-factor logins for every administrator, no accounts or plugins you don't use, a firewall in front of the site, backups kept off the server, and someone watching. Three of our five hacked sites were running a WordPress version with a known, already-fixed flaw, so speed of updates matters most. The full list of how sites actually get broken into is in how WordPress sites get hacked.
A checklist to keep before it happens
Print this, or put it somewhere you can reach if your website and email are both down:
- Who hosts the website, and how do you reach them in an emergency?
- Who has administrator access, and who can change it?
- Who decides whether the site goes offline?
- Where are the backups, how long are they kept, and has anyone restored one recently?
- Who is responsible for cleanup: the host, a developer, a security vendor, or you?
- Who tells staff, members or customers, and what will they be told?
If the answer to question 5 is "we're not sure," that's the one to settle first. When a site is down instead of hacked, the questions are different; our guide to a site that's down covers that.

Frequently Asked Questions
What is the first thing to do when your WordPress site is hacked?
Take a copy of the site as it is, before changing anything, then tell your host and stop the site from sending email. After that: change every password, log everyone out, find out how the attacker got in from the access logs, and clean files, database and user accounts. Don't start by deleting things.
How do I know if my WordPress site has been hacked?
Common signs are administrator accounts nobody created, spam or foreign-language pages in Google's results for your site, visitors being redirected elsewhere, a warning from Google or your browser, unexpected password-reset emails, and files or plugins you didn't install. Some hacks show spam only to Google, so checking your site in a normal browser isn't enough. Google suggests checking the Security issues report in Search Console and searching site: plus your domain to see what Google sees.
How do I remove malware from my WordPress site?
Copy the site first, find how the attacker got in from the access logs, check every file against the official WordPress, plugin and theme versions, check the database and user accounts, change every password, update everything, and check again a day or two later. Attackers usually leave more than one way back in: Sucuri found a backdoor on 49% of the hacked sites it cleaned.
Is Sucuri free?
Sucuri's SiteCheck scanner is free, but it only sees what a browser sees, not the files on the server, so it can tell you something is wrong without proving a site is clean. Sucuri's cleanup is paid: $98 for a one-time cleanup of one site, or plans from $229 a year that include cleanups, as of December 2026.
Does malware eventually go away on its own?
No. Most website malware includes a way back in, so it stays until it's removed and the hole it used is closed. On one site this year, the owner deleted 40 rogue administrator accounts and a new one appeared 45 minutes later.
Do hackers eventually give up?
Not on their own. Most attacks on websites are automated, so the same scanners keep coming back as long as the weakness is there. What stops them is closing the hole: on that same site, once WordPress was patched and the attacker's entry points were blocked, new attempts kept arriving and were refused.
Can you get malware from visiting a website?
Yes. A hacked site can serve malicious code to its visitors, and Google warns that opening a malware-infected page "may damage your computer." That's why Google shows warnings on sites it has flagged, and why a hacked site that's harming visitors should be taken offline while it's cleaned.
Should I delete the hacked admin account?
Not in a hurry. Remove its administrator role, set a new password nobody knows and end its sessions. If the account authored content, deleting it means reassigning or losing all of it. On one site we cleaned, the hacked account was the author of 6,166 pieces of content.
Will restoring a backup remove the hack?
Only if the backup was taken before the attacker first got in, and attackers often wait days or weeks before doing anything visible. A restore also brings back whatever let them in, so update everything and change every password afterwards.
How long does Google take to remove the "this site may be hacked" warning?
After you request a review in Search Console, Google says a few days for malware and up to several weeks for hacked spam. Fix the whole site before asking; an early request can slow the next one down.
How much does WordPress malware removal cost?
One-time cleanups from security vendors start around $100 (Sucuri's is $98 for one site), and plans that include cleanup start at about $229 to $299 a year. Some hosts include cleanup with hosting. For FatLab clients, hack cleanup is part of looking after the site, with no separate fee.
Will my hosting company clean up my hacked site?
Some will and some won't. Kinsta and WordPress.com include malware removal, Bluehost offers it on one security plan, and SiteGround lists malicious code cleanup as outside its support. Check your host's own support page, and check whether its cleanup includes removing the attacker's user accounts, not just files.