Adversary-in-the-Middle (AiTM)
An attack in which a malicious proxy sits between the victim and a legitimate service, capturing credentials and session tokens in real time.
Also known as: AiTM attack, real-time phishing proxy, reverse-proxy attack
Last reviewed: 1 June 2026
An adversary-in-the-middle (AiTM) attack is an evolved form of the classic man-in-the-middle attack, specifically engineered to defeat multi-factor authentication. The attacker operates a reverse proxy server that relays all traffic between the victim and the legitimate service. When the victim visits a phishing link, they interact with what appears to be the real site — because the proxy transparently forwards requests to and responses from it — while the attacker intercepts the victim's credentials and, critically, the session cookie or token issued after MFA is completed.
Because the token is captured post-authentication, the MFA step provides no protection: the victim authenticated legitimately, and the attacker simply reuses the resulting token. AiTM infrastructure is available as a service through criminal phishing toolkits (such as Evilginx), lowering the technical barrier significantly.
AiTM attacks are most effective against organisations using cloud email platforms. Mitigations include phishing-resistant MFA (FIDO2/passkeys), conditional access policies that enforce device compliance checks, and continuous access evaluation that revokes tokens when anomalies are detected.
Examples
- Employees at a company receive phishing emails; those who click authenticate normally including their MFA step, but an AiTM proxy captures their session cookies, allowing the attacker to access their inboxes minutes later.