After a Security Incident: What to Reset (Passwords, Two-Factor, Keys)
Reset in a safe order, from a clean device, so attackers cannot get back in.
Do this after any hack, malware find or phishing click. Order matters: first clean the place you are typing from.
0. Clean device
Run a malware scan on the computer and phone you use for admin work. Update the browser. Remove unknown browser extensions.
1. Email accounts
Change the password and turn on two-factor sign-in for the email that receives password resets. If the email is lost, everything else is.
2. Hosting and domain accounts
Change the password, and turn on two-factor. At the registrar, check the contact email and the domain lock. See fake renewal emails.
3. Site logins
- Change every administrator password, and remove unknown users. See unknown admins.
- Regenerate two-factor secrets for all admins, because the old secrets may have been copied. See lost 2FA phone.
- Sign out all sessions.
4. Technical secrets
- Change the database password, then update
wp-config.php. - Replace the security keys and salts in
wp-config.php. See wp-config guide. - Change FTP, SFTP and SSH passwords or keys, and delete unused FTP accounts.
- Rotate API keys: payment gateway, email service, analytics, social and CAPTCHA.
5. Then clean and watch
Clean the site, see hacked site first steps, and watch logs and the admin user list for a few weeks.
Keep a record of what you reset and when. A password manager makes unique passwords practical.
Related guides
- 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
- Lost Your Phone or Two-Factor Code for WordPress: How to Get Back In