1. Home
  2. Knowledge Center
  3. Glossary
  4. Man-in-the-middle attack
Threats and attacks

Man-in-the-middle attack

MitM · AitM · adversary-in-the-middle · on-path attack · evil twin · rogue Wi-Fi hotspot · attaque de l’homme du milieu

An attack in which someone secretly places themselves between two communicating parties to read, steal or alter what they exchange without either side noticing.

In practice

Attackers can sit on a rogue public Wi-Fi network (a fake hotspot named after the hotel), on the local network, or behind a relay page that mimics a legitimate site. TLS encryption, checked through certificates, makes interception very hard, provided nobody clicks through certificate warnings. So-called AitM phishing kits relay the real login and steal the session cookie, which defeats ordinary multi-factor codes.

Example

Fictional case: at the airport, a consultant joins the “Airport-Free” Wi-Fi set up by an attacker. Her browser warns of an invalid certificate; in a hurry, she clicks “Continue”. The attacker captures her email credentials.

How to protect yourself

  • HTTPS everywhere, with HSTS enabled on your own sites.
  • Never ignore a certificate warning; on public networks, use your phone’s hotspot or the company VPN.
  • Adopt passkeys or FIDO2 keys: bound to the genuine domain, they do not work on a relay site.
  • Segment the internal network and watch for anomalies (ARP spoofing, rogue DHCP servers).

Sources

The whole glossary

From theory to practice

So how does your system measure up?

Create your account and get an A+ to F grade for your domains’ encryption in minutes, with every finding explained and the fix to apply.

Run the audit from your account: an A+ to F grade for your domains’ encryption in minutes, with every finding explained and the fix to apply.

Belinda

Contact us

A question, a project, a partnership? Write to us: the team answers by email, usually within one business day.

Your details are only used to answer you. Do not include passwords or vulnerability details.