Use it when configuring, checking or troubleshooting HOTP in Authentication.
HOTP
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.
secret + counter → HMAC → code
Context & applicabilityCommon mistakes · platform/version boundaries
A valid HOTP shows access to a seed-generated value within the accepted counter range, but it does not show user intent, origin, secure resynchronization or independence from phishing relay.
Suspicious evidence: Large search window, counter rollback, replay accepted, race-driven double use, shared seed, unauthenticated resync, unlimited guesses or device reset without identity assurance.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
unique shared seed + counter → HMAC/truncation → submitted HOTP → bounded counter search → atomic accept/advance → replay rejection → resynchronize/revoke
Healthy evidence: Counters advance atomically, accepted values cannot replay, look-ahead is bounded, resynchronization is controlled, seeds are unique/protected and parallel attempts cannot double-accept.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
oathtool --hotp -b <secret> -c <counter>— HOTP code- Counter resync procedure — look-ahead window
- Token inventory — hardware tokens
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A valid HOTP shows access to a seed-generated value within the accepted counter range, but it does not show user intent, origin, secure resynchronization or independence from phishing relay.
In depth
HOTP (HMAC-based One-Time Password, RFC 4226) generates codes from a shared secret and a counter that increments each time a code is generated. The server tracks the counter and accepts codes within a look-ahead window to tolerate unused codes.
| HOTP | TOTP | |
|---|---|---|
| Moving factor | Counter | Time |
| Code validity | Until used (or counter moves past) | Short time window |
| Synchronisation issue | Counter drift | Clock drift |
HOTP is used in some hardware tokens (e.g. YubiKey OTP modes); TOTP is more common in apps. Both are relayable by phishing proxies, unlike FIDO2.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Authentication → HOTP. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://pages.nist.gov/800-63-4/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Authentication → HOTP proof map
Fast identity, policy/ceremony, outcome and closure evidence boundaries for Authentication → HOTP.
| 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 |