What Is an Adversary-in-the-Middle (AiTM) Attack?
An adversary-in-the-middle (AiTM) attack is a technique in which an attacker positions a system they control between a user and the service the user is trying to reach, then intercepts or alters the traffic passing through it.
In its most common enterprise form, the attacker runs a reverse-proxy phishing page that relays a live login to the real identity provider, captures the session cookie the service issues after multi-factor authentication (MFA) succeeds, and replays it to take over the account.
The technique falls under T1557 in MITRE ATT&CK (opens in new tab), which covers both network-protocol interception and reverse-proxy phishing tools such as Evilginx.
How AiTM attacks work
The proxy holds two encrypted sessions (opens in new tab) at once: one with the victim and one with the legitimate website. The victim's input moves forward to the real service and the service's responses move back, so the victim sees the genuine sign-in interface.
Because the proxy forwards real credentials, the real service issues a genuine MFA challenge. The victim approves it, and the service returns a session cookie to what it believes is the user's browser. The proxy captures that cookie. MFA worked as designed, yet the attacker now holds an authenticated stolen session cookie (opens in new tab) that works unless the sign-in method cryptographically binds authentication to the legitimate domain.
A typical sequence runs like this. An accounts-payable employee receives a document-sharing email with a link on a lookalike domain. The page shows her company's Microsoft 365 sign-in. She enters her password and approves the push prompt on her phone. The proxy forwards both and captures the resulting cookie.
The attacker later loads it into their own browser and opens her mailbox as her.
Why AiTM attacks are hard to stop
MFA methods that rely on the user typing or approving something pass straight through the proxy. One-time passcodes and out-of-band push approvals do not bind their output to the session the service authenticates, so they fail NIST's phishing-resistance test (opens in new tab). That verifier-binding requirement marks the technical line between MFA that AiTM defeats and MFA that resists it.
Attackers rent the tooling on subscription. Phishing-as-a-service (PhaaS) platforms sell AiTM proxies with support and ready-made lures (opens in new tab), and they ship anti-bot layers such as CAPTCHA gates, device fingerprinting, code obfuscation, and randomized URLs to evade automated scanners (opens in new tab). An affiliate with no proxy expertise can still run a campaign against Microsoft 365 or Google accounts.
The infrastructure also regenerates. On March 4, 2026, Microsoft's Digital Crimes Unit and Europol seized 330 domains (opens in new tab), including control panels, belonging to Tycoon 2FA. By March 23, 2026, the kit was fully operational again (opens in new tab) at early-2026 activity levels, with no change in tactics.
Types of AiTM attacks
Several patterns account for the AiTM activity enterprises faced through 2026:
- Reverse-proxy phishing. The kit fetches the real login page live and relays it to the victim. Evilginx works this way (opens in new tab) and can target SSO or OIDC providers that permit the flow.
- Synchronous relay phishing. The kit serves a cloned sign-in page and forwards each input to the real service in real time. Tycoon 2FA, Sneaky 2FA, and Mamba 2FA use this architecture (opens in new tab), and Mamba 2FA pages assume the targeted organization's branding (opens in new tab), including logos and background images.
- Vishing-assisted AiTM. An operator poses as IT helpdesk staff, calls the employee, and directs them to a lookalike SSO subdomain. The BlackFile extortion operation used patterns such as <organization>.setupsso[.]com and <organization>.passkeyms[.]com, which captured credentials and relayed them to the legitimate SSO provider (opens in new tab).
- Network-layer interception. These are the original T1557 sub-techniques: name resolution poisoning and SMB relay (T1557.001), ARP cache poisoning (T1557.002), DHCP spoofing (T1557.003), and evil twin access points (T1557.004).
Since early May 2026, Storm-2945 has manipulated DNS and HTTP traffic on hospitality captive-portal networks to route travelers through doppelganger Microsoft domains (opens in new tab).
How to defend against AiTM attacks
Security teams can reduce AiTM risk through the following controls:
- Deploy phishing-resistant MFA. FIDO2 security keys and passkeys bind the signed response to the legitimate domain, so a proxy on a lookalike domain cannot produce a valid assertion. FIDO/WebAuthn provides widely available phishing-resistant authentication (opens in new tab), and certificate-based authentication also qualifies.
- Require managed, compliant devices. Access policies that issue tokens only to managed, compliant devices block the sign-in (opens in new tab) before any session exists, because the proxy typically cannot present a device identity. Microsoft Entra Conditional Access is one example.
- Shorten and re-evaluate sessions. Set sign-in frequency limits (opens in new tab) and require phishing-resistant re-authentication when sign-in risk rises. Token-binding features cover some native apps, but support for browser session cookies (opens in new tab) remains limited.
- Lock down MFA registration and legacy authentication. Require helpdesk verification for new MFA enrollment, block legacy protocols, and enforce number matching (opens in new tab) until phishing-resistant methods are in place. Attackers who replay a stolen cookie routinely register their own authenticator to persist.
- Detect and revoke. Alert on session-cookie replay, AiTM risk detections, new MFA method registrations, and inbox rules that hide security notices. After confirming a compromise, reset the password, revoke every active session, remove attacker-added authenticators, and delete malicious inbox rules.
No single control closes every path, so layer them.
How Doppel helps
Doppel is the Frontier AI Social Engineering Defense (SED) platform that unifies Digital Risk Protection (DRP) and Human Risk Management (HRM) to detect, investigate, and disrupt the campaign behind a phish, including AiTM proxy pages, before a victim reaches a login.
Doppel's AI agents detect and dismantle lookalike domains and proxy pages through phishing site takedowns. The Doppel Threat Graph correlates each proxy domain with sibling lookalikes, fake profiles, and reused kit infrastructure. Agentic AI then runs enforcement at scale, and analysts handle novel or escalated cases that need judgment. Teams can convert a detected lure into an employee phishing Simulation in one click.
Request a demo to see the platform in action.
Frequently asked questions about adversary in the middle
What is an adversary in the middle attack in cybersecurity?
An adversary-in-the-middle (AiTM) attack puts an attacker-controlled system between a user and the service they connect to, so the attacker can read or alter the traffic between them. In enterprise identity attacks, the attacker's proxy passes the victim's login to the real provider and captures the session cookie (opens in new tab) issued after MFA succeeds. Replaying that cookie in their own browser lets the attacker act as the authenticated user, with no password or second factor required.
What is the difference between adversary in the middle and man in the middle?
The same attacker position (opens in new tab) underlies both terms, which are functionally synonymous. "Man in the middle" is the older label, while MITRE ATT&CK now files the technique as "Adversary-in-the-Middle" (T1557). Both cover network-layer interception and reverse-proxy phishing that bypasses MFA.
Does MFA stop adversary in the middle attacks?
Only phishing-resistant MFA does. SMS codes, one-time passcodes, and push approvals can pass through an AiTM proxy, because the victim completes a genuine challenge and the proxy captures the session cookie that comes back. FIDO2 security keys and passkeys bind the signed response to the legitimate domain, so the real service rejects a response the proxy produces on its own domain before issuing a token.
What is an example of an adversary in the middle attack?
Microsoft reported an energy sector campaign (opens in new tab) in January 2026 that used AiTM phishing sent from a compromised trusted organization's account. A SharePoint document-sharing link led to a credential-harvesting landing page. The attackers then used the compromised internal identities to run large-scale internal and external phishing and pursue business email compromise. Remediation required revoking active session cookies and removing attacker-created inbox rules, since password resets alone left the stolen sessions valid.

