Join our Newsletter — 33% off our NHI Course
Home› Guides› D3-OTP One-time Password: What It Hardens and How…
Guide Authentication

D3-OTP One-time Password: What It Hardens and How to Verify It

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 12 November 2026 12 min read
On this page

A password that works only once is worthless to an attacker who steals it after use, but not to one who relays it before. D3-OTP One-time Password is the MITRE D3FEND countermeasure built on that property: D3FEND defines it as a password "valid for only one user authentication", places it in the Harden tactic as a child of Password Rotation (D3-PR), itself under Credential Rotation and Credential Hardening, and models it as a technique that use-limits the Password artefact. This card covers what D3-OTP hardens, which ATT&CK techniques D3FEND relates to it, the HOTP and TOTP mechanics a verifier must get right, how to test it and where it fails. It is written for identity engineers and detection teams. For product and app guidance see the Authenticator Apps and OTP Guide; this card stays on the countermeasure.

Key takeaways

  • D3-OTP is extreme password rotation. D3FEND files it under Password Rotation: each code is a new password that expires after one use, so a code captured after use cannot be replayed.
  • It defeats guessing and reuse, not relay. D3FEND's direct mapping is T1110.001, T1110.002 and T1110.003; NIST SP 800-63B-4 states plainly that OTP authentication is not phishing-resistant.
  • The verifier carries the security. Accept each code once, rate-limit failures and keep the acceptance window tight; RFC 4226 and RFC 6238 set these rules.
  • Delivery and backup codes are the weak points. D3FEND's own considerations name SIM swapping, lost devices, and backup code files stolen or left in a printer spool.
  • Use it as a bridge, not a destination. For privileged users move to phishing-resistant methods; keep OTP where nothing stronger is possible, with tight verifier settings.

D3-OTP at a glance

FieldD3-OTP One-time Password
D3FEND IDD3-OTP
TacticHarden
Parent techniquePassword Rotation (D3-PR), under Credential Rotation (D3-CRO) and Credential Hardening (D3-CH)
Digital artefactPassword (D3FEND: the technique "use-limits" a Password)
SynonymOTP
D3FEND referencesNIST SP 800-63-3 Digital Identity Guidelines; IETF RFC 2289 A One-Time Password System
Main formsPre-issued list (look-up secrets, backup codes), codes sent over SMS or to an app, codes generated by a token or authenticator app (HOTP, TOTP)
Typical implementation pointsIdentity provider second factor, VPN and remote access, privileged access tools, operating system logon modules, account recovery
Main limitationCodes are typed by the user, so a real-time phishing proxy can relay them within their validity window

How it works

D3FEND describes the flow: when a user starts authentication they are asked for a one-time password, often in addition to a traditional password or a smart card. The code may come from a list issued in advance, be sent over a channel such as SMS or HTTPS to an app, or be generated by a token. A time-based hardware token does not need an internet connection, and an administrator or a user with additional verification can adjust for clock skew between token and verifier.

SchemeSpecification and statusMoving factorVerifier rules that matter
S/KEY style hash chainRFC 2289, February 1998, Internet Standard (STD 61)Sequence number counting down a hash chain from a pass-phrase and seedServer stores only the last accepted value; must block simultaneous sessions for a user to stop the race attack; pass-phrase at least 10 characters
HOTPRFC 4226, December 2005, InformationalEvent counterAt least 6 digits; shared secret at least 128 bits (160 recommended); throttle failed attempts across sessions; keep the look-ahead window small
TOTPRFC 6238, May 2011, InformationalTime steps (default 30 seconds)Must not accept the second attempt of a code once validated; allow at most one time step for network delay; record per-token drift
Look-up secrets and backup codesNIST SP 800-63B-4Position in a pre-issued listAt least six decimal digits; saved recovery codes stored hashed with an approved one-way function
SMS or voice codesNIST SP 800-63B-4 (out-of-band over the PSTN)Code sent per sign-inRestricted authenticator: offer an unrestricted alternative, notify users of the risk and keep a migration plan

RFC 4226 frames the residual risk for HOTP: brute force is the best attack, with success probability rising with the look-ahead window and the number of attempts and falling with the number of digits. That is why rate limiting and window size are verifier settings, not user advice.

