Concepts / Interception

Interception

Man in the middle

Also called MITM, on-path, interception

A machine placed on the path between two parties, able to read and alter what is not protected end to end.

On the path: plain traffic is open, TLS is not
On the path: plain traffic is open, TLS is not

Everything passes through the machine in the middle. It reads and changes plain HTTP and DNS; with TLS it sees only ciphertext, and pretending to be the server fails the certificate check.

A man in the middle is a machine on the path between two parties that can read and change whatever is not protected end to end. It gets there as a hostile gateway, by a forged DHCP or ARP answer, or through a compromised device. Plain HTTP and DNS are exposed; TLS keeps content private and detects impostors, if its warnings are respected. VPNs and switch protections reduce the exposure.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab