TL;DR: Backup MFA codes are static, one-time recovery credentials that keep users from being locked out when their primary MFA device is lost, deleted, or unavailable, according to WorkOS. The governance issue is not the fallback itself but the recovery-state trust model, which can become the weakest link if codes are stored or managed casually.
At a glance
What this is: This is a practitioner guide to backup MFA codes, with the key finding that recovery codes are a secure fallback only when their storage and use are tightly controlled.
Why it matters: It matters because recovery paths sit inside human IAM, but the same trust and lifecycle questions also apply when organisations govern NHI secrets, service accounts, and delegated access.
By the numbers:
- Backup codes are usually 8 to 12 characters long, combining digits and letters in ways that make brute-force attacks virtually impossible.
- Most services generate a list of 5 to 10 backup codes during MFA setup.
👉 Read WorkOS's guide to backup MFA codes and account recovery
Context
Backup MFA codes are a fallback authentication method for users who lose access to their primary second factor. They are static, one-time recovery credentials that bypass the usual MFA device challenge, which makes the recovery path itself part of the identity control surface.
For IAM teams, the lesson is broader than user lockout recovery. Any identity programme that depends on a separate fallback credential, whether for people, service accounts, or administrative access, has to govern that credential with the same discipline as the primary factor. Recovery is not outside the security model, it is part of it.
Key questions
Q: How should security teams handle backup MFA codes safely?
A: Treat backup MFA codes as sensitive recovery credentials, not convenience notes. Store them only in approved secure locations, limit reissue rights, and revoke old sets when a user regenerates them. The recovery path should be monitored, documented, and tested like any other identity control so that fallback access does not become the easiest way in.
Q: When do backup MFA codes create more risk than they reduce?
A: They become risky when users store them in email, screenshots, shared drives, or other easy-to-copy places. They also raise risk when help desk processes can reissue them without strong identity proofing. In those cases, the fallback path can undercut the assurance that MFA was meant to provide.
Q: What do teams get wrong about account recovery and MFA?
A: They often treat recovery as a support workflow instead of a security control. That mistake leads to weak reissue checks, poor storage guidance, and no visibility into when recovery credentials are regenerated or exposed. Recovery should be governed with the same seriousness as login, because it is part of the authentication system.
Q: How do backup codes compare with device-based MFA for resilience?
A: Backup codes improve resilience because they do not depend on a single device, but they shift the trust burden to secret custody. Device-based MFA anchors assurance in possession of a token or phone, while backup codes rely on careful storage and limited reuse. Strong programmes use both, but govern the recovery path more tightly.
Technical breakdown
How backup MFA codes work as a recovery factor
Backup MFA codes are pre-generated one-time credentials issued during MFA enrollment. They sit outside the normal authenticator flow, so a user can recover access when a phone, app, or token is unavailable. Because they are static until used or regenerated, they create a separate authentication path that must still be protected by the primary username and password. The security value comes from randomness, single-use enforcement, and limiting the number of valid codes at any given time. The operational risk comes from treating them like convenience text instead of authentication material.
Practical implication: treat recovery codes as privileged identity artefacts and manage their issuance, storage, and revocation explicitly.
Why backup codes create a recovery-state trust problem
Backup codes solve availability, but they also create a recovery-state trust problem. The organisation is effectively saying that if the primary MFA factor disappears, a different static secret can stand in for it. That shifts the security question from everyday login protection to fallback credential custody. If codes are copied into email, screenshots, or shared documents, the control boundary breaks. The real issue is not whether the code format is strong, but whether the recovery path is governed with enough discipline to prevent unauthorised use.
Practical implication: define where backup codes may be stored, who can reissue them, and how loss or exposure is detected.
Backup codes, reset flows, and account recovery controls
Backup codes are one piece of a wider account recovery design. Organisations often combine them with password resets, identity proofing, device re-enrolment, or help desk verification. Each added recovery step can lower lockout risk, but each also introduces another trust decision and another opportunity for social engineering. The architectural question is whether the recovery flow preserves the same assurance level as the original MFA setup. If recovery is easier to abuse than login is to attack, the organisation has moved the problem rather than solved it.
Practical implication: review account recovery as a complete control path, not as a user-support afterthought.
Breaches seen in the wild
- MongoBleed breach — MongoBleed exposed secrets across 87K MongoDB servers.
- IOS app secrets leakage report — iOS apps leaking hardcoded secrets and credentials endangering user privacy.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Backup MFA codes expose the recovery-state trust gap in human identity programmes: These codes are not merely a convenience feature, they are a separate authentication path with its own custody and abuse risk. The control fails when organisations assume that MFA recovery is a low-risk administrative detail rather than a governed identity state. The practical conclusion is that recovery deserves the same policy attention as primary authentication.
Static fallback credentials are a lifecycle problem as much as an authentication problem: Once issued, backup codes persist until used or regenerated, which means they can outlive the conditions that justified them. That makes storage location, reissuance, and invalidation part of the identity lifecycle, not just user support. Practitioners should treat recovery artefacts as controlled credentials with explicit ownership and review.
Recovery controls become a governance test when the user cannot prove possession of the usual factor: The real question is not whether backup codes work, but whether the organisation can still maintain assurance when the standard factor is absent. That is where help desk processes, offline storage, and account reset paths either preserve trust or widen the attack surface. Teams should design for recovery without lowering the assurance bar.
Human recovery patterns still matter for NHI governance: The same operational habit of storing fallback secrets loosely, delaying revocation, or over-trusting support channels appears in service account and API key administration. Human MFA recovery is a useful mirror for NHI secret handling because both depend on custody, revocation, and evidence of legitimate use. Practitioners should use the recovery-code model to tighten how all fallback credentials are governed.
From our research:
- Only 1.5 out of 10 organisations are highly confident in their ability to secure NHIs, compared to nearly 1 in 4 for securing human identities, according to The State of Non-Human Identity Security.
- From our research: 85% of organisations lack full visibility into third-party vendors connected via OAuth apps, according to The State of Non-Human Identity Security.
- The same custody gap that weakens human recovery codes also shows up in service account and OAuth governance, which is why practitioners should pair recovery controls with the Ultimate Guide to NHIs , Key Challenges and Risks.
What this signals
Recovery-state governance: teams that still treat backup credentials as support artefacts are already behind the curve. The broader identity trend is toward tighter control of every fallback path, because attackers do not distinguish between primary authentication and recovery authentication when one of them is easier to abuse.
Only 1.5 out of 10 organisations are highly confident in securing NHIs, according to The State of Non-Human Identity Security, and that confidence gap is a warning sign for any programme that still handles fallback secrets informally. The same habits that weaken human recovery controls can undermine service account custody, rotation, and offboarding if they are left outside formal governance.
For practitioners
- Inventory recovery credentials separately Track backup MFA codes as distinct authentication artefacts, not as a side note in the primary MFA record. Include issue date, reissue date, storage location policy, and revocation state so the recovery path is auditable.
- Restrict where codes may be stored Permit only secure password managers or approved offline custody methods. Ban screenshots, inbox storage, shared documents, and ticket comments because those channels turn a fallback factor into an exposure event.
- Bind account recovery to assurance levels Require identity proofing or step-up verification before reissuing recovery codes, especially for privileged users. The goal is to keep the recovery path from becoming easier to abuse than the original MFA flow.
- Review help desk recovery scripts Test whether support teams can distinguish legitimate lockout from social engineering. Use scenario drills that include lost devices, deleted authenticator apps, and requests for code regeneration.
- Apply the same fallback discipline to NHI secrets Use the recovery-code model to challenge how service account passwords, API keys, and certificates are stored, rotated, and revoked. If a fallback secret can be copied or reused indefinitely, it needs tighter lifecycle control.
Key takeaways
- Backup MFA codes are a separate authentication path, so they need separate governance, storage rules, and revocation discipline.
- The main risk is not code strength but recovery-state custody, especially when codes are copied into insecure channels or reissued too freely.
- The recovery-code model is a useful lens for NHI governance because fallback secrets in machine identity programmes fail for the same reason: weak lifecycle control.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-63, NIST Zero Trust (SP 800-207) and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-63 | Backup codes are an account recovery mechanism tied to identity assurance. | |
| NIST Zero Trust (SP 800-207) | PR.AC-4 | Recovery access is still access and must be governed as such. |
| NIST CSF 2.0 | PR.AC-1 | Recovery credentials are an access control issue, not a support-only issue. |
Align recovery flows with NIST 800-63 assurance expectations and require strong reissue checks.
Key terms
- Backup Mfa Codes: Backup MFA codes are one-time recovery credentials issued when a user enrolls in multi-factor authentication. They allow access when the primary factor is unavailable, but they must be stored and governed like any other sensitive credential because they can bypass the normal second-factor prompt.
- Recovery State: Recovery state is the condition where an identity must use an alternate path to prove legitimacy because the normal authentication factor is missing or unusable. It is a security state, not a support convenience, and it should have clear ownership, storage rules, and revocation logic.
- Fallback Credential Custody: Fallback credential custody is the set of controls around who can hold, view, store, regenerate, and revoke backup secrets used for account access. It matters because a recovery credential is often more portable than the primary factor, so weak custody can undo strong MFA design.
Deepen your knowledge
Backup MFA codes, recovery-state governance, and fallback credential handling are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are tightening recovery controls for people today and machine identities tomorrow, it is a practical place to start.
This post draws on content published by WorkOS: How backup MFA codes work and why they matter for MFA recovery. Read the original.
Published by the NHIMG editorial team on 2025-07-24.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org