OS-level Side Channels without Procfs: Exploring Cross-App Information Leakage on iOS

Xiaokuan Zhang, Xueqiang Wang, Xiaolong Bai, Yinqian Zhang, XiaoFeng WangNdss 2018

Introduction

In mobile security, Android has long been scrutinized for its procfs pseudo-filesystem, which allows applications to monitor the resource usage of other processes. In contrast, iOS is often considered a "black box" due to its lack of procfs and its aggressive sandboxing. This paper presents the first comprehensive study of OS-level side-channel attacks on iOS, proving that even without procfs, the platform is vulnerable to cross-app information leakage. By monitoring global system statistics, an unprivileged app can infer foreground application usage, specific website visits, and private financial transactions.

Methodology

The researchers identified several "leaky" APIs that provide global system statistics, such as host_statistics64() for memory and getifaddrs() for network traffic. Because global statistics are significantly noisier than per-process statistics, the authors developed two robust inference frameworks:

  1. Classification Framework: Designed to identify apps or websites, this pipeline utilizes Symbolic Aggregate approXimation (SAX) to discretize time-series data and Bag-of-Patterns (BOP) to generate frequency histograms of system behaviors. Final classification is performed using Support Vector Machines (SVM).
  2. Pattern Matching Framework: To detect specific in-app actions (e.g., clicking a "Pay" button), the researchers employed a multi-dimensional Dynamic Time Warping (DTW) algorithm. This allows an attacker to compare a live, noisy trace against a known signature of an activity, even if the timing varies slightly.
  3. Timing Side Channel: A vulnerability was discovered in the fileExistsAtPath: API. While it correctly denies access to files outside a sandbox, it takes significantly longer to return FALSE if a file exists than if it does not, creating a timing side channel that bypasses sandbox isolation.

Key Insights: The Power of Aggregation

A central finding of the study is that while a single global counter (like free memory) may be too noisy to be useful on its own, combining multiple vectors—such as page faults and network bytes in/out—creates a unique "system signature" for specific app behaviors.

Figure 1: Time-series traces of memory and network statistics showing distinct signatures for Amazon, Yelp, and Spotify.

Furthermore, the researchers demonstrated cross-device robustness. Models trained on a jailbroken device, where data collection is more straightforward, could be successfully used to attack non-jailbroken devices, proving the attack is practical for real-world exploitation.

Experimental Evaluation and Results

The framework was evaluated against several datasets, including 120 popular iOS apps and 100 top websites. The results demonstrate high precision in identifying user activity:

  • App Identification: The framework achieved 89.2% Top-1 accuracy and 97.5% Top-3 accuracy in identifying which of the 120 apps was running in the foreground.
  • Website Fingerprinting: In Safari, the system identified which of 100 websites a user visited with 84.5% Top-3 accuracy.
  • Bitcoin De-anonymization: By detecting the exact second a transaction was made via side channels and correlating it with the public Bitcoin blockchain, the researchers successfully linked specific Bitcoin addresses to physical iOS devices.
Figure 3: Accuracy metrics for app identification, comparing individual features against the combined "All" feature set.

Conclusion and Mitigations

The primary limitation of these attacks is the requirement for the attacking app to run in the background, which typically requires declaring a "Background Mode" (e.g., audio or location tracking) that may be scrutinized during Apple's App Store vetting process.

Following this research, the authors collaborated with Apple to implement mitigations. Apple has since introduced rate limiting for these APIs and coarse-grained return values (rounding numbers to hide fine-grained fluctuations) in iOS 11 and macOS High Sierra. This work highlights that even "secure" APIs can leak sensitive information through execution latency and global resource fluctuations.

Summary updated

BibTeX
@inproceedings{zhang2018os,
  author = {Xiaokuan Zhang and Xueqiang Wang and Xiaolong Bai and Yinqian Zhang and XiaoFeng Wang},
  title = {{OS-level Side Channels without Procfs: Exploring Cross-App Information Leakage on iOS}},
  booktitle = {Ndss},
  year = {2018},
}
Figure