Man-in-the-Middle Attack (MITM)

A man-in-the-middle (MITM) attack is when an attacker secretly places themselves between two parties, such as a user and a website, to intercept, read or alter what they send each other, including passwords and session cookies.

IntermediateCategory: Network and internet security

Also called: MITM, adversary-in-the-middle, AiTM, on-path attack, man-in-the-middle

What is a man-in-the-middle attack?

In a man-in-the-middle attack, neither side knows someone is listening. The attacker relays messages between the victim and the real service, reading or changing them along the way. MITRE ATT&CK calls this adversary-in-the-middle and lists it as a common way attackers capture credentials. Security teams increasingly use "on-path" or "adversary-in-the-middle (AiTM)" as neutral names.

How do MITM attacks work?

  • Network interception: on public or compromised Wi-Fi, an attacker uses a rogue access point or tricks devices into sending traffic through them.
  • [DNS spoofing](/glossary/dns-spoofing/): victims are sent to the attacker's server instead of the real site.
  • AiTM phishing: the most common business threat today. A phishing link leads to a proxy site that shows the real Microsoft 365 or Google login page, passing everything through, including the MFA code, and keeps the session cookie that's issued, enabling session hijacking.
  • Email interception: attackers inside a mailbox alter invoices in transit, as in business email compromise.

How to protect your business

  • Use phishing-resistant MFA such as passkeys and security keys; CISA notes FIDO authentication defeats phishing proxies because it checks the real website address.
  • Make sure every site and app uses HTTPS, and teach staff not to click through certificate warnings.
  • Use a VPN or ZTNA on public Wi-Fi, and secure your office Wi-Fi.
  • Verify payment changes by phone.

Related terms

Sources

  1. Adversary-in-the-Middle (T1557) (MITRE ATT&CK)
  2. Implementing Phishing-Resistant MFA (CISA)

Drafted with AI assistance, then edited and fact-checked by a person. How we use AI.