Lesson 7 of 9 · 24m
Recovery Flows Are Part of the Authentication System
Designing recovery that attackers cannot abuse: delayed recovery, step-up evidence, session invalidation, and support workflows.
If your strongest login is a passkey but your recovery is 'email us and we will reset it,' then email is your real authentication system. Attackers understand this immediately. Recovery design is not an edge case; it is the control plane for every factor you issue.
Classify recovery by what the user still controls
There are three very different situations:
- Lost device, but another enrolled factor exists.
- All devices lost, but the user can prove control through a pre-established recovery path.
- Complete compromise or uncertain identity, where support intervention is required.
Do not collapse these into one generic reset page. The first is routine. The second is exceptional but designed. The third should be slow, manual, and proportionate to account value.
Strong recovery patterns
A delayed recovery flow is often the best compromise. The user requests recovery, receives a clear notice at existing contact points, and must wait hours or days before sensitive factor changes become active. The legitimate user can cancel if the request was malicious. This is far stronger than instant help-desk reset.
recovery requested
-> notify all existing verified channels
-> waiting period with cancel link
-> reauthenticate using surviving evidence
-> replace credentials
-> revoke old sessions and factors as needed
-> notify again with audit detailsFor enterprise accounts, recovery can require organization admin approval. For consumer accounts, backup codes, previously enrolled devices, or recovery contacts may fit better. There is no universal answer; there is only an explicit risk decision.
Recovery must invalidate correctly
When recovery succeeds, rotate what must be rotated. Invalidate sessions, revoke suspicious refresh tokens, remove compromised factors, and keep immutable audit events. If a user recovers after device theft but the stolen device's long-lived session still works, you have recovered nothing.
Support is an attack surface
Write support macros that say what agents may verify and what they may never do. Never accept a selfie, password, TOTP code, or backup code as sufficient proof by itself. Log every support recovery with agent identity, evidence class, ticket reference, and exact factors changed.
Field notes
- Recovery notifications should say what changed and how to reverse it, not merely 'security alert.'
- Recovery links and codes are credentials. Hash them at rest, expire them, and make them single-use.
- Throttle recovery initiation, but remember that denial-of-service against recovery is also abuse.
- The audit trail is part of the product. During incidents you will need it more than the happy-path diagram.
Was this lesson helpful?