← All resources
Explainer

AiTM phishing: how relay kits get past MFA, and how to protect the work password

Adversary-in-the-middle kits show staff the real sign-in page, pass their MFA through and keep the session. Here is how they work and which controls still hold.

Explainer · 7 min read · By SafeToOpen Research · Published

Last month, Microsoft's Digital Crimes Unit and Europol disrupted Tycoon 2FA, a phishing service behind tens of millions of fraudulent emails reaching more than 500,000 organisations each month. By mid-2025 it accounted for about 62% of all phishing attempts Microsoft blocked [1]. Tycoon 2FA is a kit for AiTM phishing, short for adversary-in-the-middle: it shows the victim the real sign-in page, passes their password and MFA through, and keeps the session that results. Disrupting one service does not retire the technique. This guide explains how AiTM phishing works, why most MFA does not stop it, and what protecting the work password in the browser should look like.

What is AiTM phishing?

In an AiTM attack, the phishing site is a relay. It sits between the user and the real identity provider, such as Microsoft Entra, Google or Okta, and forwards everything in both directions in real time. The user types a password, the kit sends it to the real provider, the provider asks for MFA, and the kit relays that challenge too. When sign-in succeeds, the provider issues a session cookie, and the kit captures it.

That cookie is the browser's proof that sign-in has already happened. Whoever holds it is treated as the user until it expires or is revoked, without being asked for a password or MFA again.

Microsoft described this pattern in 2022 after a campaign that tried to reach more than 10,000 organisations, and was clear that "this is not a vulnerability in MFA" [2]. The attacker does not need to beat MFA. They take the session that MFA produced.

Tycoon 2FA showed how industrial this has become. Microsoft's analysis describes campaign subdomains that often lived only 24 to 72 hours, keystroke monitoring on the fake pages, and stolen access that survived a password change unless sessions and tokens were revoked [3].

Why MFA alone does not stop adversary-in-the-middle attacks

MFA still matters. Microsoft's 2025 Digital Defense Report says more than 97% of identity attacks are password attacks, and that MFA can block over 99% of identity-based attacks [4]. The problem is which MFA. Codes sent by text, codes from an app and push approvals all happen on a page the attacker controls, so they can be relayed. We cover the wider picture in does MFA stop phishing.

CISA's guidance is direct: not all forms of MFA are equally secure, and the only widely available phishing-resistant method is FIDO/WebAuthn authentication, the standard behind security keys and passkeys [5]. Okta makes the same point, saying the only reliable defence is to cryptographically bind the user's authenticator to the legitimate site [6]. A passkey will not sign in on a relay domain, because the domain is wrong.

The catch is coverage. Most organisations still have accounts on passwords and weaker MFA: older apps, contractors, shared mailboxes and staff who have not enrolled yet. CISA advises organisations whose MFA is not yet phishing-resistant to add other prevention and detection controls in the meantime [5]. Protecting the password in the browser is one of those controls.

Browser-in-the-browser pop-ups: the fake window on top of the relay

Many sign-ins open in a pop-up window, for example "Sign in with Microsoft". In 2022 the researcher mr.d0x showed that such a pop-up can be imitated with ordinary HTML and CSS, with the attacker's page loaded inside it [7]. It looks like a separate browser window, but it is part of the attacker's page.

In November 2025 Push Security reported that the Sneaky2FA kit had adopted the technique: a fake Microsoft sign-in window, with an address bar showing the real domain, loads a relay page inside the attacker's site [8]. Two quick tests expose it. Try to drag the window outside the browser, which a fake cannot do, and check whether it appears as its own window in the taskbar, as a real pop-up does [8]. People rarely run these tests under time pressure, which is why spotting a fake login page by eye has limits.

Why blocklists and look-alike checks miss relay pages

Two common defences struggle against AiTM kits.

Domain reputation. A blocklist needs time to see a domain, judge it and publish the verdict. When campaign subdomains last a day or three, much of the damage is done before the list catches up. We explain the timing problem in why blocklists fail.

24 to 72 hours
How long Tycoon 2FA's campaign subdomains often lived, according to Microsoft's analysis of the kit [3]

Visual similarity. Many tools ask whether a page looks like Microsoft but sits on a domain that is not Microsoft's. A relay kit shows content taken from the real sign-in flow, so the look is right by design. Okta has also observed attackers using an AI tool to generate working phishing sites from simple text prompts [6], so new pages cost little to build. The useful question is not "does this look real?" but "is this the real address, and is the work password about to go somewhere else?"

How to protect the work password in the browser

A password manager already applies the right logic: it will not fill a saved password on the wrong domain, however convincing the page. Password protection applies the same rule to the password that matters most, the corporate sign-in. If that password is typed on any address that is not the organisation's identity provider, it should be stopped before it leaves.

