Pcornel
Identity · Authentication

One-Time Password

Cheat sheet · https://pcornel.dk/topic.php?topic=4486

Back to the Topic

Answer

OTP security depends on protected seed or delivery account, freshness state, verifier synchronization, one-use enforcement, retry limits, binding to the intended session and resistance to interception, relay and recovery abuse.

Remember

  • One-time ≠ phishing-resistant.
  • Short-lived code ≠ bound to the legitimate relying party or transaction.
  • Delivered code ≠ cryptographically generated OTP automatically.
  • OTP accepted ≠ possession factor independent of the compromised primary channel.

First checks

  • oathtool --totp -b <secret> — generate TOTP
  • OTP enrolment — users
  • Rate limiting on OTP endpoint — brute-force protection

Verify in this order

seed + counter/time → code → verified

Where it usually breaks

First mismatch in identity lifecycle → authenticator/credential → IdP/federation/session → authorization policy → target resource → audit trail; preserve identity/policy/pre-state before mutation.

Authentication → One-Time Password proof map

BoundaryEstablishDoes not establish
Identity and scopeStable subject/account/resource mapping, owner, lifecycle state and expected actionDoes not prove credential control or effective access
Policy and ceremonyEffective entitlement or authenticator/verifier policy plus all fallback pathsConfiguration presence does not prove enforcement or assurance
OutcomeAllowed, denied, failure, expiry/revoke and target read-back tests correlated with telemetryOne success does not prove every interface, session or downstream target
ClosureOriginal end-to-end action retested; residual access/risk, owner and review trigger recordedAdministrative workflow completion alone is not closure

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4486

Confirmation

Confirm action

Continue?