Vesper: Using Echo-Analysis to Detect Man-in-the-Middle Attacks in LANs

Yisroel Mirsky, Naor Kalbo, Yuval Elovici, Asaf Shabtai · DOI

Introduction

Man-in-the-Middle (MitM) attacks remain a critical threat to network security. Whether through software-based redirection like ARP poisoning or physical hardware interception, attackers aim to intercept and potentially manipulate network traffic. Traditional defenses often struggle with hardware-level attacks that leave no digital footprint in packet headers or with encrypted traffic where Deep Packet Inspection (DPI) is ineffective. Vesper addresses these challenges by treating the network like an acoustic chamber, using timing analysis to detect even the most stealthy intruders.

Common Man-in-the-Middle (MitM) attack vectors in local networks, including End-point, In-line, and In-Point interceptions.

The Vesper Approach: Echo-Analysis

The core innovation of Vesper is Echo-Analysis, a technique borrowed from acoustic signal processing. Just as sonar uses sound waves to map an environment, Vesper "claps" on the network to hear its physical and logical shape.

  1. The Pulse: Vesper sends a rapid burst of ICMP Echo Requests (pings) modulated according to a Maximum Length Sequence (MLS). This pseudorandom sequence is robust against noise and covers a wide range of frequencies.
  2. The Echo: It measures the Round-Trip Time (RTT) and jitter of the responses. Because every network device (NICs, switches, cables) has unique hardware and software processing delays, these responses create a unique "fingerprint" of the network path.
  3. Feature Extraction: Vesper extracts features such as Impulse Response Energy (capturing hardware/software harmonic signatures) and Jitter Distribution (fingerprinting queuing behavior).
  4. Anomaly Detection: An unsupervised autoencoder neural network learns the "normal" echo pattern of a healthy connection. If an attacker intercepts traffic, the timing signature shifts, causing the autoencoder to fail reconstruction and trigger an alert.

Why It Works: The Buffer Penalty

A fundamental physical constraint exploited by Vesper is the "buffer penalty." Any MitM attacker must buffer packets, even for a few microseconds, to avoid signal collisions or to parse data. This tiny, unavoidable delay is what Vesper detects.

Internal packet processing delays at the OS, Kernel, and NIC levels that contribute to the unique timing signatures Vesper monitors.

Furthermore, manufacturing variances in silicon mean that even identical hardware models have unique timing characteristics. Vesper is sensitive enough to catch these differences, making it difficult for an attacker to spoof a legitimate device's timing signature.

Key Results and Performance

Vesper was evaluated across diverse real-world environments, including a surveillance network with IP cameras, a high-traffic server LAN, and a large office network with over 379 hosts.

  • High Accuracy: Vesper achieved an Area Under the Curve (AUC) of nearly 1.0 in most tests, indicating near-perfect detection with minimal false positives.
  • Stealth Detection: It successfully identified "In-Point" (malicious switches) and "In-Line" (hardware taps) attacks that are traditionally invisible to standard monitoring.
  • Low Overhead: The system is lightweight, using only about 810 Kbps of bandwidth, making it practical for continuous enterprise monitoring.

Limitations and Future Work

While highly effective, Vesper's models are tied to specific network paths; a change in topology requires a brief retraining period (approximately 100 observations). Current research focuses on wired LANs, with future work aimed at extending these techniques to the noisier environments of Wi-Fi networks and exploring non-ICMP protocols for probing.

Summary updated

Abstract

The Man-in-the-Middle (MitM) attack is a cyber-attack in which an attacker intercepts traffic, thus harming the confidentiality, integrity, and availability of the network. It remains a popular attack vector due to its simplicity. However, existing solutions are either not portable, suffer from a high false positive rate, or are simply not generic. In this paper, we propose Vesper: a novel plug-and-play MitM detector for local area networks. Vesper uses a technique inspired from impulse response analysis used in the domain of acoustic signal processing. Analogous to how echoes in a cave capture the shape and construction of the environment, so to can a short and intense pulse of ICMP echo requests model the link between two network hosts. Vesper uses neural networks called autoencoders to model the normal patterns of the echoed pulses, and detect when the environment changes. Using this technique, Vesper is able to detect MitM attacks with high accuracy while incurring minimal network overhead. We evaluate Vesper on LANs consisting of video surveillance cameras, servers, and PC workstations. We also investigate several possible adversarial attacks against Vesper, and demonstrate how Vesper mitigates these attacks.
BibTeX
@article{mirsky2018vesper,
  author = {Yisroel Mirsky and Naor Kalbo and Yuval Elovici and Asaf Shabtai},
  title = {{Vesper: Using Echo-Analysis to Detect Man-in-the-Middle Attacks in LANs}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2018},
  doi = {10.1109/tifs.2018.2883177},
}
Figure