BLEKeeper: Response Time Behavior Based Man-In-The-Middle Attack Detection

Muhammed Ali Yurdagul, Husrev Taha Sencar

Introduction

Bluetooth Low Energy (BLE) has become the standard communication protocol for the modern Internet of Things (IoT) ecosystem, powering everything from smart home appliances to critical medical devices like pulse oximeters. However, BLE security remains fragile. Many resource-constrained devices lack the input/output capabilities required for secure pairing methods, forcing them to rely on "Just Works" pairing, which offers no inherent protection against Man-In-The-Middle (MITM) attacks.

In a typical MITM scenario, an attacker intercepts and potentially alters data between a client and a server. While attackers can easily spoof protocol-level attributes like MAC addresses or names, they cannot easily hide the physical and logical latency introduced by their hardware. This research introduces BLEKeeper, a proactive defense system that detects MITM attacks by analyzing the unique response time "fingerprints" of BLE devices.

System Architecture

BLEKeeper is designed as an active detection system composed of two primary functional blocks: the Traffic Analyzer and the Attack Detection Module.

The BLEKeeper system architecture, featuring a Traffic Analyzer for packet collection and an Attack Detection module for profiling and change detection.
  1. Traffic Analyzer: This module utilizes multiple BLE sniffers to monitor advertising channels and track connection requests. By capturing the initial handshake, BLEKeeper can identify the exact moment a connection is established, which is when most MITM attacks are initiated.
  2. Attack Detection Module: This module performs three critical tasks:
  3. Device Profiling: It establishes a baseline of a legitimate device's timing by measuring the interval between an Attribute Protocol (ATT) request and its response.
  4. Proactive Probing: When a connection appears suspicious, the system initiates its own short-lived connection to the device to perform specific ATT operations.
  5. Change Detection: It compares real-time response data against stored profiles using a hypothesis-testing framework to identify anomalies.

The Latency Fingerprint

The core innovation of BLEKeeper lies in identifying the "proxy tax"—the unavoidable processing delay an attacker introduces when intercepting traffic. Because an MITM attacker must receive, process, and re-transmit every packet, they introduce a measurable delay ($T_{MITM}$) that is distinct from the device's natural internal timing variance.

Sequence diagram showing how an MITM attacker introduces additional latency (t1 and t2) during the ATT operation interval.

Even highly optimized attack frameworks like Mirage introduce a minimum delay of approximately 2.2ms. For most BLE devices, which operate with microsecond-level precision, this millisecond-scale delay serves as an unmistakable indicator of an unauthorized intermediary.

Experimental Evaluation

The researchers evaluated BLEKeeper using seven diverse consumer devices, ranging from simple smart bulbs and thermometers to complex electronics like a Samsung Smart TV. To simulate realistic threats, they employed two standard MITM frameworks: BtleJuice and Mirage.

Key Results

  • High Detection Accuracy: BLEKeeper achieved an average detection accuracy of 98%.
  • Low Error Rates: The system maintained a low False Positive (FP) rate of 1.14% and a False Negative (FN) rate of 2.28%.
  • Reliability for Simple Devices: For four of the seven devices (bulb, thermometer, and oximeters), the system achieved a 0% False Negative rate, catching every MITM attempt.
  • Efficiency: A robust device profile can be generated in under 20 seconds using only 20 measurements.

Discussion and Limitations

While BLEKeeper is highly effective, it faces challenges with high-variance devices. For instance, the Samsung Smart TV exhibited a 16% False Negative rate because its natural response times occasionally overlapped with the delays introduced by attack tools. Furthermore, while a sophisticated attacker might attempt to shape their delays to match a profile, they can only ever add latency, never subtract it. If the legitimate device is naturally faster than the attacker's processing overhead, the attack remains detectable.

Future work aims to refine the statistical modeling of multimodal distributions to improve accuracy for complex devices and to reduce the hardware requirements for deployment in standard consumer environments.

Summary updated

BibTeX
@inproceedings{yurdagul2021blekeeper,
  author = {Muhammed Ali Yurdagul and Husrev Taha Sencar},
  title = {{BLEKeeper: Response Time Behavior Based Man-In-The-Middle Attack Detection}},
  booktitle = {SP (Workshops)},
  year = {2021},
  doi = {10.1109/spw53761.2021.00035},
}
Figure