Contents
Logging in to WordPress with a password, even a strong one, leaves you open to dictionary attacks using leaked credentials, as well as phishing. Here are the solutions, in order of effectiveness: passkeys (WebAuthn-based access keys that let you log in with your fingerprint or device PIN and are phishing-resistant), two-factor authentication with an app (TOTP), and, as a bare minimum, a strong, unique password from a password manager. In WordPress, both methods can be set up with a plugin in a few minutes. SMS codes are better than nothing, but weaker than an app or passkeys.
Thesis: login attacks aren't "hacking" — they're automated checks of passwords from data leaks
Bots don't guess passwords. They take username–password pairs from billions of leaked records and try them on /wp-login.php every website on the internet. If you use the same password as on some forum back in 2019, the bot will get in, no matter how "strong" that password is. The second vector is phishing: a page posing as a login panel, like the schemes described in the article on scams targeting website owners.
Passkeys solve both problems: there's no password to leak, and the key only works on the real domain.
Three Levels — a Comparison
| Password + manager | 2FA (TOTP / SMS) | Passkeys | |
|---|---|---|---|
| Protects against a password leaked from another service | Yes, if the password is unique | Yes | Yes (there's no password) |
| Protects against phishing | NO | TOTP: partially; SMS: poorly | Yes — the key won't work on a fake domain |
| Protects against phone number hijacking | — | SMS: no | Yes |
| Convenience | The manager fills it in | An extra code at every login | Fingerprint / PIN: faster than a password |
| Setup in WordPress | No plugin | Plug | Plugin (WebAuthn) |
| Risk of locking yourself out | Low | Medium: losing your phone | Medium: losing a device without key backups |
| For whom? | The minimum for everyone | The standard for administrators | The ultimate goal for all accounts with privileges |
Principle: passkeys as the primary method + app-based 2FA as a backup + recovery codes in a safe. The password stays as a last resort, but make it unique and long.
Passkeys — How They Work in Practice
A passkey is a cryptographic key pair: the private key stays on your device (phone, computer, hardware key) and the public key is stored on the website. To log in, the website sends a challenge, and your device signs it after you confirm with biometrics or a PIN. There is no password, so it can't leak; the key is bound to the domain, so a lookalike site gets nothing.
Keys sync through password managers (built-in or third-party), so losing one device doesn't lock you out, as long as syncing is turned on.
In WordPress: WordPress core doesn't support passkeys natively; plugins that support WebAuthn add them to the login screen and user profile. Setup: install → in your profile, click “Add passkey” → confirm on your device → test the login in an incognito window.
2FA: use an app, not SMS
One-time codes from an authenticator app (TOTP) are generated offline on your phone; SMS messages can be intercepted through SIM swapping or call forwarding. Order of preference: app > hardware key > email > SMS.
In WordPress: the official plugin Two Factor (from the WordPress team) or the 2FA module in a security plugin. Setup: profile → 2FA → scan the QR code with an app → save your backup codes.
Implementation: 8 Steps for a Business Website
- Account audit: a list of users with the Administrator and Editor roles. Remove unused accounts; lower permissions wherever you can (roles are covered in a separate article in this series).
- Unique passwords from a password manager for all accounts — before you enable anything else.
- 2FA plugin — mandatory for Administrators and Editors; optional for lower roles.
- Passkeys for administrators — as the primary method.
- Recovery codes — printed out and kept in a safe or password manager. Without them, losing your phone means being locked out.
- Application passwords for integrations (REST API, mobile app, automations) — separate and revocable, instead of the main password.
- Login attempt limiting and IP blocking after several failed attempts — handled by a security plugin.
- Test: login from a new device, recovery with a backup code, integration login with an application password.
Security basics beyond login — in WordPress security guide.
Store: customers and accounts
Forcing 2FA on store customers lowers conversion and generates “I can't log in” tickets. A sensible split:
| Account | Requirement |
|---|---|
| Administrator, Shop Manager | Passkeys or 2FA — mandatory |
| Warehouse / support staff | 2FA mandatory |
| Customers | Optional passkeys (“log in with your fingerprint”) — as a convenience, not a requirement |
| B2B customers with access to price lists | 2FA recommended, agreed in the contract |
Passkeys for customers also mean fewer “I forgot my password” requests — one of the most common tickets for store support.
Common mistakes
- 2FA only for the “main” administrator, while a second admin (a former contractor) has none — an attacker will pick the weaker account.
- Backup codes stored in the same password manager as the password — one compromise unlocks everything.
- Turning off 2FA “just for a moment” during deployments — and never turning it back on.
- Integrations that log in with the administrator's main password instead of an application password.
- No 2FA on your hosting and at your domain registrar — the WordPress dashboard is protected, but access to files and DNS isn't.
That last point is critical: hosting and the domain sit one level above WordPress. Without 2FA there, everything else is just a facade.
From our experience
On all the sites we look after, 2FA for administrators has been mandatory since 2023; we've been rolling out passkeys since 2025 wherever the client uses a password manager that syncs keys. The most common deployment problem isn't technical, it's backup codes that nobody saved.
We set up your login configuration — passkeys, 2FA, application passwords, attempt limits — as part of website administration and security, along with 2FA at your hosting provider and domain registrar.
FAQ: passkeys and 2FA
WordPress core doesn't support passkeys natively; a plugin that implements the WebAuthn standard adds them. After installation, you add a key in your user profile, and you log in by confirming with biometrics or a PIN on your device.
An app. SMS codes can be intercepted through a duplicate SIM card or message forwarding. An app generates codes offline on your phone. Hardware keys and passkeys are even more secure, as they are also resistant to phishing.
Log in with a backup code generated when you enabled 2FA. If you don't have any codes, you can gain access via FTP or the database (by disabling the plugin), which requires hosting access. That's why you should store backup codes in a safe place on the day you set everything up.
Author: Adrian Kamiński — Websky Studio, Poznań. WordPress website security and administration — 2FA required on every administrator account, including at the hosting provider and domain registrar.
Your feedback
Was this article helpful?
One click — it helps me choose future topics.