What NIST SP 800-63B-4 requires of OTP verifiers

  • Replay: "Verifiers SHALL accept a given OTP only once while it is valid."
  • Key strength and output: the secret key and algorithm provide at least 112 bits of security strength; output may be truncated to as few as six decimal digits; a clock-based nonce changes at least once every two minutes.
  • Rate limiting: required for multi-factor OTP and for single-factor OTP with output under 64 bits; the general ceiling is no more than 100 consecutive failed attempts before the authenticator is disabled, and organisations may set lower limits.
  • Assurance levels: single-factor OTP is permitted at AAL1 and, combined with a password or biometric, at AAL2; multi-factor OTP is permitted at AAL1 and AAL2 but not AAL3.
  • Phishing resistance: OTP and out-of-band authenticators shall not be considered phishing-resistant, because manual entry does not bind the output to the session. At AAL2 verifiers shall offer at least one phishing-resistant option.

ATT&CK techniques D3FEND relates to D3-OTP

Relationship type: inferred only. D3FEND links D3-OTP to ATT&CK through shared digital artefacts and labels the links inferred and experimental (checked November 2026). The direct link is through Password, which D3-OTP use-limits. The D3FEND site also shows a wider set inherited through Credential, the artefact its ancestors Credential Rotation and Credential Hardening act on. All IDs below were checked against ATT&CK v20. The last column is NHI Mgmt Group's assessment, not part of D3FEND.

ATT&CK IDTechniqueD3FEND relationWhat OTP changes (NHI Mgmt Group assessment)
T1110.001Password GuessingDirect: accesses PasswordStrong: a guessed static password is not enough, and guessing the code is bounded by rate limiting
T1110.002Password CrackingDirect: accesses PasswordStrong: a cracked hash of a used code has no value; the static password alone no longer completes sign-in
T1110.003Password SprayingDirect: accesses PasswordStrong on OTP-protected paths; none on paths that accept the password alone
T1003.003, T1003.005, T1003.008NTDS, Cached Domain Credentials, /etc/passwd and /etc/shadowInherited via CredentialPartial: dumped static hashes still work on protocols that never ask for the code
T1558.001Golden TicketInherited via CredentialMinimal: forged tickets are presented after authentication
T1606.001Web CookiesInherited via CredentialMinimal: forged cookies stand in for a completed sign-in
T1550.001, T1550.004Application Access Token, Web Session CookieInherited via CredentialMinimal: these bypass the authentication step that asks for the code
T1134.001, T1134.002, T1134.003Token Impersonation/Theft, Create Process with Token, Make and Impersonate TokenInherited via CredentialMinimal: local tokens act after logon
T1098.001Additional Cloud CredentialsInherited via CredentialPartial: step-up with OTP on admin actions slows the attacker; added app secrets never see OTP

The D3FEND site also names Keychain, Steal Web Session Cookie and Steal Application Access Token without IDs; in ATT&CK v20 these are T1555.001, T1539 and T1528. Two techniques aimed at OTP itself are outside D3FEND's D3-OTP list but matter to anyone deploying it: T1111 Multi-Factor Authentication Interception and T1621 Multi-Factor Authentication Request Generation. See the MITRE ATT&CK T1111 Multi-Factor Authentication Interception and the MITRE ATT&CK T1110 Brute Force Guide.

Where it is implemented

Enforcement pointWhat to configureTypical gap
Identity providerOTP as an allowed second factor with replay rejection and lockout; stronger methods required for privileged rolesSMS left enabled as a fallback for every user
VPN and remote accessOTP via RADIUS or the identity provider, failed-attempt limits at the gatewayGateway-local accounts without OTP
Privileged access toolsOTP or stronger at session checkoutBreak-glass accounts outside the tool
Operating system logonOTP modules for SSH or console on Linux and Windows hosts where supportedKey-based SSH paths that skip the module
Account recoveryBackup codes stored hashed, single use, regenerated after useCodes downloaded once and kept in a predictable file name

For SMS and email codes in customer journeys see OTP security and the Magic Links and Email OTP Security Guide.

Where identity fits

OTP assumes a person reads a code. Service accounts and API clients cannot, so they end up in exclusion groups or with OTP seeds stored beside scripts, which turns a one-time factor into a static secret. Use certificate-based or token-based authentication for workloads instead. See the D3-TBA Token-based Authentication card.

