An Android application risk evaluation framework based on minimum permission set identification

Jianmao Xiao, Shizhan Chen, Qiang He, Zhiyong Feng, Xiao Xue

TL;DR

MPDroid is a new framework that identifies the absolute minimum permissions an Android app needs to function by combining app description analysis with actual code inspection. By identifying the gap between what an app requests and what it actually uses, the system can flag overprivileged and potentially malicious applications with significantly higher accuracy than previous methods.

What Problem Does This Paper Address?

The Android security model relies on a permission system: if an app wants to read your contacts or use your camera, it has to ask. However, we face a massive "overprivilege" problem. Research shows that over 80% of Android apps request more permissions than they actually need.

This happens for two reasons: developers are often "lazy" (requesting broad permissions just in case) or malicious (requesting sensitive data for nefarious purposes). Current solutions—like user prompts—fail because most users don't understand the technical implications and suffer from "click-through fatigue." The authors of this paper argue that to truly evaluate app risk, we must first define the Minimum Permission Set: the smallest group of permissions required to support an app's stated features.

Methods

The authors propose MPDroid, a multi-stage framework that moves beyond simple "blacklists" to a more nuanced, behavior-based evaluation.

  1. Functionality Extraction (LDA): The system uses Latent Dirichlet Allocation (LDA) to analyze the textual descriptions of thousands of apps. It clusters apps into "functionality topics" (e.g., "music player," "navigation").
  2. Collaborative Filtering (CF): Borrowing a technique from recommendation engines (like Netflix), MPDroid looks at what permissions "similar" apps (based on their descriptions) usually request. This creates an initial baseline of expected permissions.
  3. Static Analysis (The Reality Check): To verify if the app actually uses what it claims, MPDroid uses tools like Androguard and Pscout. It parses the app's compiled code (APK) to see which Android APIs are actually called. If an app asks for READ_SMS but never calls an SMS-related API, it’s flagged.
  4. Iterative Refinement: The framework runs an iterative algorithm to prune "over-declared" permissions. It compares the permissions recommended for benign apps versus those recommended for malicious apps to identify a "risk gap."
  5. Risk Scoring: Finally, it calculates a risk coefficient based on the "unexpected" permissions found, weighted by their danger level (e.g., accessing the internet is "normal," but reading contacts is "dangerous").

Datasets

The researchers evaluated MPDroid using a substantial real-world dataset:

  • Benign Apps: 16,343 popular apps collected from Google Play (all with 100+ downloads and 5-star ratings).
  • Malicious Apps: 524 apps retrieved from VirusShare.
  • Mapping Dataset: A larger set of 32,671 apps was used specifically to train the functionality-to-permission mapping model.
  • Permission Baseline: 285 standard Android system permissions.

Key Insights and Ideas

  • The "Description-to-Code" Gap: The most powerful insight is that risk lives in the discrepancy between what a developer tells the user the app does (description) and what the app actually does (API calls).
  • Malicious vs. Benign Baselines: The authors found that malicious apps don't just request more permissions; they request different permissions than benign apps with the same descriptions. By training models on both sets, MPDroid can identify "dangerous" outliers.
  • Iterative Pruning: Instead of a single pass, the framework iterates its identification process. In testing, they found that permission data stabilized after just two iterations, effectively isolating the "minimum" set without accidentally removing necessary permissions.

Key Results

MPDroid was compared against the "SF method" (a state-of-the-art bias-based recommendation method). The results showed a massive leap in performance:

  • Risk Detection: For benign apps, the ability to detect overprivilege risks improved by 67.5%.
  • Precision (MAP): MPDroid achieved a Mean Average Precision of 0.931 for benign apps and 0.854 for malicious apps, consistently outperforming the baseline.
  • Efficiency (TRR): The Total-Recall Ratio (a measure of how many permissions the system correctly identifies) was significantly better, especially in malicious app detection where it improved by 52.3%.

Essentially, MPDroid is much better at "calling the bluff" of an app that claims to be a simple wallpaper tool but requests access to your text messages.

Limitations and Future Work

The authors acknowledge a few hurdles:

  • Description Quality: If a developer writes a poor or intentionally misleading description that doesn't reflect the app's features, the LDA model's accuracy drops.
  • Static Analysis Evasion: Sophisticated malware uses code obfuscation or dynamic loading (downloading malicious code after installation) to hide its true API calls from static analysis tools.
  • Future Directions: The team plans to incorporate more data sources, such as user comments and privacy policies, to create a more granular "functional feature" map. They also aim to improve their static analysis to handle "code mixing" and re-packaged malicious apps more effectively.

Summary updated

BibTeX
@article{xiao2020android,
  author = {Jianmao Xiao and Shizhan Chen and Qiang He and Zhiyong Feng and Xiao Xue},
  title = {{An Android application risk evaluation framework based on minimum permission set identification}},
  journal = {J. Syst. Softw.},
  year = {2020},
  url = {https://openreview.net/forum?id=6y8jxofOZu},
}
Figure