Now · Action guide

How to change passwords and security keys after a hack

Changing passwords is one of the most useful things you can do, but order matters. Do it from the wrong device, or skip a step, and the attacker can still get back in.

Hacked right now? Call us 0191 580 4040 Mon-Fri, 9am-5:30pm
Not urgent? Contact us

What this usually means

A hack usually involves more than one set of credentials, and attackers often keep a spare. You need to replace all of them, plus the keys WordPress uses to keep people logged in.

  • Hosting account and the email address that controls it
  • FTP, SFTP and SSH logins
  • The database password (also stored in wp-config.php)
  • Every WordPress user, especially administrators
  • Any API keys, payment gateway and SMTP logins used by the site

Step by step

  1. Use a clean device

    Updated, with a password manager, and not shared.

  2. Change in order

    Email and hosting first, then FTP/SSH, then the database, then WordPress users. Use long, unique passwords.

  3. Regenerate the security keys and salts

    Replace the eight lines in wp-config.php with new ones from the official WordPress generator. It logs everyone out, which is the aim.

  4. Replace third-party keys

    Payment, email and API credentials, and remove users you no longer need. Turn on two-factor authentication.

The generator for new keys

Key generator
https://api.wordpress.org/secret-key/1.1/salt/

When to get help

If you aren’t comfortable editing wp-config.php, get help. We’ll arrange secure access, and don’t need you to send a password by email.

Send us the details

Frequently asked questions

Do I need to change every password?

Yes, for anything connected to the site. Attackers often hold more than one set of credentials.

What are salts and keys?

Random strings in wp-config.php that protect login sessions. New ones invalidate every existing login.

Should I use two-factor authentication?

Yes, for hosting, email and WordPress admin. It limits the damage if a password leaks.

Call us Get in touch