Implementation steps

  1. Inventory where OTP is accepted. List each application and gateway, the OTP types it accepts (SMS, app, token, backup codes) and the fallbacks it allows.
  2. Check the verifier settings. Confirm replay rejection, a failed-attempt limit, the TOTP acceptance window and the HOTP look-ahead window. Treat any vendor default as something to confirm in its documentation, not assume.
  3. Restrict SMS and voice. Follow SP 800-63B-4's restricted authenticator rules: offer an app or hardware alternative, tell users the risk and set a date to retire SMS for workforce accounts.
  4. Fix backup codes. Store them hashed, make each single use, regenerate after use and tell users not to keep them in a predictable file. Clear print spool caches on shared printers, as D3FEND notes.
  5. Move privileged users to phishing-resistant methods. Keep OTP for users and systems that cannot yet use them. See the Phishing-Resistant MFA Guide.
  6. Roll out with a fallback. Enforce in rings, keep a monitored break-glass account and a documented way to revert a policy.

How to verify it works

  • Replay test: sign in with a valid code, then submit the same code again within its window. It must be rejected (RFC 6238 and SP 800-63B-4).
  • Rate limit test: submit wrong codes to a test account and confirm the lockout or delay engages at the configured threshold, across sessions, as RFC 4226 requires.
  • Window test: submit a TOTP from several steps in the past and confirm it is refused outside the configured drift allowance.
  • Fallback test: confirm a user who has an app or token cannot drop to SMS without policy allowing it.
  • Relay exercise: in an authorised phishing exercise, confirm privileged roles cannot complete sign-in with OTP where phishing-resistant strength is required.
Metric (example, not a standard)What it showsDirection
Sign-ins completed with SMS or voice codesUse of the restricted authenticatorFalling
Privileged accounts whose strongest method is OTPExposure to real-time relayFalling to zero
Failed OTP attempts per account per day above thresholdCode guessing attemptsEach one reviewed
OTP method resets not preceded by a verified sign-inRecovery abuseZero
Accounts excluded from OTP, by typeBypass surfaceFalling; each with owner and expiry

Limits, bypasses and failure patterns

  • Real-time relay: in the Twilio breach, SMS phishing led employees to fake sign-in pages whose kit collected one-time codes and relayed them to attackers before they expired. Twilio moved all employees to FIDO2 keys afterwards.
  • SIM swap and delivery compromise: SMS codes go to whoever controls the number. See the SIM Swap Fraud Guide.
  • Help desk resets: a strong OTP factor is undone by a reset process that accepts a phone call.
  • Loose verifiers: wide acceptance windows, no replay check or no rate limit turn a six-digit code into a guessable secret.
  • Seed exposure: TOTP seeds are shared secrets held by the server; a seed database leak lets an attacker generate valid codes, so protect seeds like password hashes and re-enrol after a leak.
  • Paths that skip the code: legacy protocols, SSH keys and session tokens authenticate without the OTP prompt.

Framework mapping

FrameworkReferenceRelationship to D3-OTP
NIST SP 800-63B-4Single-factor OTP, multi-factor OTP, look-up secrets, restricted authenticatorsAuthenticator and verifier requirements and the AAL each OTP type can meet
NIST SP 800-53 Rev 5IA-2(8) Access to Accounts, Replay ResistantSingle-use codes are a replay-resistant mechanism
NIST SP 800-53 Rev 5IA-2(1), IA-2(2), IA-5 Authenticator ManagementOTP as a second factor and the management of seeds, tokens and backup codes
NIST CSF 2.0PR.AA-03Users, services and hardware are authenticated
MITRE ATT&CKM1032 Multi-factor AuthenticationClosest mitigation in intent (NHI Mgmt Group mapping; D3FEND links M1032 to D3-MFA)

The 800-53, CSF and ATT&CK rows are NHI Mgmt Group's mapping by control intent.

Practitioner checklist

  • List every application and gateway that accepts OTP and which OTP types and fallbacks each allows.
  • Confirm replay rejection, failed-attempt limits and tight TOTP and HOTP windows on every verifier.
  • Treat SMS and voice as restricted: offer alternatives, inform users and set a retirement date.
  • Store backup codes hashed, single use, and regenerate after use.
  • Protect OTP seed stores like password hashes and plan re-enrolment after any leak.
  • Require phishing-resistant methods for privileged roles; keep OTP as a bridge for others.
  • Keep workloads off OTP and on certificate or token-based authentication.
  • Run replay, rate-limit and relay tests at least yearly and after verifier changes.

Standards and references

Related NHI Mgmt Group resources: Authenticator Apps and OTP Guide · MFA Guide · Phishing-Resistant MFA Guide · MITRE D3FEND Guide

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
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 12 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org