No Place to Hide that Bytes Won't Reveal: Sniffing Location-Based Encrypted Traffic to Track a User's Position

Giuseppe Ateniese, Briland Hitaj, Luigi Vincenzo Mancini, Nino Vincenzo Verde, Antonio Villani

Abstract

Modern mobile privacy relies heavily on end-to-end encryption. However, this study demonstrates that encryption alone is insufficient to protect user location. By analyzing the metadata—specifically packet sizes and timing—of encrypted traffic from Location-Based Services (LBS), a passive observer can infer a user's geographic position with high precision. Using Google Now as a case study, the researchers show that unique "fingerprints" of encrypted data volume allow for tracking with up to 90% accuracy.

Introduction

While traditional location tracking often involves intrusive methods like fake cell towers (stingrays) or exploiting network vulnerabilities (SS7), these techniques are detectable and often require specialized hardware. This paper investigates a more insidious threat: passive traffic analysis.

The core vulnerability lies in how LBS apps function. These services frequently "push" content—such as local points of interest, weather, or transit updates—to the user's device. Because different geographic areas contain varying amounts of information (e.g., a dense city center vs. a rural park), the resulting encrypted responses vary in size. An adversary monitoring an internet backbone router can observe these patterns without ever needing to decrypt the traffic.

Methodology

The researchers developed a two-phase attack model to exploit these side-channel leaks:

  1. Knowledge Base Construction: The adversary builds a reference library by "visiting" target locations using virtual machines and GPS spoofing. They record the metadata (byte counts and timestamps) of the encrypted traffic exchanged with the LBS.
  2. Location Inference: When a target user moves through the monitored area, the adversary sniffs their traffic. By comparing the observed byte counts against the Knowledge Base using statistical distance measures, the adversary can identify the most likely candidate locations.
Overview of the passive sniffing attack scenario.

The study focused on Google Now, an app pre-installed on millions of Android devices that performs frequent background synchronization, making it an ideal target for continuous tracking.

Experimental Setup

To validate the attack, the authors monitored a 2 square kilometer area in a major European city, divided into 50 distinct locations (LocIDs). Data was collected over three weeks using Android x86 Virtual Machines. Through initial research using mitmproxy, they confirmed that Google Now utilizes the Protobuf protocol and identified specific URL requests (tg/fe/request) that trigger location-based updates.

Analysis of Traffic Patterns

The fundamental insight is that content dictates volume. Encryption masks the data's meaning but preserves its length. A location with many points of interest generates a larger encrypted response than one with few.

Density distribution of encrypted byte counts.

Furthermore, traffic patterns exhibit a strong temporal component. Google Now typically sends more data during the day (26KB–32KB) than at night (22KB–24KB). Successful tracking requires the adversary to account for these daily cycles. Because LBS apps often use "push" technology to keep data fresh, they leak location information even when the device is idle in a user's pocket.

Key Results

The attack proved highly effective across several metrics:

  • Accuracy: The system achieved a $k$-accuracy of 90% to 95% (where $k=8$ candidate locations).
  • Efficiency: Peak accuracy was reached with just 20 minutes of sniffed traffic. Even a 5-minute window yielded 79% accuracy.
  • Temporal Resilience: While accuracy degrades over time, the cyclical nature of the data means a 24-hour-old knowledge base remains highly effective.

Limitations and Countermeasures

The current study assumes a stationary user and does not account for personalization (where different users receive different content in the same location). Future work is needed to model moving targets and personalized LBS responses.

To mitigate these risks, the authors suggest "traffic morphing"—padding encrypted messages to a uniform size or injecting dummy packets. However, these defenses involve a trade-off, as they increase data consumption and reduce battery life.

Summary updated

Abstract

News reports of the last few years indicated that several intelligence agencies are able to monitor large networks or entire portions of the Internet backbone. Such a powerful adversary has only recently been considered by the academic literature. In this paper, we propose a new adversary model for Location Based Services (LBSs). The model takes into account an unauthorized third party, different from the LBS provider itself, that wants to infer the location and monitor the movements of a LBS user. We show that such an adversary can extrapolate the position of a target user by just analyzing the size and the timing of the encrypted traffic exchanged between that user and the LBS provider. We performed a thorough analysis of a widely deployed location based app that comes pre-installed with many Android devices: GoogleNow. The results are encouraging and highlight the importance of devising more effective countermeasures against powerful adversaries to preserve the privacy of LBS users.
BibTeX
@inproceedings{ateniese2015no,
  author = {Giuseppe Ateniese and Briland Hitaj and Luigi Vincenzo Mancini and Nino Vincenzo Verde and Antonio Villani},
  title = {{No Place to Hide that Bytes Won't Reveal: Sniffing Location-Based Encrypted Traffic to Track a User's Position}},
  booktitle = {NSS},
  year = {2015},
  url = {https://openreview.net/forum?id=9zh_7E9wbSm},
}
Figure