Operations and security 4 min read Updated
Two-factor sign-in for admin accounts
In short
Require a second factor for every admin account, prefer phishing-resistant methods, and keep recovery from becoming a way around MFA.
A stolen admin password can change prices, read customer data and deploy code. A second factor is therefore not an optional extra: it must protect every admin account. Start by choosing the factor, because not every factor resists phishing equally.
A password alone is not enough
NCSC guidance for administrators says that a password alone is not enough to protect sensitive data in online services, because the network boundary no longer acts as a second factor. Any multi-factor authentication beats a password alone, but phishing-resistant methods are preferred. The guidance recommends strong MFA for every user who accesses sensitive data, and it describes three common anti-patterns:
- legacy protocols that accept a password alone, so the stronger rule can be bypassed elsewhere;
- accounts excluded from MFA, which are often the accounts with the most access. The one exception described is a heavily monitored break-glass account;
- rigid time-based re-authentication, which adds little security and can train users to enter their credentials without thinking.
How the password itself is stored is a separate question, covered in storing passwords correctly.
Choose the factor, not just the feature
Factor types differ in how well they resist phishing. The table sums up the guidance from OWASP and NIST:
| Factor | What the guidance says |
|---|---|
| Authenticator app (TOTP) | A standards-based option to offer. OWASP advises against proprietary variants, and RFC 6238 suggests a 30-second time step. |
| Push notification | Use number matching, rate-limit the prompts and watch for bursts of prompts. |
| SMS or voice | OWASP advises against it for high-value or personal-data applications. It also notes that NIST SP 800-63B classes it as restricted. |
| Hardware security key | Phishing-resistant, because the private key never leaves the token. Costly and heavy to administer. |
| Passkey | Phishing-resistant when the server checks the user-verification flag. A touch that only confirms presence is not a second factor. |
The formal requirements are in NIST SP 800-63B. At AAL2, authentication must use either a multi-factor authenticator or two separate factors, and the verifier must offer at least one phishing-resistant option. Passwords, look-up secrets, out-of-band authenticators and one-time codes are not phishing-resistant. It also sets maximum timeouts for AAL2: 24 hours for reauthentication and one hour of inactivity. These are upper limits, so the NCSC warning against rigid re-authentication still applies.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
Design recovery without a bypass
Recovery must restore access without creating a way around MFA. OWASP says the recovery route must not give an attacker a way to bypass MFA. NIST SP 800-63B sets rules for saved recovery codes. Among them:
- a saved recovery code includes at least 64 bits from an approved random bit generator;
- it is stored in hashed form, and each code works only once, after which a new one is issued;
- requesting a replacement triggers a recovery notification;
- issued codes sent by text message or voice are valid for 10 minutes, and codes sent by email for 24 hours.
NIST requires that every account recovery notifies the subscriber. OWASP suggests that the notice describes the attempt, including the time, browser and location. After a failed second factor, offer another MFA method rather than leaving the user at a dead end. Limits on sign-in attempts belong to the same design; see Rate limiting that protects forms and logins.
Protect factor changes with re-authentication
Changing an authenticator is a high-risk action. OWASP recommends requiring re-authentication with a factor that is already enrolled, rather than relying on the active session alone. For high-value accounts it suggests delays or step-up checks. NIST requires that a new authenticator is added at the highest assurance level already available on the account, or at the level the new authenticator will be used for, whichever is lower. It also requires the subscriber to be notified through a mechanism independent of the transaction.
A checklist for the admin area
- Require a second factor for every account with admin rights, with no exceptions except a heavily monitored break-glass account.
- Offer at least one phishing-resistant method, and at least one backup method.
- Switch off legacy sign-in routes that accept a password alone.
- Issue single-use recovery codes at enrolment, store them hashed, and notify the account holder on every recovery.
- Require re-authentication before a factor is changed or removed.
- Log failed second-factor attempts with the time, browser and location, and review them.
This is not legal advice. The requirements quoted come from NIST SP 800-63B and from the OWASP and NCSC pages listed for this article. The checklist reflects general engineering practice.
Common questions
- Which second factor should an admin account use?
- Offer at least one phishing-resistant method, such as a hardware security key or a passkey that requires user verification. A standards-based authenticator app can be offered as well, while OWASP advises against SMS for high-value accounts.
- Can recovery codes be stored as plain text?
- No. NIST requires saved recovery codes to be stored in hashed form, using an approved one-way function, and each code must work only once.
- Is a session timeout the same as re-authentication?
- No. The NCSC warns that rigid time-based re-authentication adds little security. Re-authenticate when the risk changes, for example before a high-risk action or after a suspected breach.
Sources
- SP 800-63B Digital Identity Guidelines, NIST. Accessed 24 November 2026
- Multifactor Authentication Cheat Sheet, OWASP Cheat Sheet Series. Accessed 24 November 2026
- Avoiding multi-factor authentication anti-patterns, NCSC. Accessed 24 November 2026
Further reading
-
Storing passwords correctly in PHP
Store passwords with password_hash() using PASSWORD_DEFAULT or Argon2id, check them with password_verify(), and rehash older hashes at the next login.
-
A password policy that users can follow
Set a minimum length, allow long passwords, block known weak choices, and change passwords only when there is a sign of compromise.
-
AI features in production: reliability and safety
A convincing prompt in a demo is easy; running an LLM feature in production means treating model outputs as untrusted data, scoping inputs strictly and capping cost and agency.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea