HOTP is a counter-based one-time password algorithm that generates a code from a shared secret and an incrementing counter. It stays valid until used or invalidated, which makes synchronisation the main operational challenge and makes replay protection essential after verification.
Expanded Definition
HOTP, or HMAC-based One-Time Password, is a counter-driven authentication mechanism that produces a one-time code from a shared secret and a moving counter. In NHI and IAM workflows, it is used less as a standalone identity and more as an authenticator primitive, typically paired with a broader access control or enrollment process. Its security depends on two things working together: the secrecy of the key and the correct handling of counter state.
Compared with time-based OTPs, HOTP does not expire on a clock boundary. That makes it useful in offline or delayed-verification scenarios, but it also creates state-management risk because both sides must remain roughly in sync. Definitions vary across vendors on whether HOTP belongs in the same operational bucket as MFA, but the standards basis is clear in RFC 4226, which defines the algorithm and validation model.
For NHI governance, the important distinction is that HOTP secures a login step, not the lifecycle of the identity that uses it. The most common misapplication is treating a verified HOTP as proof of durable trust, which occurs when organisations do not pair it with replay detection, counter resynchronisation rules, and credential rotation discipline.
Examples and Use Cases
Implementing HOTP rigorously often introduces counter drift and recovery overhead, requiring organisations to weigh resilience in disconnected environments against the cost of synchronisation controls and support processes.
- A field technician authenticates to a maintenance portal with a hardware token that generates HOTP codes when network time cannot be trusted.
- A legacy VPN or remote access gateway uses HOTP as a second factor for human users where TOTP support is unavailable.
- A machine operator provisioning workflow uses HOTP for step-up verification before releasing a sensitive service-account action, though the surrounding approval path still matters more than the code itself.
- An incident response team reviews suspicious login attempts after a service account token was reused, then compares that event against guidance in the Schneider Electric credentials breach to understand how credential misuse escalates.
- Security engineers map HOTP enrollment and validation to NIST Cybersecurity Framework 2.0 identity and access outcomes when designing recovery and monitoring controls.
In practice, HOTP is most useful when user or device connectivity is unreliable, but it becomes operationally fragile if help desks lack a safe way to resynchronise counters without weakening verification.
Why It Matters in NHI Security
HOTP matters because it can strengthen authentication while still leaving the underlying non-human credential ecosystem exposed. A one-time code does not reduce secret sprawl, excessive privilege, or poor offboarding practices. NHIMG reports that 96% of organisations store secrets outside secrets managers in vulnerable locations, and 71% do not rotate NHIs within recommended time frames. Those conditions matter because an attacker who reaches the shared secret or the account behind the code can bypass the intended protection even when the HOTP step itself is functioning correctly.
For NHI programs, HOTP should be treated as one control in a larger chain that includes secret storage, replay handling, rotation, and revocation. This is why the Ultimate Guide to NHIs is relevant: it frames authentication as part of lifecycle governance, not as a standalone fix. HOTP also sits alongside broader identity assurance expectations described in frameworks like NIST Cybersecurity Framework 2.0.
Organisations typically encounter the operational limits of HOTP only after a secret is exposed, a device is lost, or a counter desynchronises during recovery, at which point the term becomes operationally unavoidable to address.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST SP 800-63 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 | HOTP relies on secret handling, replay resistance, and lifecycle controls. |
| NIST SP 800-63 | AAL2 | HOTP is commonly used as an OTP authenticator in multi-factor assurance paths. |
| NIST CSF 2.0 | PR.AA-01 | Authentication controls must verify identity before granting access to resources. |
Protect HOTP secrets, validate one-time use, and rotate or revoke the underlying NHI promptly.
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on June 7, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org