Understanding Evilginx Reverse Proxy Attacks and How to Protect Your Business

Watch the video walkthrough on Loom

Cybercriminals are constantly evolving their methods, and one particularly dangerous attack vector that has been compromising business emails—even those protected by multi-factor authentication (MFA)—is the Evilginx Reverse Proxy attack. In this post, we'll break down how this attack works, demonstrate its effectiveness, and most importantly, discuss how to defend against it.

How the Evilginx Reverse Proxy Attack Works

Evilginx is an open-source attack tool that can be deployed on a cloud server for as little as $5, with a domain name costing around $10 per year. Because of its accessibility and ease of use, even those with basic technical knowledge can set up this attack within a few hours.

Step 1: Setting Up a Phishing Domain

Attackers register a domain that looks nearly identical to a legitimate website, such as a Microsoft login page. Since Microsoft uses various subdomains and URLs, a fraudulent domain can appear convincing at first glance.

Step 2: The Phishing Email

The attack usually begins with a phishing email. The recipient may receive an email from a trusted contact—whose account has already been compromised—prompting them to click on a link to view an invoice or another document.

Step 3: The Fake Login Page

Clicking the link redirects the victim to a phishing page that looks identical to Microsoft's login portal. The victim, believing it to be legitimate, enters their email and password.

Step 4: Capturing Credentials and MFA Tokens

Once the user submits their credentials, Evilginx captures them in real time. If multi-factor authentication is enabled, the victim is prompted to approve the login on their authenticator app or enter a one-time passcode. Once they do, Evilginx intercepts the authentication token, allowing the attacker to take full control of the account.

Step 5: Bypassing Multi-Factor Authentication

The intercepted session token is the key to the attack. With this token, the attacker can bypass MFA completely, logging in from any device, anywhere in the world, without needing additional authentication.

Step 6: Exploiting Access

Once inside, attackers can access OneDrive files, SharePoint data, emails, and even set up forwarding rules to monitor communications. If they gain access to a global admin account, the damage can be even more severe, allowing them to manipulate settings, create new accounts, or even deploy further attacks.

How to Protect Against Evilginx Attacks

While this attack is highly effective, there are ways to defend against it. One of the best methods is implementing conditional access policies, which can block these attacks based on specific criteria such as:

  • Restricting access by IP address
  • Enforcing device compliance policies
  • Utilizing phishing-resistant authentication methods like FIDO2 security keys

If your organization wants to learn more about securing accounts against this attack, reach out to us. We can provide detailed instructions on how to set up protective measures to safeguard your business from these threats.

Cybersecurity is constantly evolving—make sure your defenses are too.

Let Us Handle the Tech.

Schedule a free IT, Cybersecurity & AI strategy call.

Schedule a Free Call