AiTM Phishing: How Reverse-Proxy Kits Bypass MFA

Attack coverageUpdated

AiTM phishing relays the real login page through an attacker proxy to steal the session cookie after MFA. How reverse-proxy kits work and how to stop them.

Adversary-in-the-middle (AiTM) phishing puts a reverse proxy between the victim and the real sign-in page, so the victim completes the genuine login, MFA included, while the proxy records their password and the session cookie the site issues. The attacker then replays that cookie and is signed in as the victim without ever facing the second factor.

What changed is packaging. The open-source Evilginx describes itself as "a man-in-the-middle attack framework used for phishing login credentials along with session cookies" (Evilginx), and phishing-as-a-service operators now sell ready-made versions by subscription. Sekoia found the Sneaky 2FA kit for Microsoft 365 sold through a "fully automated Telegram bot at $200 per month" (Sekoia). Push MFA and one-time codes do not stop it, because the victim approves them for real.

How AiTM phishing works

  1. The lure. An email, QR code, or chat message links to an attacker domain. The page may sit behind a CAPTCHA such as Cloudflare Turnstile that filters out scanners. Sekoia saw Sneaky 2FA send visitors from data center, proxy, and VPN addresses to harmless Wikipedia pages.
  2. The relay. The attacker's server fetches the real login page and passes it through, so the branding is pixel perfect and only the domain is wrong. Some kits render their own copy of the page instead and talk to the real service from the server side.
  3. The MFA handoff. The victim enters their password and approves MFA. The proxy forwards each step to the real service in real time.
  4. The cookie capture. The real service issues a session cookie to the proxy, which keeps a copy and sends the victim on, sometimes to the genuine site so nothing looks wrong.
  5. The abuse. The attacker loads the cookie and acts as the user. In Microsoft's 2022 investigation, payment fraud started as little as five minutes after the theft.

Real-world examples

  • 10,000 organizations. Microsoft tracked an Evilginx2-based campaign that attempted to target more than 10,000 organizations since September 2021. The attackers used stolen session cookies to read finance threads, run business email compromise, and hide replies with inbox rules.
  • Sneaky 2FA. Sekoia's January 2025 analysis describes a Microsoft 365 kit built to "harvest Microsoft 365 session cookies to bypass the MFA process," with Turnstile gating, obfuscation, and anti-debugging.
  • Shared lineage. Our own analysis found that Kali365 and Sneaky2FA share 71% of their page code and HTML structure. Kits are forked and resold, so a fingerprint for one family can carry to the next.
  • Browser-in-the-middle. The Nyasher kit pushes the idea further: the attacker runs a real browser and streams the genuine Google login to the victim as video, so there is no proxied HTML to fingerprint. Surface Vision blocked the sample we analyzed on the live page.

Warning signs and detection signals

  • The page looks exactly like your identity provider, but the address bar shows a different domain.
  • The password manager does not offer to fill. It matches on the real domain, so silence on a familiar login page is a strong tell.
  • A CAPTCHA or "verify you are human" step in front of a corporate sign-in page.
  • In identity logs: a successful MFA sign-in followed shortly by the same session used from a different IP range or a hosting provider.
  • New inbox rules, forwarding, or MFA methods added right after a sign-in.
  • In the browser: login page assets served through an unrelated origin, or credential posts going to a host that is not your identity provider.

How Surface stops it

Surface Vision evaluates the rendered page in the browser, which is where a proxied login has to run, however good the branding is.

  • AiTM signals. Detection from the protocol, timing, and page-integrity characteristics of a relayed login.
  • Domain and page checks. Lookalike and homoglyph domains, visual similarity, and cloned-page fingerprinting for kits that render their own copy.
  • Kit signatures. Categories include SSO phishing and OAuth impersonation, plus protection against fake passkey-enrollment pages.
  • Local and resilient. Detection runs locally in the browser and keeps working if the Surface server is down.
  • Campaign context. With opt-in campaign intelligence, alerts carry a campaign ID, org count, and first-seen date. It enriches alerts and is never used alone to block.

Surface also tracks passkey adoption, so you can see your phishing-resistant sign-in rate and where AiTM still has room to work. For the wider program, see phishing and social engineering defense.

If it already happened

  1. Revoke sessions and refresh tokens for the user, then reset the password, since the proxy captured it too.
  2. Remove persistence: inbox rules, forwarding, new MFA methods, registered devices, and OAuth consents from the exposure window.
  3. Review outbound mail sent from the account. Microsoft's 2022 case ended in business email compromise, so warn finance contacts if payment threads were touched.
  4. Block the phishing domain and search your browser and proxy logs for other users who reached it.
  5. Close the gap. Microsoft recommends phishing-resistant MFA such as FIDO2, plus Conditional Access checks on device state and location that make a stolen cookie less useful elsewhere.

Related techniques: session hijacking and device code phishing.