For years the standard advice was simple: turn on multi-factor authentication and phishing largely stops working. Evilginx is the tool that broke that assurance. It is an adversary-in-the-middle phishing framework that steals not only passwords but session tokens, which lets an attacker walk straight past MFA even when the victim enters a correct code. If your entire anti-phishing strategy rests on “we have MFA,” this is the tool that explains why that is no longer enough.
It belongs in any current social engineering penetration test, because testing against yesterday’s phishing while attackers use this one gives a false sense of safety. It sits alongside the other frameworks in our guide to red team tools.
As of November 2026, the latest release of the open-source edition is still 3.3.0 (April 2024), and its author also sells a commercial Evilginx Pro. The project’s own README states it should be used only in legitimate penetration testing with written permission from the people being phished. Criminal phishing kits copy the same reverse-proxy technique, so the defense below applies whichever tool is behind the link. Microsoft reported in 2022 that one campaign built on Evilginx2 had targeted more than 10,000 organizations since September 2021, and its 2026 analysis of Tycoon2FA describes a phishing-as-a-service kit that sold the same capability to less skilled attackers. MITRE ATT&CK tracks the technique as Adversary-in-the-Middle (T1557) and Steal Web Session Cookie (T1539).
Why ordinary MFA stopped being enough
Classic credential phishing captures a username and password on a fake login page. With MFA enabled, that stolen password is not enough: the attacker still needs the second factor, and by the time they try to use it, the one-time code has expired. MFA worked because it broke the reuse of stolen static credentials. Our phishing attack statistics page has the current data on how often phishing is still the way in.
Evilginx defeats this by not playing that game. Instead of capturing credentials to reuse later, it sits between the victim and the real site in real time, and steals the thing that proves you already passed MFA: the session token.
How adversary-in-the-middle works
The technique is a transparent reverse proxy, and understanding it is the whole point:
- The victim receives a phishing link by email, chat, or text message (smishing) and clicks it, landing on the attacker’s server.
- That server does not host a fake page. It proxies the real website: the victim sees the genuine login page, because it is the genuine page, relayed through the attacker.
- The victim enters their username, password, and, crucially, their MFA code. Everything is passed through to the real site, which accepts it. Authentication genuinely succeeds.
- The real site returns a session token (a cookie) proving the victim is now logged in. Because the attacker sits in the middle, they capture that token.
- The attacker imports the token into their own browser and is now logged in as the victim, with no password re-entry and no MFA prompt. The session is already authenticated.
The victim experiences a completely normal login on the real site and suspects nothing. The attacker walks away with an authenticated session, MFA and all.
What this means for your defenses
Evilginx does not break MFA cryptographically. It sidesteps it by stealing the result. That has direct consequences for how you should think about phishing defense:
- “We have MFA” is no longer a sufficient answer. Standard MFA (SMS codes, authenticator-app codes, push approvals) is all vulnerable to this, because all of it produces a session token the proxy can steal. CISA’s phishing-resistant MFA fact sheet rates each of those forms as vulnerable to phishing.
- Awareness training built around old signals falls short. There is no misspelled domain to catch if the page is the real one proxied, and there is no “the site looked wrong” because it did not. Training has to evolve past “look for the fake page.”
- Session tokens are now a high-value target, which changes how you think about session lifetime, binding, and monitoring.
The same weakness is exploited by phone: in voice phishing, a caller talks the victim into reading out a code or approving a prompt.
What actually stops it: phishing-resistant MFA
The good news is that a specific class of MFA defeats this attack by design:
FIDO2 security keys and passkeys. These use public-key cryptography bound to the real site’s domain. The authentication is cryptographically tied to the legitimate origin, so when the victim is on the attacker’s proxy domain, the check simply fails. There is no code or token for the proxy to relay or steal. This is why “phishing-resistant MFA” is not marketing language; against adversary-in-the-middle it is the difference between working and not. For Google tenants, the passkey and session settings are in our Google Workspace security checklist.
Layered alongside it:
- Conditional access and device trust: requiring a managed, compliant device makes a stolen token far less useful from an attacker’s machine. A Microsoft 365 security assessment reviews these policies.
- Token binding and shorter session lifetimes: limiting how long and from where a stolen token is valid. In Microsoft Entra the concrete controls are Token Protection, a Conditional Access session control that accepts only tokens bound to the device they were issued to, and continuous access evaluation, which enforces a password reset or session revocation in near real time.
- Impossible-travel and anomaly detection: flagging a session suddenly used from a new location or device.
- Modern awareness training: teaching that even a perfect-looking login reached through an unexpected link is dangerous, and that hardware-key prompts failing is a signal, not a glitch.
Which MFA methods resist adversary-in-the-middle phishing
| MFA method | Resists it? | Why |
|---|---|---|
| SMS or voice code | No | The code is typed into the proxied page and relayed |
| Authenticator app or token code (OTP) | No | The code is relayed in real time, like the password |
| Push approval | No | The user approves a sign-in that the proxy started |
| Push with number matching | No | It stops push bombing, but the sign-in still completes through the proxy |
| FIDO2 security key or passkey (WebAuthn) | Yes | The credential is bound to the real domain and will not answer the proxy’s domain |
| Smart card or other PKI-based MFA | Yes | The private key stays on the card or device, so there is no code to relay |
The ratings follow CISA’s fact sheet, which lists FIDO/WebAuthn and PKI-based MFA as phishing-resistant and every other form as vulnerable to phishing.
How to detect Evilginx-style phishing
The proxy is invisible to the user, so detection happens in the identity provider’s logs and in what the attacker does next.
- A sign-in that does not look like the user. The proxy, not the user’s device, talks to the identity provider, so the successful MFA sign-in arrives from the proxy’s IP address, network, and browser. Microsoft Entra ID Protection raises this as Unfamiliar sign-in properties, Anomalous token, or Attacker in the Middle.
- One session in two places. When the attacker replays the token, the same session appears from a second IP address or device. Alert on a session used from a new network shortly after it was issued.
- Persistence within minutes. New inbox or forwarding rules, a newly registered MFA method, or a new device right after the suspicious sign-in. In the campaign Microsoft described, payment fraud began as little as five minutes after the session was stolen.
- The link itself. Clicks on newly registered or look-alike domains in mail and web proxy logs, shortly before a sign-in for the same user.
- A failed passkey or security key prompt that a user reports. On a proxy domain the phishing-resistant method fails, and that failure is the alarm.
Our Microsoft 365 security best practices guide covers the tenant configuration behind these signals.
What to do after a session token is stolen
- Revoke the user’s sessions and refresh tokens, then reset the password. A password reset on its own may not end a session that is already open.
- Remove anything the attacker added: MFA methods, registered devices, inbox and forwarding rules.
- Review sign-in and audit logs from the first suspicious sign-in to see what was read, sent, or changed, and search for the same IP address or user agent on other accounts.
- Warn finance and anyone the mailbox corresponded with about payments, because replies may have come from the attacker.
- Move the account to phishing-resistant MFA before you re-enable it.
Microsoft’s token theft playbook has the full investigation and remediation checklist.
How we use it in an engagement
In an authorized social engineering penetration test or red team assessment, Evilginx-style adversary-in-the-middle phishing tests the defenses that actually matter today: does your MFA resist token theft, or merely stop password reuse? A test that captures a session and reaches your systems despite MFA is one of the most valuable findings you can get, because it corrects the specific false confidence (“we have MFA, we’re fine”) that this attack exists to exploit. It pairs naturally with spear phishing for the lure and pretext, and the finding usually drives a move to phishing-resistant MFA on the accounts that matter. What a stolen session can reach next is the question an internal network penetration test answers.
On our campaigns, adversary-in-the-middle phishing runs in a controlled way under written rules of engagement that fix who is in scope, what the capture page does with anything entered, and how long the campaign runs. Captured credentials are never stored in plaintext, and results are reported by department rather than by name. The point is to show whether your MFA method resists phishing and whether your conditional access and session controls catch the stolen session. A scoped phishing campaign starts at $3,600; the tiers are on the phishing testing price page.
Frequently asked questions
Is Evilginx legal to use? It is a legitimate penetration testing tool when the organization being tested has authorized it in writing, which is the condition its own README sets. Used without that permission, it is credential theft.
Does number matching stop Evilginx? No. Number matching stops push bombing, where an attacker floods a user with prompts. In a proxied sign-in the user is completing a real login, so the number matches and the session is still stolen. CISA rates push with number matching as vulnerable to phishing.
Can conditional access block a stolen session token? Partly. Policies that require a compliant device or a trusted network are evaluated again when the token is replayed, so a token used from the attacker’s machine can be refused, and Token Protection binds tokens to the device. That limits the damage. Only phishing-resistant MFA stops the theft itself.
What is Evilginx Pro and who can buy it? It is the commercial edition sold by the tool’s author. His release announcement says it is available only to vetted red teamers and penetration testers working for security companies, after a manual company verification. The announcement does not state a price.
The short version
Evilginx is adversary-in-the-middle phishing: it proxies the real login page, lets the victim authenticate for real (password, MFA code and all), and steals the resulting session token to log in as them, bypassing MFA entirely. It means “we have MFA” is no longer a complete defense, and that awareness training built on spotting fake pages misses this attack. What stops it is phishing-resistant MFA (FIDO2 keys and passkeys), backed by device trust and session monitoring. Testing against this technique is the only way to know whether your MFA actually resists a modern phishing attack or just an old one.
Confident in your MFA? A social engineering test that includes adversary-in-the-middle phishing is the way to find out whether it resists token theft, before an attacker checks for you. Scope one here.
Written by
Mark Kiss, Founder & CEO
15+ years in the field. Focus: Offensive security & strategy. Part of the team that scopes, tests, and reports for our clients. Full profile →