Finding Clues for Your Secrets: Semantics-Driven, Learning-Based Privacy Discovery in Mobile Apps

Yuhong Nan, Zhemin Yang, Xiaofeng Wang, Yuan Zhang, Donglai Zhu, Min Yang

Introduction

Traditional privacy-leak detection for Android typically relies on identifying "sources" (e.g., GPS API calls) and "sinks" (e.g., network transmission). However, modern mobile apps often handle sensitive data retrieved from their own servers—such as user profiles, home addresses, or purchase histories—rather than just local hardware sensors. Because this data is delivered via generic network or file APIs, standard tools struggle to distinguish sensitive information from mundane content like news headlines. This creates a significant blind spot in mobile security, especially as third-party SDKs often "harvest" this data without explicit user consent.

An example of privacy harvesting where a news app leaks social media tokens to a third-party SDK.

Methodology: The ClueFinder Pipeline

To address this gap, researchers developed ClueFinder, a tool that leverages the semantic clues developers leave in their code (e.g., variable names like user_password or addr). ClueFinder shifts the focus from the data's origin to its semantic meaning.

ClueFinder's multi-stage pipeline for semantics-driven privacy discovery.

The pipeline consists of four primary stages:

  1. Semantics Locator: Scans decompiled code for keywords, prefixes, and acronyms across variables, methods, and constants.
  2. Semantic Checker: Employs NLP techniques like Part-of-Speech (POS) tagging and dependency parsing to filter false positives (e.g., distinguishing "address" as a noun vs. a verb).
  3. Structure Analyzer: Uses a Support Vector Machine (SVM) classifier to examine program structures, confirming if a code statement performs a sensitive operation based on method names and parameter types.
  4. Leakage Tracker: Performs data-flow analysis to determine if identified sensitive sources reach a "sink," specifically targeting third-party library boundaries.

Evaluation and Key Findings

The researchers evaluated ClueFinder on a massive dataset of 445,668 mobile apps from Google Play and the Tencent App Store. The tool achieved a high precision of 91.5%, significantly outperforming existing tools like SUSI and BidText.

The study revealed a pervasive privacy crisis:

  • Widespread Leakage: Approximately 26.5% (118,296) of the analyzed apps leaked private data to 3,502 different third-party libraries.
  • High-Risk Categories: In popular Google Play apps, nearly 40% were found to leak data. Interestingly, non-advertising libraries (e.g., analytics and social utilities) accounted for 65% of the risk.
  • Real-World Impact: ClueFinder identified several high-profile leaks. For instance, the news app The-Paper was found leaking Weibo access tokens to the ShareSDK library, and Tinder was observed sharing precise locations and dating profiles with the AppBoy library.

Conclusion

ClueFinder demonstrates that "code is documentation." Even in obfuscated apps, semantic clues often survive in data-related modules. By moving beyond system APIs to analyze server-side data semantics, this research highlights a new frontier in mobile privacy. While aggressive obfuscation remains a challenge, ClueFinder provides a robust framework for identifying the "aggressive harvesting" of user data by third-party SDKs.

Summary updated

BibTeX
@inproceedings{nan2018finding,
  author = {Yuhong Nan and Zhemin Yang and Xiaofeng Wang and Yuan Zhang and Donglai Zhu and Min Yang},
  title = {{Finding Clues for Your Secrets: Semantics-Driven, Learning-Based Privacy Discovery in Mobile Apps}},
  booktitle = {NDSS},
  year = {2018},
}
Figure