liveBook · Manning

Man-in-the-middle attack

As explained in Fundamentals of Cybersecurity

An on-path attack, also called a man-in-the-middle attack, is a network attack in which an adversary positions themselves between communicating parties to intercept or alter exchanged information.

A man-in-the-middle attack, also called an on-path attack, places an attacker silently between a user and a legitimate destination. The attacker can observe or alter the communication while both parties believe they are connected directly. section 12.3.6

The attack can operate in two main ways:

  • Passive attacks listen for sensitive information such as login credentials, financial data, or personal information without changing the traffic. section 12.3.6
  • Active attacks modify or reuse communications, such as changing transaction details, injecting malicious content, sending fraudulent messages, or replaying authentication requests. section 12.3.6
  • A successful spoofing attack can help an attacker impersonate a trusted server or device and intercept the connection. section 12.3.6

Example: a bank connection

A user thinks they are connecting directly to their bank’s website, but the attacker has broken the original connection. The attacker can read sensitive information or alter a transaction before forwarding traffic. section 12.3.6

Figure 12.7 Illustration of an on-path attack scenario.

Use the communication-path illustration to trace how the attacker intercepts traffic between the user and the bank website. section 12.3.6

Protection combines strong encryption and secure authentication protocols, including HTTPS, TLS, and VPNs. Timestamps, nonces, session tokens, and challenge-response mechanisms help prevent intercepted messages from being reused in replay attacks. section 12.3.6

How Fundamentals of Cybersecurity covers it

How deep it goes
Distinguishes passive and active interception, gives a banking scenario, and connects replay prevention to authentication mechanisms.
Examples
Uses an intercepted bank website connection, stolen credentials, altered transactions, injected payloads, and replayed authentication requests.
What it assumes
Assumes basic network communication and threat concepts while defining interception, modification, spoofing, and replay in context.
What you can do after
Apply HTTPS, TLS, VPNs, and replay-resistant authentication mechanisms to protect communications from interception and reuse.
How it connects
Connects on-path attacks with spoofing, replay attacks, encryption, secure authentication, and network integrity.

Also explained in

Compare how 5 books explain man-in-the-middle attack →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fundamentals of Cybersecurity. The section links point to the parts of the book it draws on.