Join our Newsletter — 33% off our NHI Course
Authentication, Authorisation & Trust

OATH-HOTP

← Back to Glossary
By NHI Mgmt Group Updated November 2, 2026 Domain: Authentication, Authorisation & Trust

OATH-HOTP is an event-based one-time password standard. It generates a short-lived code from a shared secret and a moving counter, so each successful use advances the counter and the next code differs. It is used for MFA tokens, with validation depending on counter synchronisation and protection of the shared secret.

How OATH-HOTP works

OATH-HOTP is a counter-based one-time password scheme, so each code is derived from a shared secret plus a moving counter rather than from the current time. That makes it simple and reliable in offline or low-connectivity settings, but it also means both sides must stay in sync for the next code to validate.

The counter is the core of the security model. When a token generates a code, the verifier advances its own expectation of the counter value, which is why the same code cannot normally be reused. In practice, this creates a narrow validation window and makes resynchronisation logic important when a user presses the button extra times or a device falls out of step.

Why the shared secret matters

HOTP depends on a secret that is shared between the token and the verifier. If that secret is exposed, copied, or enrolled on another device without control, an attacker can generate valid codes outside the intended session. The strength of the scheme therefore depends as much on secret handling as on the algorithm itself.

Because the secret is long-lived, it should be treated as sensitive authentication material rather than a casual setup value. If provisioning is weak, the risk shifts from the one-time code format to the lifecycle of the secret that makes every future code possible.

Where HOTP fits in MFA

HOTP is usually used as one factor in multi-factor authentication, alongside a password or another primary authenticator. It is most useful when a stable, counter-driven token is preferred over a time-synchronised code, but it still requires a trustworthy enrolment path and a verifier that can track state accurately.

Authenticator Apps and OTP Guide covers HOTP alongside TOTP, seed storage, app migration, hardware OATH tokens, and common OTP weaknesses. That broader context helps explain when HOTP is a good fit and where its operational limits begin.

Operational trade-offs and failure modes

HOTP reduces dependence on wall-clock time, but it introduces state management. If the counter drifts too far, legitimate users can be locked out until the system resynchronises. If the resync process is too permissive, it can enlarge the acceptance window and weaken assurance.

HOTP also inherits the usual OTP limitations of any shared-secret token: phishing, real-time relay, token cloning, and poor recovery processes can still undermine the control. The code may be short-lived, but the trust relationship behind it is only as strong as the surrounding enrollment, storage, and reset processes.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, NIST SP 800-63 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementHOTP relies on managed authenticators, shared secrets, and lifecycle controls.
IA-9 — Service Identification and AuthenticationThe verifier and token authenticate using a shared secret and one-time code.
Recommendation — Manage HOTP secrets, reset rules, and authenticator lifecycle under IA-5. Use IA-9 where HOTP protects system-to-system or device authentication flows.
NIST SP 800-63Digital Identity GuidelinesThe standard covers authenticator binding, verifier requirements, and OTP assurance concepts.
Recommendation — Apply the digital identity guidance to enrolment, validation, and authenticator assurance decisions.
OWASP ASVSV6 — AuthenticationHOTP is an authentication mechanism with enrolment, verification, and replay-resistance concerns.
V7 — Session ManagementSuccessful HOTP validation often gates session creation and session assurance.
Recommendation — Validate HOTP enrolment, verifier behaviour, and one-time code handling under V6. Tie HOTP success to secure session establishment and renewal under V7.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 2, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org