Minimum Password Strength

Overview

When Require a minimum strength is on, a new password has to reach at least the level you choose on the password strength meter: Weak, Medium or Strong. The plugin rates a password by estimating how many guesses an attacker would need to find it, so it can reject passwords that pass the length and complexity rules but are still easy to guess. At Medium or Strong, that includes Summer2024!.

A new policy starts with the rule on, at Medium. Policies saved before the rule was added keep it off until you turn it on, so updating the plugin does not start rejecting passwords on an existing policy.

Enabling the Rule

  1. Navigate to Settings → Login Security.
  2. Open the Policy tab. (PRO) Open the Policies tab and click the policy’s name.
  3. Turn on the Require a minimum strength card.
  4. Choose the Lowest strength allowed: Weak, Medium (the default) or Strong.
  5. Click Save.

Very weak is not offered, because requiring it would reject nothing. To stop checking strength, turn the rule off.

What the Levels Mean

The plugin uses the same method as the strength meter WordPress shows on its own screens (zxcvbn 4.4.1), and the same labels. It looks for the patterns people use to build passwords and estimates how many guesses each one would take:

  • common passwords and common words, including variants with capital letters or with letters swapped for digits and symbols, such as p4ssw0rd
  • first names, surnames and words from film and TV
  • keyboard patterns such as qwerty or 1q2w3e4r, and sequences such as abcdef or 123456
  • repeated characters, dates and years
  • the user’s own username, email address and display name, and the site name

A password scores the level its estimated number of guesses falls into:

| Level | Estimated guesses | | ——— | ——————————- | | Very weak | Fewer than about 1 million | | Weak | About 1 million to 100 million | | Medium | About 100 million to 10 billion | | Strong | About 10 billion or more |

Some examples, for an account with the username jsmith:

| Password | Level | Why | | ———————- | ——— | ————————————————————– | | password | Very weak | One of the most common passwords. | | Password1! | Very weak | A common password with a capital letter, a digit and a symbol. | | jsmith2024 | Very weak | The username followed by a year. | | Summer2024! | Weak | A common word, a recent year and a symbol. | | Gx7#pLq2 | Weak | Random, but only eight characters long. | | kitten-orbit | Medium | Two unrelated words. | | k9$Vw2!qZr | Medium | Random and ten characters long. | | mango tractor violin | Strong | Three unrelated words. |

Length and unpredictability count for more than character types. Several unrelated words make a strong password that is also easy to remember, while a short password with every character type can still be weak.

Medium suits most sites. Weak only rejects the most predictable passwords, such as common passwords and the user’s own name, and accepts passwords like Summer2024!. Strong asks for at least 11 random characters, or usually three or more unrelated words.

How the Rule Is Enforced

The rule is checked on the server whenever a password is set, on every screen and form the plugin covers, with the same estimator the meter uses in the browser, so the server and the meter agree. The one exception is a form that creates an account, where the first or last name contains HTML markup with attributes, such as a link: there the meter can rate the password a little differently, and the rating the server gives is the one that counts. A password below the minimum is rejected with a message that says what made it easy to guess, when the estimator can tell, and names the level required. The password hint also lists the requirement, in the form: must have a strength of at least “Medium”.

The rule applies whether or not the password strength meter is shown: turning the meter off, or using a form that shows no meter, does not turn the rule off.

Existing Passwords

Like the other rules, the minimum strength is also checked when a user logs in. Once you enable the rule, or raise the level, users whose current password is rated below the minimum are asked to change it the next time they log in. While the policy is active, the Require a minimum strength card shows a notice saying so. See Password Expiration Enforcement.

When Strength Cannot Be Checked

The word lists and keyboard patterns the rule needs ship inside the plugin. If the site cannot read them, because of an incomplete installation, file permissions or an open_basedir restriction, the rule cannot rate any password. Until the file is restored, usually by reinstalling the plugin:

  • A new password someone chooses is rejected with a message saying its strength could not be checked. That includes a new registration and a password an administrator sets for another user.
  • A password set from a reset link the user was sent is accepted without a strength check, so that a user who needs a new password is never stuck. The policy’s other rules still apply to it.
  • Signing in is not affected.

The Password strength can be checked Site Health test reports this as critical while the plugin settings are valid and a policy that applies to someone enables the rule. While the settings are invalid it reports good without reading the data, so fix the settings first. See Site Health Check.