Don’t let overlooked obligations become incidents. Learn how.
Utility navigation bar redirect icon
Portal LoginSupportContact
Search
Close search
Huntress Logo in Teal
  • Platform Overview
    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed ITDR

    Protect your Microsoft 365 identities and email environments.

    Managed ITDR

    Protect your Microsoft 365 identities and email environments.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Huntress Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Huntress Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Huntress Managed ESPM

    Proactively secure endpoints against attacks.

    Huntress Managed ESPM

    Proactively secure endpoints against attacks.

    Integrations
    Integrations
    Support Documentation
    Support Documentation
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
  • Threats We Stop
    Phishing
    Phishing
    Business Email Compromise
    Business Email Compromise
    Ransomware
    Ransomware
    View Allright arrowView Allright arrow
    Industries We Serve
    Education
    Education
    Financial Services
    Financial Services
    State and Local Government
    State and Local Government
    Healthcare
    Healthcare
    Law Firms
    Law Firms
    Manufacturing
    Manufacturing
    Utilities
    Utilities
    View Allright arrowView Allright arrow
    Tailored Solutions
    MSPs
    MSPs
    Resellers
    Resellers
    SMBs
    SMBs
    Compliance
    Compliance
    What Gets Overlooked Gets Exploited

    Most days, nothing happens. But one day, something will.

    Huntress Cybersecurity
    Cybercriminals Have Evolved

    Get the intel on today’s cybercriminal groups and learn how to protect yourself.

    Huntress Cybersecurity
  • Pricing
  • Community Series
    The Product Lab

    Shape the next big thing in cybersecurity together.

    The Product Lab

    Shape the next big thing in cybersecurity together.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    Resources
    Upcoming Events
    Upcoming Events
    ebooks
    ebooks
    On-Demand Webinars
    On-Demand Webinars
    Videos
    Videos
    Whitepapers
    Whitepapers
    Datasheets
    Datasheets
    Cybersecurity Education
    Cybersecurity 101
    Cybersecurity 101
    Cybersecurity Guides
    Cybersecurity Guides
    Threat Library
    Threat Library
    Real Tradecraft, Real Results
    Real Tradecraft, Real Results
    2026 Cyber Threat Report
    2026 Cyber Threat Report
    The Huntress Blog
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
  • Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    The Huntress SOC

    24/7 Security Operations Center

    The Huntress SOC

    24/7 Security Operations Center

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Community

    Get in touch with the Huntress Community team

    Community

    Get in touch with the Huntress Community team

    Compare Huntress
    Bitdefender
    Bitdefender
    Blackpoint
    Blackpoint
    Breach Secure Now!
    Breach Secure Now!
    Crowdstrike
    Crowdstrike
    Datto
    Datto
    SentinelOne
    SentinelOne
    Sophos
    Sophos
    Compare Allright arrowCompare Allright arrow
  • HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    Partners
    MSPs

    Join our partner community to deliver expert-led managed security.

    MSPs

    Join our partner community to deliver expert-led managed security.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Tech Alliances

    Driving innovation through global technology Partnerships

    Tech Alliances

    Driving innovation through global technology Partnerships

    Microsoft Partnership

    A Level-Up for Your Business Security

    Microsoft Partnership

    A Level-Up for Your Business Security

  • Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Awards
    Awards
    Contact Us
    Contact Us
  • Portal Login
  • Support
  • Contact
  • Search
  • Get a Demo
  • Start for Free
Portal LoginSupportContact
Search
Close search
Get a Demo
Start for Free
HomeCybersecurity 101
Adversary in the Middle Attack

What is an Adversary-in-the-Middle (AiTM) Attack?

Published: 09/12/2025

Written by: Lizzie Danielson

Glitch effectGlitch effect

An adversary-in-the-middle (AiTM) attack is a sophisticated cyberattack where a malicious actor positions themselves between a user and a legitimate website or service to steal credentials and session data. Unlike traditional phishing attempts, AiTM attacks use proxy servers to intercept real-time authentication, allowing cybercriminals to bypass multi-factor authentication (MFA) and access accounts even when users follow proper security protocols.

TL;DR: AiTM attacks represent an evolution of traditional man-in-the-middle attacks, specifically targeting authentication processes. Cybercriminals create fake login pages that act as proxies between users and legitimate services, capturing both credentials and session cookies to bypass security measures like MFA. These attacks are particularly dangerous because they can compromise accounts in real-time, even when users believe they're following best security practices.

AiTM attacks have become a significant concern for cybersecurity professionals because they exploit the trust users place in familiar login processes. When someone receives what appears to be a legitimate email from Microsoft, Google, or their bank asking them to log in, they might not realize they're stepping into an elaborate trap designed to steal their digital identity.

How AiTM attacks work

Understanding how these attacks unfold helps illustrate why they're so effective against unsuspecting users. The process typically begins with a carefully crafted phishing email that appears to come from a trusted source.

The initial deception

Cybercriminals start by sending phishing emails that closely mimic legitimate communications from popular services like Office 365, Gmail, or banking platforms. These emails often create urgency by claiming account suspension, security breaches, or required updates. The key difference from traditional phishing is that the malicious link doesn't lead to a static fake website—it connects to a dynamic proxy server.

