Store Armory
← WordPress help & business guides
WordPress repair

My WordPress Site Was Hacked: What to Do First (Emergency Checklist)

A calm first-response checklist for a hacked WordPress site: contain the damage, preserve evidence, and start the clean-up the right way.

Published November 21, 2026 · Store Armory Editorial

You just realised your WordPress site is hacked. The first hour matters — but the biggest mistakes happen in that hour, from panic. This is a calm first-response checklist: what to do, and just as importantly, what not to do, before you start the full clean-up.

First, don’t do these

  • Don’t delete files at random — you can break the site or destroy evidence of how you were attacked.
  • Don’t immediately restore an old backup over the infection — if the entry point is still open, you’ll just get reinfected.
  • Don’t ignore it and hope — a compromised site can send spam, host malware and get your domain blacklisted within hours.

The first-response checklist

  1. Take a full backup, as-is. Files plus database. This preserves the evidence and gives you a safe copy to work from.
  2. Change your passwords. WordPress admin, hosting/cPanel, FTP/SFTP and the database. Use new, strong, unique passwords.
  3. Put the site in maintenance mode if it’s serving malware or spam to visitors, so you stop the damage while you work.
  4. Tell your host. Many hosts can confirm the infection, check server logs and help isolate it — and they’d rather you reach out than get suspended.
  5. Confirm and map the infection. Run a read-only scan to see what’s actually wrong before you change anything.

For that last step, Forvault Security (free on WordPress.org) checks core-file integrity, scans every PHP file for web-shell indicators and detects changed files — all read-only, so it never alters your evidence. See how to scan WordPress for malware for free for the details.

Then clean it properly

Once you know what you’re dealing with, work through the full process: reinstall clean core, replace infected plugins and themes, remove backdoors and rogue admins, then re-scan and harden. The complete walkthrough is in how to clean a hacked WordPress site.

If this is urgent and you’d rather have an expert handle it immediately, we offer a done-for-you malware cleanup.

After the clean-up: prevent the next one

  • Keep core, plugins and themes updated; delete anything unused.
  • Enable two-factor authentication on admin accounts.
  • Take a clean file baseline and re-check it regularly, so the next change is caught in hours.
  • Consider monitoring that alerts you the moment a critical file changes or a new admin appears.

Frequently asked questions

Should I take my site offline when it’s hacked?

If it’s actively harming visitors (malware, redirects, spam), yes — maintenance mode protects visitors and your reputation while you clean. If the damage is contained, you can usually work with it online.

Will changing passwords remove the malware?

No. It closes one door, but malware already on the server stays until you remove it. Change passwords and clean the files.

Is Forvault Security free?

Yes. The scan, core integrity check and baseline are all free on WordPress.org, with no trial limits.

Start with a scan

Install Forvault Security free from WordPress.org →

Keep reading

Tell us what you need

Describe the problem or the project. We will discuss the scope and provide a quote before work starts.

We use these details to respond to your enquiry. Do not send passwords or confidential access details. Privacy