Time-based one-time password is a code generation method that combines a shared secret with the current time to produce a temporary login code. It is common in authenticator apps and reduces replay risk, but it still relies on shared-secret trust and careful clock synchronisation.
Expanded Definition
TOTP is a short-lived authentication code generated from a shared secret and a moving time factor, usually in 30-second steps. It is widely used in authenticator apps and hardware tokens, but it is not a full identity system and it does not remove the need for strong secret protection.
In NHI and IAM operations, TOTP is best understood as an additional possession factor that can reduce replay risk when compared with static passwords alone. Its strength depends on two things that are easy to overlook: the secrecy of the enrolled seed and the reliability of clock synchronisation on both the verifier and the device. The NIST Cybersecurity Framework 2.0 reinforces that authentication should be part of a broader control set covering access, resilience, and recovery, not treated as a standalone safeguard.
Guidance varies across vendors on whether TOTP should be treated as strong MFA in high-risk environments, because phishing resistance and device binding are limited compared with modern authenticators. The most common misapplication is assuming TOTP protects privileged workflows when the shared secret is copied into poorly governed endpoint, CI/CD, or help-desk recovery paths.
Examples and Use Cases
Implementing TOTP rigorously often introduces enrolment and recovery overhead, requiring organisations to weigh user convenience against stronger assurance and tighter secret handling.
- Protecting administrator portal logins where a password alone is insufficient, but the organisation has not yet moved to phishing-resistant methods.
- Adding step-up authentication for sensitive actions such as secret rotation, policy changes, or vault access approvals.
- Using TOTP for emergency access accounts while a stronger authentication path is being rolled out across production systems.
- Supporting workforce access in environments where device binding is not yet available, but recovery procedures and backup codes are tightly governed.
These patterns are common in environments still maturing their identity controls. For example, the Schneider Electric credentials breach is a reminder that credential compromise often becomes visible only after attackers have already leveraged trust relationships and weak recovery paths. TOTP can reduce some replay scenarios, but it does not solve social engineering, seed theft, or session hijacking. Where organisations need a standards anchor, NIST Cybersecurity Framework 2.0 is a useful reference point for pairing authentication with monitoring and incident response.
Why It Matters in NHI Security
TOTP matters because many non-human and privileged workflows inherit human-style authentication habits without the same tolerance for failure. If a TOTP seed is stored alongside application secrets, embedded in code, or exposed through a recovery channel, the factor becomes only as strong as the weakest surrounding control. That is why NHI governance should treat TOTP as one layer in a broader program that includes secret inventory, rotation, and privileged access controls.
NHIMG research shows that 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, which makes any shared-secret-based mechanism a potential blast-radius multiplier when governance is weak. The same pattern appears in real incidents such as the Schneider Electric credentials breach, where credential misuse highlights how quickly access can be extended once trust material is exposed. For broader identity governance, the NIST Cybersecurity Framework 2.0 remains a practical baseline for access control and recovery planning.
Organisations typically encounter the operational limits of TOTP only after a seed is lost, cloned, or bypassed during an account takeover, at which point recovery and revocation become 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.
NIST SP 800-63, NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-63 | AAL2 | TOTP is commonly used as an authenticator at AAL2, with limits on phishing resistance. |
| NIST CSF 2.0 | PR.AC-7 | Covers identity verification and authentication processes that TOTP supports. |
| NIST Zero Trust (SP 800-207) | SP 800-207 | Zero Trust requires strong, continuous verification beyond a one-time code. |
Use TOTP as one factor only where AAL2 is acceptable and pair it with recovery and lifecycle controls.
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on May 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org