A fake page between a person and a real service relaying a sign-in and keeping a copy of the session cookie.

AiTM Phishing

AiTM (adversary-in-the-middle) phishing is a phishing attack in which a fake sign-in page sits between a person and the real service and relays their sign-in. The person enters their password and completes multi-factor authentication (MFA) as usual; the attacker copies the session cookie, the service's proof of sign-in, and may use the account while the service still accepts it.

CyberRecaps is supported by its readers. We may earn an affiliate commission at no extra cost to you if you buy through a link on this page.

Ghost in the Wires by Kevin Mitnick
A helper carrying a child's library card to the librarian and photocopying the borrowing pass on the way back.

Explain It Like I'm 10

A kid stands at the school library door, pretending to be the librarian's helper. You hand over your library card and whisper your secret word. The helper carries both to the real librarian, who checks them, sees they really are yours, and hands back a borrowing pass that works all week. The helper gives you the pass, but only after making a copy. Now the helper can borrow books as you for as long as the librarian accepts the pass, without showing your card or secret word again, though a locked reading room might ask.

AiTM Phishing Quiz

Test your knowledge about AiTM Phishing - maybe you already know everything about it.

EasyQuestion 1 of 3

What sits between a person and the real service in AiTM phishing?

A proxy tower relaying traffic between a person and a service while lifting the session cookie off the return path.

How AiTM phishing works

Phishing is an attempt to get someone to hand over information, money or access by pretending to be a party they trust. An account may also be protected by MFA, which asks for two or more distinct types of authentication factor before the service lets the person in, such as a password (something you know) plus a code or an approval on a phone (something you have).

AiTM phishing puts a page in the middle of that sign-in. The attacker sends a link, and the page it opens works like a proxy, a program that passes traffic between a person's browser and a website: what the person types goes on to the real service, and what the service sends back comes through the page first.

What the page in the middle keeps

The person types their password and completes MFA, and the real service accepts both, because both are genuine. The service then opens a session, the stretch of time in which it treats the person as signed in, and hands their browser a session cookie: a small piece of data the browser returns with its later requests, in place of the password and the MFA step. The page in the middle captures that cookie on its way back.

Why the copied cookie lets someone in

The cookie stands in for the sign-in, so when the attacker presents the copy, the service sees a session that was already authenticated. MITRE ATT&CK, a public knowledge base of attacker behaviour built from real-world observations, describes the next step: the attacker loads the cookie into a browser they control and can then use the service as the person "for as long as the session cookie is active." The copy grants access within that session's scope while the service accepts it; some resources or sensitive actions may ask for more authentication.

Services issue these cookies so that people do not have to sign in again and again, and the cookies are often valid for an extended period, even when the app is not in use. That convenience is what the copy buys. Within that scope, the attacker does not need the password or the phone again.

A door with two correctly opened locks while a copied wristband lets an impostor walk in, with a passkey wall in the background.

Does AiTM phishing get past MFA?

It gets past the MFA step, but not because MFA failed. Microsoft's 2022 report on these campaigns put it plainly: "this is not a vulnerability in MFA; since AiTM phishing steals the session cookie, the attacker gets authenticated to a session on the user's behalf, regardless of the sign-in method the latter uses." The MFA check works; the session it produces is what gets copied.

Most commonly used MFA methods can be relayed. When a person types a one-time code, nothing in the code ties it to the sign-in it was meant for, so a page in the middle could pass it to the real service and sign in, as NIST's digital identity guidelines explain. Microsoft's investigation of one widely sold relay kit found it could get past "nearly all commonly deployed MFA methods", including text-message codes, one-time passcodes and push notifications.

What breaks the relay

A phishing-resistant sign-in method keeps its secrets and valid answers away from an impostor site without relying on the person to notice the fake, in NIST's definition. Passkeys, FIDO sign-in credentials tied to a person's account on a particular website or app, work this way: the answer they produce is tied to the verified name of the site that asked for it. NIST says a properly configured passkey's key "can only be used with a specific website", so a falsified page cannot capture an answer and reuse it at the real one. The relay fails at the sign-in, before any session exists.

How well it works, and where it stops

The Canadian Centre for Cyber Security (CCCS), drawing on over 100 campaigns it detected against Microsoft Entra ID accounts, says phishing-resistant MFA and rules that accept sign-ins only from registered devices both "break the authentication flow" when a phishing kit sits in the middle. In the Canadian government and critical infrastructure organizations it works with, compromises in which attackers came away with a full session fell from almost 20% of all compromises at the end of the third quarter of 2023 to under 10% in early 2025. CCCS credits that primarily to those device and phishing-resistant MFA rules, together with strict limits on where logins may come from.

CCCS tells organizations to remove weaker backup methods from administrator accounts, because those "could be bypassed by AitM phishing campaigns." Registering a method does not mean the access policy accepts it: in Microsoft Entra, a sign-in method must also satisfy the policy's authentication strength. If the service accepts a weaker method as an alternative for the same access, an attacker may relay that method instead.

