Abstract: A Man-in-the-Middle (MiM) can collect over-the-air packets whether from a mobile or a base station, process them, possibly modify them, and forward them to the intended receiver. This paper exhibits the REVEAL protocol that can detect a MiM, whether it has half duplex capability, full duplex capability, or double full duplex capability. Protocol is based on synchronizing clocks between the mobile and the base station, with the MiM being detected if it interferes in the synchronization process. Once synchronized, the REVEAL protocol creates a sequence of challenge packets where the transmission times of the packets, their durations, and their frequencies, are chosen to create conflicts at the MiM, and make it impossible for the MiM to function. We implement the REVEAL protocol for detecting a MiM in 4G technology. We instantiate a MiM between the 4G/5G base station and a mobile, and exhibit the successful detection mechanisms. With the shared source code, our work can be reproduced using open software defined cellular networks with off-the-shelf devices.
Introduction
In modern cellular networks (4G/5G), Man-in-the-Middle (MiM) attacks pose a significant security threat. An attacker intercepts wireless communication between a mobile device and a base station, potentially altering data or control messages. Traditional detection methods often rely on identifying specific attack signatures or behavioral anomalies, which sophisticated attackers can bypass. This paper presents REVEAL, a novel protocol that detects MiM attacks by exploiting the fundamental physical and hardware constraints of radio transceivers, making it agnostic to the specific exploit used.
Attacker Classification
REVEAL categorizes potential MiM attackers into three distinct hardware capability levels, as illustrated in the figure below.
- Half-duplex MiM: These attackers cannot transmit and receive simultaneously. They must buffer an entire packet before forwarding it.
- Full-duplex MiM: These can listen and forward simultaneously but are limited to one direction at a time (e.g., uplink or downlink).
- Double full-duplex MiM: The most advanced model, capable of simultaneous bi-directional listening and forwarding.
The REVEAL Protocol
The core of REVEAL lies in forcing these hardware models into detectable failure states through precise timing and frequency manipulation.
Clock Synchronization
A critical prerequisite for REVEAL is precise clock synchronization between the base station (Reference Clock) and the mobile device (Slave Clock). The protocol must account for clock skew ($a$) and offset ($b$) to ensure both ends of the legitimate link are perfectly aligned.
By establishing a common time reference, the network can schedule "challenge packets" with microsecond precision. If a MiM attempts to interfere with this synchronization process, it introduces measurable timing jitter, immediately raising an alarm.
Detection Mechanisms
Once synchronized, REVEAL employs three primary countermeasures:
- For Half-duplex: The protocol schedules exceptionally long data packets. The mandatory "store-and-forward" delay introduced by a half-duplex radio becomes statistically significant and easily detectable.
- For Full-duplex: REVEAL orchestrates simultaneous bi-directional traffic. By timing uplink and downlink packets to arrive at the MiM's physical location at the same instant, the attacker's single-direction hardware is forced into a collision, resulting in massive packet loss.
- For Double Full-duplex: Since even advanced MiMs cannot decrypt control messages, REVEAL sends an encrypted command for a frequency handover. The mobile switches frequencies, while the MiM, unaware of the change, remains on the old frequency, causing a connection drop.
Experimental Results
The protocol was validated using a standard-compliant 4G setup with Software Defined Radios (USRP X310/B210) and the srsRAN stack.
In tests against full-duplex MiMs, the forced collisions caused the Signal-to-Noise Ratio (SNR) to drop from a healthy 14 dB to a median of 1.5 dB. The median packet error rate (PER) reached 95%, providing a clear indicator of the attacker's presence. Against double full-duplex attackers, the frequency handover successfully isolated the MiM, as the mobile device disconnected from the spoofed link and re-established a direct connection on the new frequency.
Conclusion and Limitations
REVEAL provides a robust, physics-based defense against wireless MiM attacks. However, its effectiveness depends on baseline channel quality; a minimum SNR of 10 dB is required to distinguish MiM-induced loss from natural interference. Future work involves optimizing the scheduling of these challenges to minimize network overhead while maintaining high security.
Summary updated