Join our Newsletter — 33% off our NHI Course
Home› Glossary› Authentication, Authorisation & Trust› One-Time Code (OTC)
Authentication, Authorisation & Trust

One-Time Code (OTC)

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

One-Time Code (OTC) is a short-lived authentication code used once to verify a login, transaction, or recovery step. It is usually delivered by SMS, email, an authenticator app, or a hardware token, and is distinct from a reusable password because the code expires after single use or a brief time window.

What One-Time Codes are designed to do

One-time codes are a short-lived proof of possession used to complete a login, approve a transaction, or recover access when a system needs a second step beyond a password. Their security value comes from ephemerality, not memorability.

Because the code is supposed to work only once and only briefly, it narrows the time window for abuse. That makes it useful for step-up verification, but it also means the surrounding delivery channel and entry flow matter as much as the code itself.

How one-time codes are delivered and used

OTCs are commonly delivered by SMS, email, authenticator apps, or hardware tokens. Those channels create different trust assumptions: SMS and email depend on mailbox or phone security, while app- and token-based codes depend on the device or seed material staying protected.

In practice, the code is usually entered into a browser or app after the user claims an account action. That flow is simple for users, but any attacker who can intercept the message, coerce a resend, or race the victim during the validity window can still succeed.

For a deeper look at delivery-channel trade-offs and fraud patterns, see OTP security and the related guidance on authenticator apps and OTPs.

Why one-time codes are weaker than many teams assume

One-time codes are not automatically phishing-resistant. A code can be real, current, and still be stolen through relay phishing, message interception, session hijacking, or user deception. The weakness is usually not the code format alone, but the fact that the verifier often accepts the code without binding it strongly to the origin of the request.

That is why teams often treat OTCs as a step-up factor rather than a high-assurance factor. They are better than a static password, but they remain vulnerable to man-in-the-middle flows, social engineering, and recovery abuse if the surrounding process is weak.

When the code is delivered by email or SMS, the overall assurance inherits the security of those channels. Where the goal is stronger authentication, the safer direction is usually to prefer phishing-resistant methods and use one-time codes only where the risk profile accepts them.

Where one-time codes fit in authentication architecture

OTCs are best understood as a controlled bridge between a low-friction user experience and a stronger verification event. They are often used for enrollment, transaction confirmation, account recovery, or legacy MFA support where passkeys or hardware-backed authenticators are not yet available.

That makes them operationally useful, but also easy to overuse. If a system relies on one-time codes for routine access, the organisation should assume it is accepting a narrower security margin than with phishing-resistant authenticators, especially for high-value accounts or recovery paths.

For broader policy and rollout context, MFA Guide explains where OTPs sit among other authentication options, and why organisations often phase them out in favor of stronger factors for sensitive use cases.

Risk and Threat Considerations

One-time codes are attractive to attackers because they are time-bounded but often still human-readable and easy to replay within the valid window. The main security issue is not code creation, it is code interception, relay, or abuse of the recovery workflow that accepts it.

Failure mechanism: An attacker phishes the code in real time, diverts a delivery channel such as SMS or email, or tricks the user into revealing the code during a support or recovery interaction.

Impact: The attacker can complete account takeover, approve an unauthorised transaction, or reset access in a way that bypasses the victim’s password and other weak controls.

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, OWASP ASVS, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-63Digital Identity GuidelinesDefines authenticator assurance and phishing-resistant authentication for one-time code use.
Recommendation — Prefer phishing-resistant authenticators over SMS or email codes for higher-risk authentication flows.
OWASP ASVSV6 — AuthenticationCovers authentication strength, one-time codes, and verifier behaviour for login flows.
Recommendation — Verify that one-time codes are time-limited, single-use, and protected against relay or replay.
CIS Controls v8CIS-6 — Access Control ManagementApplies to managing authentication paths and reducing exposure from weak access mechanisms.
Recommendation — Remove or restrict one-time code methods where stronger authentication is available for the same use case.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementDirectly addresses issuance, lifecycle, and protection of authenticators including one-time codes.
IA-2 — Identification and Authentication (Organizational Users)Covers user authentication flows where one-time codes are used for access decisions.
Recommendation — Manage one-time code authenticators with clear issuance, expiry, and revocation controls. Use one-time codes only within a broader authentication design that matches user risk and access sensitivity.

Practitioner Guidance

Why practitioners should care: OTCs are often treated as “good enough” because they are temporary, but the short lifetime does not stop relay attacks, SIM swap abuse, email compromise, or social engineering. The real decision is whether the code is being used in a low-risk step-up flow or as a substitute for stronger authentication.

Practitioner note: A one-time code is only as strong as the channel and verification process around it, so recovery and resend paths deserve the same scrutiny as primary login.

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 October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org