WordPress admin accounts, passwords, and two-factor authentication
A plain-language guide to account hygiene on a WordPress site: administrator names, unique passwords, two-factor authentication, and least-privilege roles, drawn from WordPress's own documentation.
Closing a leftover login page is only part of the job. The accounts that can actually sign in still need to be handled with care. This guide is about those accounts, not about whether /wp-login.php or /xmlrpc.php is visible from the internet.
WordPress's brute-force guidance starts with the obvious: attackers repeatedly try username and password combinations until one works, often with automated, distributed tools. The advice that follows is about making those guesses less useful. [1]
Passwords, usernames, and roles
WordPress recommends strong, unique passwords or passphrases, and a password manager, and it warns against dictionary words and personal information. It also says not to use the username "admin." Create a separate administrator account and demote or remove leftover users. Limit how many administrator accounts you keep, and use least-privilege roles for day-to-day work. [1]
The hardening guide makes a similar point about easily guessed administrator names such as "admin" or "webmaster," while also saying that security through obscurity is generally an unsound primary strategy. Renaming an account can help. It is not a substitute for a unique password and a second factor. [2]
A related habit is to remove accounts you no longer need: a former contractor, a plugin support login, or a second administrator created "just in case." WordPress's least-privilege advice is aimed at exactly that clutter. [1]
Two-factor authentication is not built into WordPress core
WordPress recommends enabling two-factor authentication for all administrator accounts, using a plugin or an identity provider. As of the 2026 update to that document, "WordPress core does not ship 2FA"; it must be added. The same page mentions passkeys, via a maintained plugin, as another option for phishing-resistant sign-in, and it recommends enrolling more than one authenticator for an administrator. [1]
If you add 2FA, test it on a second administrator account first so you are not locked out. Keep backup codes somewhere that is not the same inbox you use for the site.
Application passwords, introduced in WordPress 5.6, are a separate tool for trusted apps and can be revoked without changing the user's main password. They are for integrations, not a replacement for 2FA on human logins. [1]
What this does not replace
WordPress is clear that obscuring the login URL can reduce noise but should not be your only defense. Rate-limiting, a CAPTCHA or similar challenge, and keeping core, themes, and plugins up to date are listed among the other key defenses. HTTPS is recommended so passwords are not sent in the clear. [1]
None of this makes a stolen session or a backdoored plugin go away. It does remove some of the easiest guesses: the username "admin," a reused password, and a single-factor login on an account that can install plugins.
What to do this week
- List every user with the Administrator role. Remove or demote the ones you do not need. [1]
- Make sure none of them is still called "admin." [1][2]
- Put every remaining administrator on a unique password and on 2FA, using a plugin or your identity provider. [1]
- Turn on HTTPS if it is not already required for the login page, as WordPress recommends. [1]
Shared mailboxes and shared passwords are a common small-business shortcut. If three people log in as the same administrator, you cannot tell who changed a plugin, and you cannot revoke one person's access without changing the password for everyone. WordPress's advice to limit administrator accounts and use lesser roles for day-to-day work is aimed at that pattern. Give a bookkeeper or a blog editor the role they need, not a spare administrator login. [1]
After a contractor's project ends, remove their account the same week, and review any remaining application passwords that may have been issued for a migration tool or a reporting app. Those can be revoked without changing the human user's password, which is the point of the feature WordPress added in 5.6. [1] Then look at the Users list one more time for an "admin" or "webmaster" account that was created at install and never renamed. [2]
Our take
Most small-business WordPress sites still have one or two administrator accounts that were created on setup day and never reviewed. The official documentation is unusually practical here: unique passwords, no "admin" username, 2FA from a plugin, and fewer administrators than you think you need.
A scan cannot see your passwords or who has 2FA, but it can show whether your login page is public. It is free and passive, for sites you own or are authorized to check.
Sources
- WordPress.org, "Brute Force Attacks," last updated October 14, 2026, https://developer.wordpress.org/advanced-administration/security/brute-force/.
- WordPress.org, "Hardening WordPress," last updated October 14, 2026, https://developer.wordpress.org/advanced-administration/security/hardening/.
See what a scan sees on your site
A free Surface Scan takes a few minutes: a grade, the openings visible from outside, and a private report link by email.
If you already have a report and want a closer look, a Deep Scan goes further than the free Surface Scan. You can start one from your report when you are ready. See pricing
Sources
- WordPress.org, “Brute Force Attacks”, WordPress Developer Resources, October 14, 2026.developer.wordpress.org · accessed November 29, 2026
- WordPress.org, “Hardening WordPress”, WordPress Developer Resources, October 14, 2026.developer.wordpress.org · accessed November 29, 2026
Summarized in our own words; any quoted text is short and marked. Spotted an error or want a correction? Tell us.