Hacked WordPress Site? A Step-by-Step Recovery Checklist

If your WordPress site has been hacked, the recovery steps are: contain the damage, back up the hacked site, change every password, clean the infection, close the security hole, update everything, then ask Google to remove any warnings. This checklist walks through each step in order.
Take a breath first. Thousands of websites are compromised every day, and almost all of them recover fully. What matters is doing the steps in the right order so the hacker doesn't simply walk back in.
Need help right now? Call 250-448-4949 (Okanagan) or 604-957-9741 (Vancouver & Fraser Valley). Malware cleanup starts at $300. See website security.
Signs you have a hacked WordPress site
- Google or your browser shows a "This site may be hacked" or "Deceptive site ahead" warning
- Visitors (often only on mobile, or only from Google) get redirected to spam or scam sites
- Pages, posts or admin users appear that you didn't create
- Google search results show spammy titles or Japanese/pharma keywords for your site
- Your host suspends your account or warns about malware
- You can't log in, or your password was changed
- Your site suddenly slows down or sends spam email
Step 1: Stay calm and contain the damage
- Don't delete the site or start removing random files. You'll lose evidence and possibly your content.
- If the site is sending visitors to malicious pages, consider putting it into maintenance mode temporarily.
- Tell your host. Many hosts can help, and some will have already detected the problem.
Step 2: Back up the hacked site
Take a full backup of the files and database as they are now. It feels odd to back up a hacked site, but if the cleanup goes wrong you'll need the content, and it helps you investigate how they got in.
Step 3: Change every password
Change them all, from a clean computer:
- All WordPress administrator accounts (and remove any you don't recognize)
- Hosting / cPanel account
- Database password (then update it in wp-config.php)
- FTP / SFTP accounts
- Email accounts connected to the site
Also generate new WordPress security keys and salts in wp-config.php. This logs everyone out, including the attacker.
Step 4: Find and remove the infection
- Replace WordPress core files with fresh copies from wordpress.org (keep wp-config.php and wp-content).
- Reinstall plugins and themes from their official sources rather than trying to clean them line by line. Delete any you don't use.
- Check wp-content/uploads for PHP files. Uploads should contain images and documents, not code.
- Check the database for injected scripts in posts, options and widget content, and for unknown admin users.
- Look for backdoors: recently modified files, files with odd names, and obfuscated code (long strings using base64_decode or eval).
- Scan with a reputable malware scanner, and scan your own computer too.
If you have a clean backup from before the hack, restoring it can be faster. Just make sure it's truly clean, then do steps 3 and 5 so the same hole isn't left open.
Step 5: Close the hole they used
Most WordPress hacks come through:
- An outdated plugin or theme with a known vulnerability
- Weak or reused passwords
- Nulled (pirated) themes or plugins with hidden backdoors
- Abandoned plugins that no longer receive security updates
- Poorly secured shared hosting
Update WordPress, every plugin and every theme, replace anything abandoned or pirated, and turn on two-factor authentication for all admins.
Step 6: Clean up Google
- Open Google Search Console and check Security issues. Once the site is clean, click Request review and describe what you fixed.
- Remove spam URLs that Google indexed (they should return 404 or 410 now), and submit a fresh sitemap.
- If your site was flagged by other services (antivirus vendors, your host), request their reviews too.
Review requests are usually processed within a few days.
Step 7: Harden WordPress so it doesn't happen again
- Keep everything updated, weekly
- Remove unused plugins and themes
- Strong, unique passwords and two-factor authentication
- A web application firewall
- Limit login attempts and change the default login URL
- Daily off-site backups you've tested restoring
- File-change and malware monitoring with alerts
Our WordPress security guide covers each of these in more detail.
When to call a professional
Call for help if the site keeps getting reinfected, if it handles payments or customer data, if you can't find the source, or if your business can't afford the site being down. A professional cleanup usually takes a few hours, and you'll get a report of what was found and fixed.
At Deon Designs, malware cleanup starts at $300, and our care plans from $47 a month include the updates, firewall, scanning and backups that prevent most hacks in the first place.
The bottom line
A hacked WordPress site is fixable. Back up, change every password, clean or replace infected files, close the hole, ask Google for a review and harden the site. Then keep it maintained, because nearly every hack we clean up started with something that wasn't updated.




