Premium hosting, support and maintenance for Australian businesses

Insights & resources

Why Hacked Websites Get Reinfected (and How to Break the Cycle)

A grey-haired businessman in a suit sits at a desk, thinking as he looks at his laptop

If your website keeps getting hacked, the clean-up almost certainly removed the symptoms but not the cause. Attackers usually leave a backdoor or a hidden admin account, and the hole they first came through is often still open. Breaking the cycle means finding all three, changing every password, and then keeping the site patched and watched.

Key takeaways

  • Sucuri found backdoors on 49% of compromised sites and rogue admin users in 55% of infected WordPress databases.
  • A clean-up that deletes the visible malware but skips those is likely to fail within days.
  • The usual root causes are an unpatched plugin, a stolen password, an infected computer or another site in the same hosting account.
  • Change every password after the site is clean, not only when you find the hack.

Why does my website keep getting hacked after it’s cleaned?

Because most clean-ups treat the hack as a mess to tidy up, not a break-in to investigate. The spam pages, redirects or warnings you can see are what the attacker built once inside. They aren’t how the attacker got in, or how they plan to get back.

Reinfection is common and fast. Google’s own guidance cites a study that found “20% of hacked sites are hacked again within one day” (web.dev). If you’re on your second or third clean-up, the problem is almost always one of the causes below.

If you’re dealing with a fresh hack right now, start with our first-hour guide for a WordPress site hacked today, then come back here.

What are the seven reasons hacks come back?

1. A backdoor was left behind

A backdoor is a small piece of code that lets the attacker back in without a password. It’s often disguised as a normal WordPress file or tucked inside a plugin folder. Sucuri found at least one backdoor on 49% of the compromised sites it cleaned (Sucuri, 2023 report).

WordPress.org warns that the reinstall button in the dashboard often only overwrites existing files, while “hacks often introduce new files” (WordPress.org). An extra file survives a reinstall untouched.

2. A hidden admin account is still there

Sucuri found malicious admin users in 55% of infected WordPress databases. Some are obvious. Others use names like “support” or copy a real staff member’s name. In our experience, some are recreated by hidden code each time they’re deleted.

3. The original hole is still open

Most WordPress hacks start with a known flaw in a plugin or theme. Patchstack recorded 11,334 new WordPress vulnerabilities in 2025, 91% of them in plugins. Heavily targeted flaws were mass-exploited within a median of five hours, and 46% had no fix available when they were disclosed (Patchstack). If the vulnerable plugin is still installed, the attacker can simply walk back in.

4. Passwords weren’t all changed, or were changed too early

WordPress.org lists every access point that needs a new password: FTP or SFTP, the WordPress admin, your hosting control panel and the database. It also says to change them again after the site is clean. A password changed while malware is still on the site can simply be captured again.

A man in a white shirt rests his head on his hand while looking at a laptop in an office
Every access point needs a new password once the site is clean Photo: Pexels

5. Your own computer is infected

Sometimes the leak isn’t the website at all. WordPress.org notes that attacks often begin on the owner’s computer, with trojans that capture FTP and admin logins. Run a full malware scan on every device used to manage the site.

6. Another site in the same account reinfects it

An old test site, a forgotten staging copy or a second business’s site in the same hosting account can share file access. In our experience, this is one of the most overlooked causes. If one site is infected and the others aren’t cleaned, the malware crosses back over.

7. The backup you restored was already infected

Google’s clean-up guide says to “check that your backup was created before your site was hacked” (web.dev). Infections often sit quietly for weeks before anyone notices. Restoring last week’s backup can restore the backdoor too.

How do I break the reinfection cycle?

A lasting fix follows the same order every time. Skipping a step is what lets the hack return.

  1. Keep a copy of the infected site. It’s evidence, and it helps you find what changed.
  2. Find the entry point. Check server logs, recent plugin changes and known vulnerabilities. Google calls fixing the vulnerability “an essential final step”.
  3. Remove every infected file and backdoor. Replace WordPress core, themes and plugins with fresh copies from trusted sources, rather than reinstalling over the top.
  4. Clean the database and user list. Delete unknown admin accounts and remove injected scripts and spam links.
  5. Clean every site in the account. Delete anything you no longer use.
  6. Change all passwords, then reset WordPress’s security keys. New security keys in wp-config.php log everyone out, including the attacker.
  7. Patch and protect. Update or remove the vulnerable plugin, add a firewall and two-factor login, and turn on daily scanning.

This is the work a proper hacked website repair should include. If a quote only mentions “malware removal”, ask how the entry point will be found and closed. Our website hacked recovery guide covers getting off Google’s blocklist once the site is clean.

Close-up of a person's hands on a laptop keyboard at a wooden table, with a coffee cup behind
A lasting fix follows the same order every time Photo: Pexels

Does my hosting make reinfection more likely?

It can. WordPress.org advises checking with your host, because a hack “may have affected more than just your site, especially if you are using shared hosting”. Accounts that aren’t isolated from each other, old PHP versions and no server firewall all make reinfection easier.

Secure web hosting adds account isolation, a server-level firewall and malware scanning, which help to stop an attacker coming back through a neighbour or a known exploit. Online stores carry extra risk; our guide on a WooCommerce hacked store covers card skimmers and what to tell customers.

Why do we charge more to protect a site that’s already hacked?

Every Maintain & Protect plan starts with a one-off security audit and lockdown: $120, $240 or $360 + GST, depending on the plan. If the site is already compromised, that setup fee doubles, to $240, $480 or $720 + GST.

The reason is simple. Locking down a clean site is a checklist. Taking on a compromised one means the full clean-up above first: finding backdoors, rogue users and the entry point before we can stand behind it. Once a site is clean and on a plan, our “hack-free or we fix it free” promise applies.

That’s a fair trade for most owners on their third clean-up. Our website maintenance plans then keep it patched, scanned and backed up every month.

Frequently asked questions

How do I know if my site still has a backdoor?

You often can’t tell by looking. Signs include admin users you didn’t create, files with recent dates you can’t explain and malware returning days after a clean-up. A file-by-file comparison against clean WordPress, theme and plugin copies is the reliable check.

Will restoring a backup fix a hacked site?

Only if the backup was made before the hack, and only if you then close the hole the attacker used. Otherwise you restore the same weakness, or the infection itself, and the site is hacked again.

Is it the host’s fault my site keeps getting hacked?

Sometimes, but usually not. Most WordPress hacks come through outdated plugins or stolen passwords. Poor account isolation on shared hosting can let an infection spread between sites, though, so it’s worth asking your host how accounts are separated.

Should I rebuild the site from scratch instead?

A rebuild is rarely needed. Replacing core, theme and plugin files with fresh copies and cleaning the database gets the same result for much less. A rebuild makes sense when the site is old, unsupported or due for a redesign anyway.

How long after a clean-up can a site be hacked again?

Very quickly if the cause is still there. A study cited by Google found 20% of hacked sites were hacked again within a day. That’s why the entry point and backdoors matter more than the visible malware.

Sources

  1. 2023 Hacked Website and Malware Threat Report, Sucuri, June 2024
  2. Fix the Japanese keywords hack, web.dev (Google)
  3. Clean and maintain your site, web.dev (Google)
  4. FAQ My site was hacked, WordPress.org, updated 26 July 2026
  5. State of WordPress Security in 2026, Patchstack

Want us to look after this for you?

Hosting, updates, backups and security, handled by an Australian team, so you can get back to running your business.