Your WordPress site has been hacked. Here’s what to do
Written by: Shaan Nicol
Last updated: Nov 11, 2026 · 6 min
Take a full copy of the site as it is, then change every password from a clean computer. Restore a backup from before the break-in, or clean the files by hand, and find how they got in before the site goes back online. If you skip that last step, the same gap lets them straight back in.
Table of Contents
How can you tell if WordPress has been hacked?
The two most common signs are visitors being sent to another site and spam pages appearing in Google under your domain. Sucuri’s scanner found 1,176,701 infected websites in 2024. 74.7% carried malware or redirects, and 38.4% carried SEO spam (GoDaddy Annual Cybersecurity Report, April 2025).
Check these:
- Google. Search `site:yourdomain.com`. Pages you didn’t write mean spam has been injected.
- A phone on mobile data, logged out. Search for your business on Google and click through, the way a visitor would.
- Users. Look for administrators you didn’t create.
- Search Console. The Security issues report shows whether Google has flagged the site.
- Your host and your inbox. A suspension notice, a malware email from the host, or your mail bouncing are all signs.
Don’t trust the plugin list or the user list on their own. Malware can hide from both. Check the plugins and mu-plugins folders on the server through your host’s file manager or SFTP. Must-use plugins load on every page and don’t appear in the normal plugin list.
What should you do in the first hour?
Contain it and keep the evidence. Deleting files now destroys the trail you need later.
- Copy everything. Download the files and export the database. Label it as the hacked copy.
- Tell your host and whoever looks after the site. Ask the host for access logs straight away.
- Change passwords from a computer you trust. Every WordPress administrator, the hosting account, SFTP, the database, and the email account tied to the main admin.
- Reset the security keys in wp-config.php. That logs everyone out, including the attacker.
- Put up a maintenance page if the site is sending visitors to scams or takes payments.
- Write down what you saw and when. Times matter for choosing a backup and for any breach report.

Should you restore a backup or clean the site?
Restore if you have a backup from before the break-in and it’s stored somewhere other than the server. It’s the fastest route back. You lose any content added since, so note what needs re-entering.
A backup on the same server is the weak point. When we looked at a Sydney gym’s site in 2025, its backups were stored on the server itself and none had ever been restored. If the server is compromised, those copies may be too.
On the sites we look after, backups run daily to a separate location and we test a restore on every site each quarter. None has failed.
Clean by hand if there’s no clean backup, or you can’t tell when the break-in started:
- Replace WordPress core with a fresh download.
- Delete and reinstall every plugin and theme from the original source. Get paid ones from the vendor’s own download page.
- Check the mu-plugins folder. Most sites have nothing in it.
- Look for PHP files in the uploads folder. There shouldn’t be any.
- Check .htaccess, wp-config.php and the theme’s functions.php for code you didn’t add.
- In the database, look for unknown administrators and scripts injected into posts and options.
A security plugin scan helps you find files. It won’t tell you how the attacker got in.
How do you find out how they got in?
Match what you find on the server to the route it points to. Each way in leaves a different trace.
| Way in | What you’ll usually see | Where to check |
|---|---|---|
| A plugin or theme with a known flaw | An out-of-date plugin listed in a vulnerability database | Plugin versions against Patchstack or WPScan |
| A stolen or shared login | Admin logins at odd hours or from unfamiliar places, then a new admin | Login activity, the user list, access logs for wp-login.php |
| A fake plugin | A plugin folder you don’t recognise, with recent file dates | The plugins and mu-plugins folders, sorted by date modified |
| A pirated paid plugin | Hidden code bundled with the plugin from day one | Where each paid plugin was downloaded from |
| Another site on the same hosting account | Infected files in more than one site | Every folder on the account |
Fake plugins are common. Balada Injector, a 2024 campaign, was found on 149,351 sites. It uses counterfeit WordPress plugins as backdoors and targets logged-in administrators to add new admin users (GoDaddy, April 2025).
Our October 2026 case, on a Singapore client’s site, followed that pattern. The first sign was the Users screen: one admin account wasn’t in the list. Query Monitor showed why. A must-use plugin posing as a caching tool was rewriting the user query to hide an admin account the attacker had created.

Before changing anything, we saved a copy of the malware and read the activity log. The break-in took 30 seconds, through an outside agency’s shared admin login. Then we removed the plugin, the hidden admin and a script added to the theme, reset every password and turned on two-factor login for all users.
Who do you need to tell?
Google, once the site is clean. Request a review from the Security issues report in Search Console. Google says a review can take from a few days to a few weeks (Search Console Help, Security issues report). Ask too early and the warning stays up longer.
Customers, if personal data could have been read. That means anything collected through forms, accounts or orders. A script injected into every page can read what people type into forms, so forms submitted while it was live may have been exposed.
In Singapore, you have 30 calendar days to assess whether a breach is notifiable. It is if it’s likely to cause significant harm or affects 500 or more people. Then you notify the PDPC no later than 3 calendar days after deciding that (PDPC, Guide on Managing and Notifying Data Breaches, revised March 2021).
In Australia, the Notifiable Data Breaches scheme covers businesses and not-for-profits with annual turnover over A$3 million, plus private health service providers and some smaller operators. You have 30 calendar days to assess a suspected breach. If it’s eligible, you notify affected people and the OAIC as soon as practicable (OAIC, June 2026).

Get legal advice early if customer data was on the site.
What happens after the clean-up?
Watch the site closely for the next few weeks. Keep an eye on Search Console and the user list. A new admin account or a file you didn’t change means something was missed.
Close the gap you found, then work through the rest of the hardening. Our guide to keeping hackers out of a WordPress site covers the updates and login settings that stop a repeat. The maintenance checklist sets out how often each job needs doing.
How much does a hacked site clean-up cost?
We clean hacked WordPress sites from S$1,500 (A$1,500 plus GST in Australia) if the site isn’t on one of our plans. It’s included on our WordPress care plans, along with the daily backups and security fixes that make it less likely to happen again. On a care plan, the clean-up includes requesting Google’s review once the site is clean.
Written by
Shaan Nicol
Shaan founded Chillybin and runs it from Brisbane and Singapore, where he lived for 25 years. He led WordCamp Singapore 2019, co-organises the WordPress Singapore Meetup, and was Online Manager at EMI Music.
View all posts