WordPress Gets Hacked Again After Cleanup: Where the Backdoor Hides
If infection returns, something still gives the attacker access. Look beyond the visible files.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Why it returns
Cleaning the visible damage does not close the way in. Typical leftovers:
- Backdoor files in uploads, themes,
mu-pluginsor hidden folders. - Rogue admin users or changed user roles.
- Unpatched plugin or theme that was the original entry point.
- Stolen passwords (WordPress, hosting, FTP, database, email) that were not reset.
- Other sites in the same account that are also infected and reinfect each other.
- Scheduled tasks that re-download malware.
Do
- Work through After a Security Incident: What to Reset (Passwords, Two-Factor, Keys).
- Replace WordPress core, plugins and themes with fresh copies. See Found Strange PHP Files in wp-content/uploads: Is Your Site Hacked? and Check the mu-plugins Folder: Where Malware Can Hide From the Plugin List.
- Review users, cron events and database options.
- Clean every site in the account.
- Monitor changes after cleanup.
Related guides
- Your Website Shows a Warning in Chrome: Deceptive Site Ahead or Dangerous
- WordPress Login Page Keeps Reloading or Redirecting (Can't Log In)
- WordPress User Roles Explained: Administrator, Editor, Author, Contributor, Subscriber
- Unknown Administrator Users Appeared in WordPress: What to Do
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.