Wordpress Escape

Home / Guide

Incident

WordPress Hacked - What to Do

If you're reading this with a defaced homepage, skip the shame. Patch first. Then decide whether you want to live on a CMS that gets exploited for a living.

2 min read 3 sections Built to rank
On this page
  1. Do this in the first hour
  2. Why it happened
  3. The durable fix
  4. Frequently asked questions
Quick answer

If WordPress is hacked: take it offline, snapshot, rotate every password and key, restore from a clean backup, scan for webshells, and patch. Then leave WordPress. A static Hugo site has no wp-admin, no plugins, no PHP. That's how you stop the next hack. Wordpress Escape migrates you off after the fire is out.

01

Do this in the first hour

  1. Put the site in maintenance / block PHP if you can.
  2. Snapshot files + database before you 'clean' anything.
  3. Rotate host, FTP, WP admin, and every plugin API key. Use the ESC'dashboard env locker later so keys aren't in wp-config.
  4. Restore from a backup from before the intrusion, then update core/plugins on a staging copy - or don't go back to WordPress at all.
02

Why it happened

Nulled plugins, old PHP, wp-login exposed, phpunit eval-stdin in a vendor folder - the same junk that shows up in Search Console as exploit queries. WordPress is a magnet. Static HTML is not. See WordPress security problems.

03

The durable fix

Migrate to Hugo, delete the install, host on Cloudflare. No wp-admin to brute force. We did this on our own family of sites after a real incident. Ditch WordPress when the bleeding stops.

Not a malware cleaner

We're the 'don't get owned again' layer. Scan when the site loads; we'll tell you if WordPress is still live.

If the compromise dates from late October 2026, check your PHP version before you rebuild - php2shell (CVE-2026-109618) is exploitable without any login or plugin, so a clean reinstall on unpatched PHP stays exploitable.

Frequently asked questions

What do I do if my WordPress site is hacked?

Isolate, snapshot, rotate credentials, restore clean, then get off WordPress so PHP/plugins aren't waiting for the next CVE.

Will migrating off WordPress remove malware?

A clean static rebuild from known-good content does. Don't copy infected PHP. We mirror HTML, not the exploit.

How fast can I leave after a hack?

As soon as you have a crawlable site or a backup. Scan for a page count and track.

Scan my site free

After you're stable - scan the URL

Scan your URL free - 60 seconds, no login. SEO, Performance, Responsive grades, then a done-for-you escape if you want it.

Scan my site free
Keep reading
All guides32
Related searcheswordpress hacked what to dowordpress malwarewordpress compromised