Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› Real-Time OTP Relay Attack
Threats, Abuse & Incident Response

Real-Time OTP Relay Attack

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Threats, Abuse & Incident Response

A real-time OTP relay attack is an authentication-bypass technique where an attacker captures a one-time passcode and forwards it immediately to the legitimate sign-in flow. It works by placing a victim into a live phishing session or proxy, so the code is usable before it expires and can satisfy MFA checks.

How real-time OTP relay attacks work

A real-time OTP relay attack is not about guessing or cracking a code, it is about using the victim’s own code fast enough to beat expiry. The attacker stays in the authentication path, usually through a live phishing page or proxy, and turns a one-time passcode into a pass-through token for the session they are actively trying to open.

This makes the attack especially effective against SMS OTP and other shared secret flows where the code alone is enough to satisfy the second factor. The user believes they are completing a normal sign-in, while the attacker is silently replaying the same step in near real time.

Why OTP relay bypasses common MFA checks

OTP relay succeeds because many MFA systems verify possession of a short-lived code, but not the authenticity of the interaction that produced it. If the authentication system cannot bind the code to the original device, origin, or transaction context, a proxy can forward the code and complete the login before the code expires.

The key weakness is timing combined with trust. The relay does not need to defeat the OTP algorithm, only the user experience and the session binding around it. That is why codes with short validity still fail when the attacker can collect and forward them instantly.

For a broader view of the attack class and the controls defenders use against it, see OTP security and MFA Guide.

Where organisations should look for exposure

Exposure usually sits wherever OTP is still accepted as a primary step-up factor, especially in internet-facing sign-in flows, recovery flows, and customer or workforce journeys that allow rapid code entry. Organisations should review where OTP is still the fallback for accounts that would be more resilient with phishing-resistant authenticators.

It also helps to inspect vendor settings, sign-in telemetry, and authentication design choices such as resend behaviour, code lifetime, and whether the code can be used only once in a single transaction. In practice, the same defensive question is whether the code is merely valid, or also meaningfully bound to the session that requested it.

For incident context and real-world phishing relay tradecraft, Twilio 0ktapus breach 2022 and MITRE ATT&CK T1598 Phishing for Information are useful reference points.

Controls that reduce relay success

The strongest response is to reduce dependence on OTP where phishing relay is plausible, and move high-value access to phishing-resistant MFA such as passkeys or security keys. Where OTP must remain, the control goal is to make relay harder to execute and easier to spot, not to assume the code itself is sufficient protection.

That means tightening session handling, limiting repeated prompts, making the login path more resistant to proxying, and adding risk-based step-up when the sign-in context changes unexpectedly. Organisations should also plan for credential rotation and session revocation after suspected relay-based compromise, because the attacker’s value is usually the authenticated session, not just the code.

To compare factor choices and fallback design, use Authenticator Apps and OTP Guide, Magic Links vs OTP vs Passkeys, and MITRE D3FEND Credential Hardening Implementation Guide.

Detection and post-compromise review

Detection usually focuses on unusual login timing, impossible geography, device changes, or a successful sign-in immediately after a suspicious phishing interaction. A relay attack may leave few direct artefacts in the OTP system itself, so the surrounding identity signals matter more than the code event.

After a suspected relay, review sessions, issued tokens, recent MFA events, and any privileged actions taken shortly after the sign-in. If the account was used to access repositories, email, or admin consoles, assume the attacker may have moved beyond authentication into data access or persistence and validate whether secrets, recovery methods, or trusted devices were also exposed.

For detection and response patterns around phishing-driven credential use, Dropbox GitHub breach 2022 and NTLM Relay Guide provide practical parallels on relay-style abuse and follow-on compromise.

Risk and Threat Considerations

Real-time OTP relay is dangerous because it turns an apparently valid second factor into an attacker-controlled approval path. The risk is highest where organisations still treat OTP as strong enough on its own, especially for high-value accounts, remote access, and recovery workflows.

Failure mechanism: The attacker captures the code in a live phishing flow and forwards it before expiry, so the authentication server sees a valid one-time code even though the user is being proxied.

Impact: The attacker can establish a legitimate session, bypass MFA, and then escalate into email, SaaS, admin, or repository access, often with little immediate signal that the login was stolen rather than genuine.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, NIST SP 800-63, CIS Controls v8 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-2 — Identification and Authentication (Organizational Users)Defines authentication requirements for user sign-in flows that OTP relay tries to bypass.
IA-5 — Authenticator ManagementCovers lifecycle and handling of authenticators, including OTP material and replay-resistant use.
Recommendation — Require stronger authentication for user access and restrict OTP-only paths for sensitive accounts. Manage authenticator lifecycle so OTP use is tightly limited and monitored.
NIST SP 800-63Digital Identity GuidelinesDefines phishing-resistant authentication, authenticator assurance and session binding expectations for OTP-based sign-in.
Recommendation — Adopt phishing-resistant authenticators for high-risk access and raise assurance above OTP where possible.
CIS Controls v8CIS-6 — Access Control ManagementSupports limiting and reviewing access paths that OTP relay can abuse after successful sign-in.
Recommendation — Restrict and review access paths so stolen sessions do not translate into broad privilege.
OWASP ASVSV6 — AuthenticationCovers authentication design weaknesses, including OTP handling and MFA bypass resistance.
Recommendation — Verify that authentication flows resist relay, replay and weak fallback behaviour.

Practitioner Guidance

Why practitioners should care: OTP relay is a design problem as much as an attack problem. If the organisation still relies on OTP for important access paths, the question is not whether attackers can steal a code, but whether that code can still be used to complete a trusted session.

Governance implication: Treat phishing-resistant authentication as the target state for privileged and sensitive access, and keep OTP only where the residual risk is explicitly accepted. That means ownership for fallback methods, recovery flows, and exception handling needs to be clear, because those are often the weakest points in the journey.

Practitioner takeaway: If a sign-in flow can be proxied in real time, the code should be assumed relayable unless the system adds stronger binding than the OTP alone.

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