OTP capturing is the theft or interception of a one-time password during or immediately after entry. Attackers obtain the code through phishing pages, malware, SIM swapping, or message interception, then use it before it expires to bypass weak MFA. Phishing-resistant authentication reduces this risk.
What OTP capturing means in practice
OTP capturing is dangerous because the attacker does not need to break the code itself, only to get it fast enough to reuse before expiry. That makes the attack especially effective against SMS, email, or app-based one-time passwords when the user can be tricked into revealing the code or when the delivery channel is exposed.
The security issue is timing and interception, not guessing. Once the OTP is visible to the attacker, the short validity window becomes a race condition: the victim may still think the login is protected while the attacker is already finishing the session.
How attackers capture one-time passwords
Common capture paths include phishing pages that proxy the login flow, malware that reads messages or clipboard contents, and SIM swapping that redirects SMS delivery to the attacker’s device. Message interception can also happen through compromised inboxes, forwarding rules, or other access to the communication channel carrying the code.
These methods work because OTPs are often treated as a second factor, but the factor can be stolen as easily as a password if the entry path is observable or relayable. This is why OTPs reduce password-only risk but do not, by themselves, stop real-time phishing and relay attacks.
Why OTPs are a weak target for phishing and relay attacks
OTP capturing succeeds most often when the attacker can sit between the user and the service, or can persuade the user to hand over the code directly. The code may be valid, but the context that proves who requested it, where it is being used, and whether it is being replayed is weak or absent.
MFA Guide explains why phishing-resistant methods are preferred when the threat model includes relay, token theft, or adversary-in-the-middle abuse. For OTP-specific hardening, D3-OTP One-time Password covers verifier-side rules such as replay rejection and rate limiting that help reduce abuse of captured codes.
How organisations reduce exposure and recover
Exposure starts with where OTPs are delivered and who can intercept that channel. Organisations should inventory which systems still rely on OTPs, identify high-risk flows such as privileged access or remote access, and review whether users are forced into SMS or email fallback paths that are easy to hijack.
When OTP capture is a realistic threat, the practical answer is to move toward phishing-resistant authentication and remove fallback paths that allow a stolen code to become a completed login. After suspected exploitation, session tokens, remembered devices, recovery channels, and any associated credentials should be reviewed because the OTP was often only the first step in a broader account compromise.
Risk and Threat Considerations
OTP capturing creates a narrow but serious compromise path: if an attacker can steal or relay the code in real time, they can complete authentication while the legitimate user still believes the login is protected. The risk is highest where OTPs are the main second factor and where SMS or email delivery can be redirected, intercepted, or socially engineered.
Failure mechanism: The attacker defeats the factor by capturing the code during entry, then races the expiry window to reuse it before the service invalidates it.
Impact: Successful capture can lead to account takeover, session hijacking, and follow-on abuse of email, admin portals, financial systems, or recovery workflows.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5, NIST SP 800-63 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-2 — Identification and Authentication (Organizational Users) | OTP capture undermines user authentication assurance and login trust. |
| IA-5 — Authenticator Management | OTP handling depends on secure issuance, protection, and lifecycle controls. | |
| Recommendation — Require stronger user authentication methods that resist real-time code theft. Protect OTP authenticators and limit reuse, replay, and weak fallback paths. | ||
| NIST SP 800-63 | Digital Identity Guidelines | The guidance defines phishing-resistant authenticators and OTP assurance limits. |
| Recommendation — Prefer phishing-resistant authenticators over OTP-only second factors. | ||
| MITRE ATT&CK | T1056 — Input Capture | OTP capturing often relies on observing or intercepting user-entered codes. |
| Recommendation — Map code-capture telemetry to input-capture tactics and alert on interception paths. | ||
| CIS Controls v8 | CIS-6 — Access Control Management | Captured OTPs are an access-control bypass leading to unauthorized access. |
| Recommendation — Restrict and review access paths that still allow OTP-based compromise. | ||
Practitioner Guidance
Why practitioners should care: OTPs are still common in legacy and fallback authentication paths, so they often remain the easiest weak point for real-time phishing. Treat any process that accepts a captured code as a bypass of the intended assurance level, not just a minor login anomaly.
What to watch for: Repeated OTP prompts, unusual login locations, sudden SIM changes, inbox forwarding changes, or successful logins immediately after a user entered a code are all strong indicators that the factor may have been captured rather than merely guessed.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org