Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› Browser-in-the-middle attack
Threats, Abuse & Incident Response

Browser-in-the-middle attack

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

A browser-in-the-middle attack places an attacker-controlled browser or proxy between the user and the legitimate service while preserving the appearance of a normal session. The victim interacts with a real login flow, but the authentication context and resulting session are controlled by the attacker.

What the attack is

Browser-in-the-middle is a session-interception technique that sits between a user and a legitimate service while preserving the feel of a normal login. The attacker sees the user’s interaction in real time, which makes the technique useful for capturing authenticated sessions rather than just stealing credentials.

It is often discussed alongside phishing kits, reverse-proxy interception, and adversary-in-the-middle patterns, but the distinguishing feature is that the attacker relays the real service so the victim continues to believe they are using the genuine site.

How it works

The attacker-controlled browser or proxy forwards requests, relays responses, and can observe or alter the authentication flow as it happens. That positioning lets the attacker capture session cookies, tokens, or other authentication context after the victim completes a valid login.

Because the victim is interacting with a live session, browser-in-the-middle can defeat simple password-only defenses and even some one-time code prompts if the attacker can relay the session quickly enough. The technique depends on timing, transparency, and trust in the browser session rather than on breaking the service itself.

Where it is used

Browser-in-the-middle is typically used in credential theft, account takeover, and session hijacking campaigns. It is especially effective when users sign in through web applications that do not bind sessions strongly to device state, channel state, or phishing-resistant authentication signals.

It is also relevant in environments where users authenticate to multiple high-value services from the same browser session, because one intercepted login can expose email, cloud consoles, collaboration tools, and downstream business applications.

Why it is hard to spot

The attack often looks like a normal web login from the user’s perspective, which makes suspiciousness low until the session is abused elsewhere. In practice, defenders need to think about the authenticity of the browser context, not just the correctness of the password or MFA prompt.

That is why browser-in-the-middle is a session integrity problem as much as an authentication problem. The security question is not only “did the user sign in?” but also “did the service issue a session to the browser the user intended to trust?”

Risk and Threat Considerations

Browser-in-the-middle matters because it can turn a successful login into immediate unauthorized access, even when the user appears to have followed the expected authentication flow. The real risk is session theft and live impersonation, not simple credential capture.

Failure mechanism: The attacker relays the legitimate site through an intermediary browser or proxy, captures the resulting authenticated context, and reuses that context before the victim notices the session has been diverted.

Impact: Account takeover, lateral access to connected services, and abuse of trusted web sessions can follow, especially when the stolen session carries broad application privileges.

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, OWASP ASVS and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementBrowser-in-the-middle abuses session and authenticator handling after login.
IA-2 — Identification and Authentication (Organizational Users)The attack exploits the authentication path used by organizational users.
IA-8 — Identification and Authentication (Non-Organizational Users)Consumer and external-user sign-in flows are common browser-in-the-middle targets.
Recommendation — Rotate and protect authenticators so stolen session material loses value quickly. Require stronger user authentication to reduce replayable web-session abuse. Apply strong external-user authentication where web sessions are high value.
NIST SP 800-63Digital Identity GuidelinesThe attack directly challenges phishing-resistant authentication and session binding guidance.
Recommendation — Use phishing-resistant authenticators and session-binding signals for web sign-ins.
OWASP ASVSV6 — AuthenticationThe attack abuses web authentication flows and post-login session establishment.
V7 — Session ManagementBrowser-in-the-middle primarily threatens the integrity of authenticated sessions.
V10 — OAuth and OIDCFederated login flows are common targets when an attacker relays the browser session.
Recommendation — Verify login flows resist relay and replay, not only password guessing. Harden session handling so stolen browser sessions expire or fail validation quickly. Validate federation flows against token relay and session substitution risks.
NIST CSF 2.0PR.AA-05 — Identity Management, Authentication, and Access ControlThe technique bypasses normal assurance around user authentication and access control.
Recommendation — Strengthen authentication assurance for high-value web sessions.
MITRE ATT&CKT1185 — Browser Session HijackingBrowser-in-the-middle is a browser-session theft and reuse pattern.
T1557 — Adversary-in-the-MiddleThe attack places an intermediary between user and service to intercept trust.
Recommendation — Map observed activity to browser session hijacking and hunt for relay infrastructure. Detect adversary-in-the-middle infrastructure and break the relay path.

Practitioner Guidance

Why practitioners should care: Browser-in-the-middle is a reminder that authentication strength and session strength are not the same thing. Phishing-resistant authentication helps most when it is paired with controls that make session replay, token theft, and browser relay materially harder.

What to watch for: Look for sign-ins that succeed from unexpected browser contexts, rapid session reuse after login, anomalous token presentation patterns, and user reports that the login experience looked normal but later access behaved strangely.

Practitioner takeaway: Treat the browser session as a security boundary, not just the login form.

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