← Back to blog

Web Development

WordPress Site Hacked Again After Cleanup? Why It Keeps Coming Back

red padlock on black computer keyboard

If your WordPress site was hacked, you cleaned it, and a few days later the hack was back, you’re not unlucky. Some malware is built to survive a cleanup. In October 2026 security firm Sucuri described one that hides in at least eight places at once, including the database and the server’s memory, and rebuilds itself from whichever copy is left.

The good news: it can be removed for good. It just takes a cleanup that looks everywhere, followed by closing the hole the attacker came in through.

Free check: does your site show signs of a hack?

Takes about 10 seconds. We only look at what's public: DNS, email records and your homepage. No logins, nothing changed.

Why a hack comes back

Most cleanups delete the bad files you can see: a strange plugin, an odd file in the theme folder. Modern malware expects that.

The backdoor Sucuri named “SC” is a good example of how far this goes. It keeps copies of itself in:

Every copy can restore the others. Delete the plugin, and a file puts it back. Delete the files, and the next visitor’s page load restores them from the database or memory. Sucuri called it “a circular system with no single point you can remove to stop it.”

It also creates a hidden administrator account and hides itself from your plugin list and update checks, so from inside WordPress everything can look normal.

The cleanup isn't finished until the door is closed

Even a perfect cleanup fails if the way in is still open: an outdated plugin, a weak password, an old admin account you forgot about. Attackers come back through the same door. Finding and closing it is half the job.

Signs your site is still hacked

Some of these only show for certain visitors, so not seeing anything yourself doesn’t mean the site is clean.

How to get rid of it for good

  1. Back up first, even though the site is infected. If something goes wrong during the cleanup, you need a way back.
  2. Change every password: WordPress admins, hosting, FTP or SFTP, the database, and email. Use new, long passwords, and log everyone out.
  3. Clean everywhere, not just the obvious files: the site folders, the database, scheduled tasks, and the special WordPress files (like db.php and advanced-cache.php in wp-content). Replace WordPress itself, your theme and your plugins with fresh copies from the official source.
  4. Restart PHP on the server, so any copy held in memory is gone. Your host can do this if you can’t.
  5. Delete what you don’t use: old plugins, old themes, and any admin accounts that aren’t needed.
  6. Close the way in: update everything, remove the plugin or theme that had the hole, and turn on two-factor login for every admin.
  7. Watch it for a few weeks. Check the users list and Google’s search results again. If anything comes back, something was missed.

Sometimes rebuilding is faster

If a site has been reinfected several times, is years out of date, or nobody knows what half the plugins do, rebuilding it cleanly from your content can be quicker and safer than hunting every last copy. It also leaves you with a site that’s easier to keep secure.

What not to do

If you’d like help, that’s what we do. The quick check above is free, and so is a proper look: we’ll tell you whether the hack is still there, how it got in, and whether a cleanup or a rebuild makes more sense for your site.

Frequently asked questions

Why does my WordPress site keep getting hacked after I clean it?

Usually for one of two reasons. Either the malware left copies of itself that the cleanup missed (in other files, the database or the server's memory) and rebuilt itself, or the way the attacker got in, such as an outdated plugin or a weak password, was never closed. A lasting fix needs both: a cleanup that looks everywhere and closing the hole.

How do I know if my WordPress site is still hacked?

Look for admin users you didn't create, visitors redirected to other sites, spam pages when you search site:yourdomain.com in Google, security warnings, a suddenly slow site, or security plugins switched off. Some hacks only show to certain visitors, so not seeing anything yourself doesn't prove the site is clean.

Will a security plugin remove the malware?

Not always. Some malware, like the SC backdoor Sucuri described in October 2026, hides from WordPress itself and keeps copies in the database and the server's memory, where a plugin scan inside WordPress may not reach. A full cleanup checks the server, the database and the files directly.

Should I restore a backup of my hacked site?

Only from before the hack, and only after closing the way the attacker got in. A backup taken after the infection brings the malware straight back, and an open hole lets them back in even if the backup is clean.

Is it better to clean up or rebuild a hacked WordPress site?

If the site has been reinfected more than once, is years out of date, or is full of plugins nobody understands, a clean rebuild from your content is often faster and safer. For a recent, well-kept site, a thorough cleanup is usually enough.

Related reading: WordPress flaw under attack: is your site on 7.1.4? is the update to do today. Urgent PHP security update: is your website safe? covers this autumn’s other big WordPress risk. And what to do when your web host goes down explains why a backup you control matters.

Sources: The Hacker News: WordPress backdoor rebuilds itself (1 October 2026), reporting Sucuri’s research · Daily Security Review. Last checked 3 November 2026.

LY

LYVTech

AI Development & Automation · LYVTech

LYVTech builds autonomous AI systems, automations, and high-performance digital products for growing businesses. We write about making technology that actually ships.