How to Prevent Re-infection After Restoring From Backup
-
Assume the root cause still exists until proven otherwise:
-
Vulnerable plugin/theme
-
Stolen admin credentials
-
Insecure file permissions
-
-
Immediately update:
-
WordPress core
-
Plugins and themes
-
-
Remove unused components:
-
Deactivate and delete unused plugins/themes.
-
-
Rotate all passwords:
-
WordPress admin
-
Hosting control panel
-
FTP/SSH (if applicable)
-
Database users
-
-
Check admin users:
-
Remove unknown accounts.
-
-
Scan files:
-
Look for recently modified suspicious PHP files.
-
-
Turn on protections:
-
Enable 2FA where available.
-
Add security plugins (as appropriate) and keep them updated.
-
-
Monitor:
-
Watch for redirects, spam pages, new admin users, or unusual traffic spikes.
-