HOTP
Cheat sheet · https://pcornel.dk/topic.php?topic=4488
Answer
The authenticator computes HMAC over its counter and advances; the verifier searches a bounded look-ahead window, accepts one matching counter, advances beyond it and prevents reuse of earlier values.
Remember
- HOTP ≠ time-based TOTP.
- Counter window ≠ unlimited resynchronization.
- Valid future code ≠ all skipped codes should remain valid.
- One-time counter value ≠ phishing-resistant or transaction-bound proof.
First checks
oathtool --hotp -b <secret> -c <counter>— HOTP code- Counter resync procedure — look-ahead window
- Token inventory — hardware tokens
Verify in this order
secret + counter → HMAC → code
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 → HOTP proof map
| Boundary | Establish | Does not establish |
|---|---|---|
| Identity and scope | Stable subject/account/resource mapping, owner, lifecycle state and expected action | Does not prove credential control or effective access |
| Policy and ceremony | Effective entitlement or authenticator/verifier policy plus all fallback paths | Configuration presence does not prove enforcement or assurance |
| Outcome | Allowed, denied, failure, expiry/revoke and target read-back tests correlated with telemetry | One success does not prove every interface, session or downstream target |
| Closure | Original end-to-end action retested; residual access/risk, owner and review trigger recorded | Administrative 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=4488