Skip to content
support@hexweb.net
Gen. Skobelev 24, Kazanlak, Bulgaria, EU

WordPress Site Hacked? Here’s What to Do Next

Laptop screen broken into glitched colour lines, the kind of first sign owners see of a WordPress site hacked

Finding your WordPress site hacked is the kind of morning nobody plans for, and the instinct is to panic and start clicking things. Don’t. The order you do things in matters more than the speed, because the wrong first move can make the cleanup harder or wipe out evidence you’d want later. Here’s the actual sequence, not the panicked version.

WordPress site hacked: the first hour

1. Take the site offline, don’t delete anything. Put it in maintenance mode or point it to a “we’re working on it” holding page if your host allows that quickly. Don’t start deleting files or plugins yet — you might delete evidence of how the attacker got in, which matters for step 4.

2. Change every password that touches the site. WordPress admin accounts, hosting account, database, FTP/SFTP, and any email account connected to the domain. Do this from a device you’re reasonably confident isn’t itself compromised. If the attacker still has an active session or an unknown admin account, a password change alone won’t fully lock them out — that’s step 3.

3. Check for unfamiliar admin users and unknown files. Go through your list of WordPress admin accounts and remove any you don’t recognize. Also check for new files in your uploads folder, unfamiliar plugins you didn’t install, and modified core files. WordPress.org publishes an official walkthrough of exactly this process (My site was hacked, WordPress.org Support), and it’s worth following closely rather than from memory, because attackers often leave more than one way back in.

4. Note what you can about how it happened, before you clean it. An outdated plugin, a weak password, a compromised email account — whatever you can figure out matters for step 6, so it doesn’t just happen again in a month. This is also where not deleting anything in step 1 pays off.

What “hacked” usually looks like

Not every hack announces itself with a defaced homepage. A WordPress site hacked by an automated bot more often shows up as something quieter: strange pages showing up in Google search results that you never created, a spike in outbound email that gets your domain blacklisted, unfamiliar redirects for some visitors but not others, or your host emailing you about unusual server activity before you’ve noticed anything yourself. Search engines sometimes flag it before you do — a “this site may be hacked” warning in search results is often the first real signal, and by then it’s usually been sitting there for a while.

Getting the site actually clean

5. Restore from a backup taken before the compromise, if you have one you trust. This is usually faster and more reliable than trying to manually clean an infected site file by file, especially if you’re not certain you’ve found everything. If your most recent clean backup is old, you’ll lose whatever changed since then — which is its own argument for backups that are actually tested regularly, not just scheduled.

6. If there’s no clean backup, a manual clean needs to check everything, not just the obvious signs. Core files, every plugin, every theme file, the database for injected content or a hidden admin account, and any scheduled tasks (cron jobs) the attacker might have added to keep coming back. This is the point where getting outside help earns its cost — a rushed manual clean that misses one backdoor means doing this whole process again in a few weeks.

7. Scan before you bring it back online, not just after. A malware scanner run once you think it’s clean, and again a few days later, catches the reinfections that a same-day scan misses.

Stopping it from happening again

Most hacks trace back to one of a small number of causes: an outdated plugin or theme with a known vulnerability, a weak or reused password, or a compromised account with access to the site. We cover the plain-language basics of closing these off in small business website security, and the more general version of what tends to go wrong on a WordPress site — not just security incidents — is in what actually breaks on a WordPress site.

Once the site is clean, the actual prevention work is unglamorous and repetitive: updates applied promptly, unique passwords, two-factor authentication on every admin account, and a firewall watching for the same attack pattern trying again. That’s most of what wordpress maintenance plans exist to do on an ongoing basis, precisely because “clean it once” and “keep it clean” are different jobs.

What this costs, honestly

If you’re not on a maintenance plan already, an emergency cleanup is usually billed separately and costs more than it would have to simply prevent the same incident with ongoing monitoring. Our own care plans start at Basic Care €100 (~$115) a month, running up to Partner Care €450 (~$520) a month for faster response and more included development time. None of that undoes a hack that’s already happened, but it’s the honest comparison to have in mind once yours is cleaned up.

Questions worth asking once it’s over

  1. Do we actually know how the attacker got in, or did we just clean the symptoms?
  2. Is there now a backup we’d trust for a repeat of this, tested, not just scheduled?
  3. Who’s actually watching for the same thing happening again, and how would we know?
  4. Are all admin accounts on unique passwords with two-factor authentication turned on?

If any of those answers are “not sure,” that’s the gap that let this happen the first time, and it’s still open.

The short version

A WordPress site hacked today is fixable, usually without permanent damage, if you work through it in order: contain it, lock it down, find out what happened, clean it properly, then close the door it came through. The panic doesn’t help. The order does.

If you want a plain read on whether your current setup would actually catch this before it became an emergency, ask us for a free website audit and we’ll tell you what we find.

If nobody's looking after your site, hand it off.

Our Website as a Service model handles upkeep, security, and improvements for a predictable monthly fee — so you never have to think about it.

See how WaaS works
Svetoslav Kodzhamanov
Svetoslav Kodzhamanov

Svetoslav Kodzhamanov is the founder of Hexweb, a WordPress web design and development studio he started in 2018 as a solo venture and has since grown into a small team of designers and developers. He has personally led close to 500 WordPress projects for businesses and agencies across North America and Europe, focused on fast, conversion-driven websites built to last. He works with clients worldwide and speaks English, German, Bulgarian and Russian.

Connect on LinkedIn

One useful email, every other week.

Short, practical web and growth tips for business owners. No spam, unsubscribe anytime.