Skip to content

Lesson 9 of 9 · 22m

Running MFA in Production: Telemetry, Abuse, and Change Control

The metrics, logs, alerts, and operational guardrails that keep authentication changes safe after launch day is over.

Authentication systems do not end at deployment. They live in support queues, anomaly dashboards, compliance reviews, incident bridges, and the occasional 3 a.m. message saying nobody can sign in. Treat MFA as a production service with its own telemetry and change control.

Measure the ceremony, not just login success

Track step-level outcomes separately:

  • Challenge issued
  • Ceremony cancelled by user
  • Browser or platform unsupported
  • Challenge expired or replayed
  • Origin or RP hash mismatch
  • Signature validation failed
  • Credential unknown or revoked
  • Authentication completed

Aggregating all of those as 'login failure' hides the difference between a user cancelling, a bot probing, and a catastrophic deployment mistake. Retain enough metadata to debug: credential ID hash, authenticator type, client family, and failure code — not secrets.

Alert on shifts, not only thresholds

A static threshold catches obvious abuse, but migrations and product changes are often visible first as a distribution shift. Watch sudden increases in fallback use, recovery initiation, unsupported-client errors, challenge reuse attempts, or validation failures concentrated in one browser or geography.

warning: passkey ceremony cancellation up 3x week over week
critical: webauthn validation failure rate > 20% for 10 minutes
critical: recovery completions spike outside baseline
investigate: one user agent family accounts for most origin mismatches

Authentication changes need safer deploy discipline

Configuration changes to relying party ID, allowed origins, session policy, challenge TTL, and factor enforcement should be versioned, reviewed, and reversible. A typo in an allowed origin list can lock out every user, and a bad enforcement change can do the same with more confidence.

Use canary cohorts or internal domains where possible. At minimum, stage the exact public origin configuration and test real browser flows. Unit tests do not catch every platform authenticator behavior.

Incident response is part of authentication design

If credentials or recovery tokens may be exposed, decide what revocation means before the incident. Can you revoke sessions globally? Can you force factor re-verification without locking out legitimate users? Can you distinguish credential theft from endpoint compromise? These are architectural questions, not wiki-page questions.

Field notes

  • Dashboards should separate authentication success from factor enrollment success; both can fail independently.
  • Never log raw TOTP secrets, full backup codes, private keys, or reusable recovery tokens.
  • Keep a break-glass procedure for admins, but make it loud, time-bound, and audited.
  • Review failure codes after every client rollout. Browser authenticator behavior changes faster than most roadmaps.

Was this lesson helpful?

Sign in to rate