Five small scenes compared: AiTM phishing, MFA fatigue, device code phishing, consent phishing and session hijacking.

AiTM phishing vs MITM, and the attacks it is confused with

Man-in-the-middle (MITM) is the broader idea: an attacker positioned between two communicating parties to intercept or alter what passes between them. AiTM phishing is one form of it, in which the attacker's page sits between a person and a sign-in service. The shared name can mislead: in MITRE ATT&CK, the technique called Adversary-in-the-Middle (T1557) covers interception between networked devices, such as abusing the protocols that decide where a network's traffic flows, while the phishing relay is described under stealing web session cookies (T1539).

Four neighbours are easy to confuse with it:

  • MFA fatigue: someone who already has the password floods the account owner with approval prompts until one is approved. In AiTM phishing, the person approves their own real sign-in.
  • Device code phishing: the attacker starts a sign-in and gets the person to enter the attacker's code on the real sign-in page, which authorizes the attacker's request. A phishing landing page can carry the lure and send the person there, but a fake credential-collection page is not required; in AiTM phishing, the person signs in on the fake page.
  • Consent phishing: the person grants a malicious app permissions to their data, and password theft is not required.
  • Session hijacking: the broader name for stealing and reusing the session a site sets up after sign-in, by any route. AiTM phishing is one of those routes.
A normal-looking sign-in that works while a trusted file hides the link to the fake page.

Why careful people do not notice

From the person's side, little looks wrong: the password works and the MFA prompt is real, because both go to the real service. A relay that passes the service's replies back, like the one Microsoft first reported, even leaves the person signed in.

The link often looks safe, too. In the campaigns CCCS detected against Microsoft Entra ID accounts between 2023 and early 2025, over half of those it could sort by delivery method sent a link to a file on a trusted service such as SharePoint or Dropbox, and the link to the phishing page sat inside that file rather than in the email. CCCS also notes that checking the address is harder than it sounds: some sign-in addresses, including Microsoft Entra ID's, are long enough that a suspicious domain can go unnoticed.

That is why the defenses that hold do not depend on the person spotting the fake. NIST builds that into its definition of phishing resistance.

A shop selling phishing kits to many customers, each heading to a map of targets.

Why AiTM phishing is widespread

One reason is that the relay can be rented. Tycoon 2FA, a phishing service active since at least 2023, was built to defeat protections such as MFA and "operated like a business", according to Microsoft's Digital Crimes Unit. Its kit relayed MFA codes to the real service and intercepted the session cookies created during sign-in, as Microsoft's investigation of the kit describes. Microsoft linked the service to an estimated 96,000 phishing victims worldwide since 2023; in March 2026, Microsoft, Europol and industry partners announced a coordinated action to disrupt it. The people using a kit like this do not have to build one.

Both figures describe what one organization saw. Microsoft's counts victims linked to a single service, and CCCS calls its own study of over 100 campaigns "a snapshot of how widespread these campaigns have become", not a count of AiTM phishing everywhere.

An attacker inside a mailbox using a copied cookie, adding a forwarding rule even after a password change.

What happens after the session is copied

A copied session can give the attacker access to the account, much as the person sees it, within the session's scope and for as long as the service accepts it. In a campaign against energy-sector organizations that Microsoft disclosed in January 2026, the lure was a SharePoint link that asked people to sign in, and some user accounts were compromised. Inside a compromised mailbox, the attacker set up a rule that deleted all incoming email, sent more than 600 further phishing emails, and read the replies from recipients who doubted the message was genuine. Microsoft adds that an attacker in that position can add their own one-time-password method for MFA, a change of the kind covered under account manipulation.

Why a password reset is not enough

A password change on its own did not end these copied sessions. "Password resets alone are insufficient," Microsoft concluded, and the affected organizations also had to revoke the active session cookies, remove the rules the attacker created and undo the attacker's MFA changes. The lesson: recovery has to end the copied session, not only change the password. Microsoft found the same with Tycoon 2FA, where access could continue after a password reset unless active sessions were explicitly revoked.

A person working through a checklist: alert IT, sign out of every device, change the password, check mailbox rules.

What to do if you entered your details on a page like this

Changing the password may not end a session that was already copied, so the steps below deal with both:

  • A work account: tell your IT or security team straight away. They can revoke the account's active sessions and check for mail rules and sign-in methods that someone else added.
  • A personal account: change the password, then use the account's settings to log out every device and app still signed in. The UK National Cyber Security Centre's steps for recovering a hacked account walk through both, and note that the setting usually sits under the account or privacy options.
  • The same password elsewhere: change it on every other account that uses it.
  • Your mailbox: look for forwarding rules you did not set up, a common criminal tactic according to the NCSC, and for filters and sign-in methods you did not add.