The idea has a precedent. Windows 11 version 22H2 introduced Enhanced Phishing Protection, which detects when a user types their Windows password into an app or website, warns them if the site is not trusted, and alerts administrators through Defender for Endpoint [9]. It covers the Windows sign-in password on Windows devices, so it shows the approach rather than covering every case.

When you assess a password protection control, look for these properties:

Roll it out in alert-only mode first. Some legitimate systems may accept the corporate password on a different domain, such as a VPN portal or an older internal app. Add those addresses to the allowed list before you switch to blocking, so the first block your staff see is a real attack.

What to do when an AiTM sign-in succeeds

Assume some attempts will get through, and plan the response before you need it.

  1. Reset the password and revoke all active sessions and tokens. Microsoft notes that a password change alone does not remove a stolen session [3].
  2. Check what changed after the sign-in. Microsoft's 2022 investigation found attackers using stolen sessions for business email compromise, and advised watching for unusual sign-ins and suspicious inbox rules [2].
  3. Review the MFA methods registered on the account and remove any the user does not recognise.
  4. Move the affected user, and their team, to phishing-resistant MFA first.

For organisations covered by NIS2, Article 21 lists the use of multi-factor authentication or continuous authentication solutions, where appropriate, among the required risk-management measures [10]. An incident review that shows which accounts still rely on relayable MFA is useful evidence for that duty.

Page-level detection covers the gap while passkeys roll out. As one example, SafeToOpen Browser Security judges every page as it loads and blocks brand-new phishing pages before a password is typed. Whatever you use, test it against a fresh relay page that no list has seen, because that is what attackers send. Our explainer on how real-time phishing detection works sets out what to test.

Frequently asked questions

Only phishing-resistant MFA reliably does. Security keys and passkeys based on FIDO2 and WebAuthn are tied to the real website, so they will not complete a sign-in on a relay domain. Text codes, app codes and push approvals can all be passed through an AiTM proxy, which then captures the session cookie issued after sign-in.

Try to drag the pop-up outside the browser window. A real pop-up is a separate window that moves freely and usually appears as its own entry in the taskbar. A browser-in-the-browser fake is drawn inside the page, so it stops at the page edge. A password manager will also refuse to fill a saved password on the wrong domain.

Reset the password and revoke every active session and token straight away, because a stolen session cookie can keep working after a password change. Then review recent sign-ins, new inbox rules and newly registered MFA methods on the account, and look for emails sent from it. Finally, move that user to phishing-resistant MFA.

See how SafeToOpen protects the browser

Browser Security judges every page as it loads and stops brand-new phishing before a password is typed.

Browser Security for organisations →

Sources

  1. Microsoft On the Issues, Defending the gates: How a global coalition disrupted Tycoon 2FA, a major driver of initial access and large-scale online impersonation (2026-03) blogs.microsoft.com
  2. Microsoft Security Blog, From cookie theft to BEC: Attackers use AiTM phishing sites as entry point to further financial fraud (2022-07) www.microsoft.com
  3. Microsoft Security Blog, Inside Tycoon2FA: How a leading AiTM phishing kit operated at scale (2026-03) www.microsoft.com
  4. Microsoft On the Issues, Extortion and ransomware drive over half of cyberattacks (Microsoft Digital Defense Report 2025) (2025-10) blogs.microsoft.com
  5. CISA, Implementing Phishing-Resistant MFA (2022-10) www.cisa.gov
  6. Okta, Okta observes v0 AI tool used to build phishing sites (2025-07) www.okta.com
  7. mr.d0x, Browser In The Browser (BITB) Attack (2022-03) mrd0x.com
  8. BleepingComputer, Sneaky2FA PhaaS kit now uses redteamers' Browser-in-the-Browser attack (2025-11) www.bleepingcomputer.com
  9. The Register, Microsoft improves phishing protection in Windows 11 22H2 (2022-09) www.theregister.com
  10. nis-2-directive.com, NIS 2 Directive, Article 21: Cybersecurity risk-management measures (Directive (EU) 2022/2555) (2022-12) www.nis-2-directive.com

External statistics are attributed to their original publishers and were accurate at the time of writing. Figures from industry reports vary by methodology and period; we link to primary sources so you can verify them.

Could you spot the fake?

Put this into practice: 12 real-world scams and genuine messages, two minutes, no sign-up.

12 examples · 2 minutes
Parcel Delivery
SMS · just now

Your package is on hold. A redelivery fee of $1.99 is required: parcel-redeliver.info/pay

Warm-up question

Real, or a scam?

Correct. It’s a scam.
It got you. This one’s a scam.
  • A fee to release a parcel (couriers don’t do this)
  • The link isn’t the courier’s real domain
  • Urgency: pay now or lose the package

That was the warm-up. 12 more are waiting.