News · 13 October 2026

Why a cleaned site gets hacked again: backdoors

Sites that are cleaned and then reinfected a few days later are common, and the usual cause is a backdoor: a file or a piece of code that lets the attacker come back whenever they like.

What the data says.

  • SiteLock's 2025 annual report, which draws on more than 20 million monitored websites, finds that 70.3% of infected sites carry a backdoor, up from 48.9% in 2024 and 45.6% in 2023. It also says that a cleanup without removing the root cause only resets the infection clock.
  • The 2024 Sucuri SiteCheck report, based on 70.8 million public scans, detected 1,176,701 infected sites, among them 422,741 with SEO spam.
  • One Sucuri case study describes the pattern: a site was reinfected over and over because the malicious code was stored in database tables (options and posts), while the files had been cleaned.

The Sucuri figures come from a free public scanner that anyone can point at a site, so the sample is self-selected. Both come from security vendors and do not describe all websites. They do describe what a cleaning job runs into.

What a real cleaning includes, besides deleting the visible malware.

  1. Find the way in and close it: the outdated plugin, the weak password, the exposed file. If you skip this, the next attacker uses it.
  2. Look in all the places: files outside the web root, .htaccess and server config, scheduled tasks (cron), the database tables where options and posts are stored, and the list of users.
  3. Replace, do not repair, every core and plugin file from a clean source, and compare what is left with the original.
  4. Change every credential: admin users, database, hosting panel, FTP/SSH and API keys. Log everyone out.
  5. Watch for two weeks. Reinfection usually shows up in that window; file-change alerts and a scan every day make it visible.

If your site was cleaned and keeps coming back, the cleaning missed something. A short triage finds out what.

Sources:

All news