Setting up the proxy trap

The attacker deploys a reverse proxy server that sits between the victim and the legitimate website. Tools like Evilginx and Modlishka have made this technique more accessible for cybercriminals to implement, allowing them to create convincing replicas of login pages that function in real-time. When a user clicks the malicious link, they're directed to this proxy server, which immediately begins fetching content from the real website.

Real-time data interception

As the user enters their credentials on what appears to be the legitimate login page, the proxy server captures this information and simultaneously forwards it to the real website. This creates a seamless experience for the victim—they successfully log into their account and might even complete their intended task. However, the attacker now possesses both their username and password.

Session cookie theft

The most dangerous aspect of AiTM attacks occurs after successful authentication. When the legitimate website returns a session cookie to confirm the user's identity, the proxy server intercepts this cookie and provides a copy to the attacker. Session cookies act like temporary digital keys, allowing continued access to an account without requiring repeated authentication. Even if the user has MFA enabled, the stolen session cookie bypasses this protection entirely.

Maintaining persistent access

With a valid session cookie, attackers can access the victim's account from their own devices and locations. They often work quickly to change recovery email addresses, create new authentication methods, or extract valuable data before the legitimate user notices any suspicious activity.

Evolution from traditional phishing

AiTM attacks represent a significant advancement in cybercriminal tactics. Traditional phishing relied on static fake websites that would simply collect credentials and display error messages. Users might realize they'd been tricked when they couldn't access their accounts, but by then, it was too late.

At the same time, as more users implemented MFA on their accounts, that stopped less sophisticated phishing attacks dead in their tracks. Attackers might have collected the account credentials, but they would be prompted for a second form of authentication.

More modern attacks like AiTM bypass some forms of MFA while also flying under the radar. Users successfully log in, complete their tasks, and remain unaware that their credentials have been compromised. This seamless experience makes detection much more difficult and gives attackers more time to exploit stolen access.

According to Microsoft's threat intelligence reports, AiTM attacks have targeted over 10,000 organizations worldwide, with financial services and healthcare sectors being particularly vulnerable due to the sensitive nature of their data.

Common AiTM attack scenarios

Corporate email compromise

Many AiTM attacks begin with targeting employees' Office 365 or Google Workspace accounts. Once attackers gain access to a corporate email account, they can monitor internal communications, identify valuable targets, and launch business email compromise (BEC) scams. They might impersonate executives to request wire transfers or manipulate vendor payment information.

Financial account takeovers

Banking and financial services face significant risks from AiTM attacks because session cookies can provide immediate access to account balances, transaction histories, and money transfer capabilities. Attackers often work quickly to modify contact information and initiate unauthorized transfers before account holders notice suspicious activity.

Healthcare data breaches

Healthcare organizations store vast amounts of sensitive personal information, making them attractive targets for AiTM attacks. Stolen session cookies can provide access to patient records, insurance information, and other protected health data that can be sold on dark web marketplaces.

Recognizing AiTM attack attempts

While these attacks are sophisticated, several warning signs can help users identify potential threats:

Email Red Flags:

  • Urgent language demanding immediate action

  • Slight variations in sender domains (like "microsft" instead of "microsoft")

  • Generic greetings instead of personalized messages

  • Requests to click links rather than directing users to type URLs directly

Website Indicators:

  • URLs that don't match the official domain exactly

  • Missing or invalid SSL certificates

  • Unusual login processes or additional steps not normally required

  • Pages that load slowly or display formatting inconsistencies

Post-Login Warnings:

  • Unexpected password change confirmations

  • New device login notifications from unfamiliar locations

  • Missing emails or calendar entries

  • Unusual account activity in security logs

Defending against AiTM attacks

Protecting against AiTM attacks requires a multi-layered approach that combines technical controls with user education and awareness.

Implementing phishing-resistant authentication

Traditional MFA methods like SMS codes or authentication apps can be bypassed by AiTM attacks. Organizations should consider implementing phishing-resistant authentication methods such as:

  • Hardware security keys that use WebAuthn protocols

  • Certificate-based authentication tied to specific devices

  • Biometric authentication that can't be intercepted remotely

  • Conditional access policies that evaluate device trust and location consistency

User education and awareness training

Regular employee security awareness training helps employees recognize and report potential AiTM attacks. Effective programs should include:

  • Simulated phishing exercises that mirror current AiTM techniques

  • Clear reporting procedures for suspicious emails or websites

  • Regular updates about emerging threats and attack methods

  • Recognition programs for employees who successfully identify and report threats

Technical security controls

Organizations can implement several technical measures to detect and prevent AiTM attacks:

  • Network monitoring: Deploy systems that analyze traffic patterns and identify connections to known malicious proxy servers. Unusual authentication patterns from impossible geographic locations can indicate compromised accounts.

  • Session management: Implement shorter session cookie lifespans and require periodic re-authentication for sensitive operations. Monitor for session cookies being used from multiple locations simultaneously.

  • DNS security: Use secure DNS services that can block access to newly registered domains and known malicious infrastructure commonly used in AiTM attacks.

  • Email security: Deploy advanced email filtering that can detect and quarantine emails containing links to potential AiTM sites, even when they use legitimate URL shorteners or redirect services.

