Hive Manila

We restored a hacked website from a clean backup. It went down again.

A WordPress site was hacked, restored to an earlier date, and hacked again within days. The backup was fine. The attackers simply logged back in. Here is what happened, and what actually fixed it.

Business owner holding a new key while looking at a website login page on his laptop

A client’s WordPress site stopped displaying properly. We took a quick look, and the first signs pointed to the usual suspect: an outdated plugin. That happens a lot, and it’s usually not serious.

So we suggested the simplest fix first. Ask the hosting company to restore the site to an earlier date. It’s a request any owner can send as a support ticket, no developer needed, and it often clears up plugin problems on its own.

The host restored the site. The first two restore dates didn’t work. The third, about four weeks back, did. The site was up again.

The next morning, it was down again.

What we found when we looked properly

This time we went through the server and the WordPress database line by line. It wasn’t a plugin problem. The site had been hacked, and the attackers had been inside for weeks.

Oct 31 to Nov 9 100+ admin logins from around the world Nov 10 First fake plugin uploaded Nov 11 to 13 More tools and a hidden file manager The restores Site rolled back. Password still works. Nov 26 New admin account, site taken down Nov 27 Locked out, cleaned, back online
What the server and database showed, in Manila time. The logs only went back to Oct 31, so it may have started earlier.

Here’s the part that surprised the owner. There was no software bug. The attackers had the real password of an old administrator account, one that hadn’t been used normally in years. They logged in through the normal login page and used WordPress’s own Plugins > Upload and Themes > Upload screens, like any admin would.

We could prove it. The first fake plugin was created at 2:07 PM on Nov 10, the same minute an unknown IP address logged in as that admin and opened the upload screen.

Why the restore didn’t hold

A restore puts the site’s files and database back to an earlier date. It removes what the attackers planted after that date. It does not change the fact that they know a working password.

So after each restore, the site came back clean, with the same admin account and the same password still working. The attackers logged straight back in. In the last two days alone, that one account was used from 7 different IP addresses in different countries. Logins from many unrelated countries usually mean the password is being sold or shared between attackers.

A restore cleans the house. It doesn’t change the locks.

A restore fixes • Files the attackers planted • Fake plugins and themes • Pages they changed A restore does not fix • The password they know • Admin accounts older than the backup • People still logged in
Why the site kept going down after each restore.

What actually fixed it

The order matters. We did it like this:

  1. Saved a full copy of everything first, files and database, in case we needed evidence or had to undo a step.
  2. Locked the compromised admin and the attackers’ own new admin, ended every logged-in session, and closed public sign-up, which had been letting anyone register.
  3. Moved every planted file into quarantine: six fake plugins and themes, a hacker file manager, a copy of the login page under a misspelled name, and rules hidden in ten folders.
  4. Reinstalled WordPress, every plugin and every theme from official copies, and checked WordPress itself against its official checksums.
  5. Blocked PHP from running in the uploads folder, a common hiding place.
  6. Reset every admin password and changed WordPress’s secret keys, which logs everyone out everywhere.
  7. Checked the server for scheduled tasks and SSH keys the attackers could use to come back. There were none.

The site was back online the same morning, and the holes were closed. Step 2 is the one the restore never did.

How the password got out

We can’t know for certain, but it’s almost always one of two things:

  • The password was reused on another website that was later breached, so it’s in a leaked list.
  • The password was saved in a browser on a computer with password-stealing malware. This is now the most common cause of break-ins like this.

That’s why the owner’s checklist starts on their own computer, not the website: scan every device used to log in, change the email password first, turn on two-step login, and use a password manager.

What this means for your site

If your WordPress site starts misbehaving, a restore is still a good first move. Just don’t stop there.

  • Change every admin password before or right after the restore.
  • Look at Users for any admin you don’t recognise. Take away its admin role, but don’t delete it yet; it’s evidence.
  • Change the secret keys so nobody stays logged in.
  • Turn on two-step login for every admin.

Not technical? Start with what to do in the first hour. Doing it yourself? Here are the clean-up steps in order.

If you have terminal access and some patience, here is exactly how we checked this site, with every command, so you can run the same checks on yours.

If you’d rather not, or the site is already down, send it to us. Cleaning up hacked sites is part of our rescue work, and a care plan keeps it from happening in the first place.

Common questions

Will restoring a backup fix a hacked WordPress site?

It removes the files the attackers planted, but not the way they got in. If they logged in with a stolen password, they can log in again after the restore. Change every admin password, end all logged-in sessions and check for new admin accounts before or right after restoring.

How do hackers get into WordPress without a plugin bug?

Often with a real password. Passwords leak when they are reused on other sites, or when malware on someone's computer steals the passwords saved in the browser. The attacker then logs in through the normal login page like any admin.

How do I know if someone else is logged in to my WordPress site?

Check Users for admin accounts you don't recognise, and look at the last login and active sessions if your security plugin shows them. Changing WordPress's secret keys in wp-config.php logs everyone out at once.

Get the Sunday read

One short email a week with our newest insights and case studies. Sunday, 8 AM Manila time.

Site hacked or acting strange?

A short brief, then a written proposal within 1 working day. We talk once the work needs it.