Analysis of Location Data Leakage in the Internet Traffic of Android-based Mobile Devices

Nir Sivan, Ron Bitton, Asaf Shabtai

Introduction

While modern mobile security often relies on encryption protocols like HTTPS/TLS, a significant volume of sensitive data continues to be transmitted in plaintext. This research investigates the phenomenon of location data leakage, where precise GPS coordinates are unintentionally exposed within the HTTP traffic of Android devices. The study explores whether an adversary—such as an ISP, VPN provider, or malicious Wi-Fi operator—can reconstruct a user's meaningful life patterns from these fragmented, "noisy" data leaks.

Methodology

The researchers developed a robust framework to capture and analyze traffic from 71 participants. The process involved several key stages:

  1. Traffic Interception: A custom VPN client tunneled all device traffic to a research server.
  2. Ground Truth Collection: A dedicated Android agent app recorded actual sensor-based GPS coordinates to validate network-level leaks.
  3. Extraction & Filtering: Regular expressions identified coordinates in standard Android API formats. To ensure accuracy, the team applied filters to distinguish between outgoing user data and incoming traffic (such as weather data for other regions).
Filtering results for extracted waypoints across different methods
  1. POI Inference: The study adapted clustering algorithms (Incremental Clustering, DBSCAN, and ST-DBSCAN) to handle sparse data, incorporating temporal bounds to identify "stay points" rather than transient movement.
  2. App Attribution: Hostnames associated with leaks were correlated with installed applications using a modified tf-idf measure.

Dataset and Scope

The study utilized a unique, self-collected dataset comprising 71 participants (primarily university students) monitored over an average of 37 days. This dual-stream approach—capturing both raw network traffic and verified ground truth—allowed for a precise measurement of leakage utility that is rarely seen in privacy research.

Key Insights and Results

The findings reveal a pervasive privacy risk. Over 85% of devices leaked location data at least once, with 55% of devices leaking data at a medium-to-high frequency (ranging from hourly to every six hours).

One of the most significant findings is that sparse data is sufficient for tracking. Even though the "leakage coverage"—the percentage of time a device was active where a leak occurred—was typically very low, it was highly concentrated.

Distribution of leakage coverage rates among users, showing the prevalence of sparse data

While only 27% of all visited locations were discovered via leaks, these locations represented 61% of the users' total time. This indicates that leaks are most likely to occur at sensitive, high-occupancy Points of Interest (POIs) like home and work. Many of these leaks were traced back to legacy third-party libraries, ad networks, and unencrypted APIs (such as the Google Maps JavaScript API over HTTP).

Conclusion and Future Work

The study demonstrates that an adversary in a privileged network position can aggregate sparse plaintext leaks into a high-fidelity map of user behavior. As the industry moves toward universal encryption, legacy applications and misconfigured APIs remain significant vulnerabilities. The authors propose OS-level enforcement of encryption for location-aware apps and the development of "PII Obfuscation" tools that inject spoofed data to confuse adversarial clustering algorithms.

Summary updated

BibTeX
@inproceedings{sivan2019analysis,
  author = {Nir Sivan and Ron Bitton and Asaf Shabtai},
  title = {{Analysis of Location Data Leakage in the Internet Traffic of Android-based Mobile Devices}},
  booktitle = {RAID},
  year = {2019},
}
Figure