Staying one step ahead

AiTM attacks represent a sobering reality in our interconnected digital world—even security-conscious users following best practices can fall victim to these sophisticated schemes. The key to protection lies not in perfection, but in building multiple layers of defense and maintaining constant vigilance.

Organizations must move beyond traditional security measures and embrace phishing-resistant authentication methods while investing in comprehensive user education. Individual users should remain skeptical of urgent login requests, verify website URLs carefully, and report suspicious activities immediately.

As cybercriminals continue evolving their tactics, the cybersecurity community must adapt with equal innovation and determination. Understanding AiTM attacks is the first step in building stronger defenses against these increasingly prevalent threats.

Frequently Asked Questions

AiTM attacks use real-time proxy servers to intercept authentication, allowing users to successfully log in while stealing their credentials and session data. Traditional phishing uses static fake websites that simply collect information and display error messages.

Traditional MFA methods like SMS codes or authenticator apps cannot fully protect against AiTM attacks because they steal session cookies after successful authentication. However, phishing-resistant authentication methods like hardware security keys can provide better protection.

Attackers often work within minutes or hours of obtaining session cookies, as these tokens typically have limited lifespans. They prioritize changing account recovery information and extracting valuable data before detection.

Immediately change your password, revoke all active sessions, enable additional security measures, and notify your IT security team. Monitor your accounts closely for unauthorized changes or activities.

Yes, financial services, healthcare organizations, and technology companies face higher risks due to the sensitive nature of their data and the potential financial gains for attackers.

Glitch effectBlurry glitch effect
Glitch effect

Related Resources


  • What is Session Hijacking? The Silent Threat Bypassing MFA
    What is Session Hijacking? The Silent Threat Bypassing MFA
    Session hijacking allows attackers to bypass MFA by stealing session tokens. Learn how AitM attacks work and how to detect them before damage occurs
  • Cookie Logger Explained for Cybersecurity Pros and Learners
    Cookie Logger Explained for Cybersecurity Pros and Learners
    Learn what a cookie logger is, why attackers use them, and how to stop cookie logging attacks right now. Stay secure and get up-to-date protection tips.
  • What is Credential Theft?
    What is Credential Theft?
    Discover methods of credential theft in cybersecurity, the impact of stolen credentials, and 5 actionable steps to protect against breaches now.
  • What Is AnonFiles?
    What Is AnonFiles?
    Learn how AnonFiles became both a privacy tool and cybercriminal platform. Discover detection methods, defense strategies, and lessons for modern cybersecurity.
  • What is a Dictionary Attack?
    What is a Dictionary Attack?
    Learn what dictionary attacks are, how they work, and proven prevention methods. Essential cybersecurity knowledge for professionals and organizations.
  • What Is Cross-Site Request Forgery (CSRF)?
    What Is Cross-Site Request Forgery (CSRF)?
    Learn about Cross-Site Request Forgery (CSRF), a common cybersecurity threat, how it works, and how to protect against it.
  • What is a Session in Cybersecurity? Explained
    What is a Session in Cybersecurity? Explained
    Learn what a session is in cybersecurity, its role in secure communications, and how it impacts online security.
  • Cyber Lingo Check — What the heck is a Grabber?
    Cyber Lingo Check — What the heck is a Grabber?
    Learn what a grabber is, how grabbers work, and how to protect against grabber attacks. Stay ahead with these cybersecurity tips.
  • What's Traitorware? Understanding this Threat Actor
    What's Traitorware? Understanding this Threat Actor
    Traitorware turns trusted apps into cyber weapons, bypassing MFA and hiding in plain sight. Learn how these attacks work and what you can do to stay protected.

Protect What Matters

Secure endpoints, email, and employees with the power of our 24/7 SOC. Try Huntress for free and deploy in minutes to start fighting threats.
Try Huntress for Free
Huntress Managed Security PlatformManaged EDRManaged EDR for macOSManaged EDR for LinuxManaged ITDRManaged SIEMManaged Security Awareness TrainingManaged ISPMManaged ESPMBook a Demo
PhishingComplianceBusiness Email CompromiseEducationFinanceHealthcareManufacturingState & Local Government
Managed Service ProvidersResellersIT & Security Teams24/7 SOCCase Studies
BlogResource CenterCybersecurity 101Upcoming EventsSupport Documentation
Our CompanyLeadershipNews & PressCareersContact Us
Huntress white logo

Protecting 215k+ customers like you with enterprise-grade protection.

Privacy PolicyCookie PolicyTerms of UseCookie Consent
Linkedin iconTwitter X iconYouTube iconInstagram icon
© 2025 Huntress All Rights Reserved.

Join the Hunt

Get insider access to Huntress tradecraft, killer events, and the freshest blog updates.

By submitting this form, you accept our Terms of Service & Privacy Policy