Skip to main content
QUICK REVIEW

[Paper Review] Automatically Securing Permission-Based Software by Reducing the Attack Surface: An Application to Android

Alexandre Bartel, Jacques Klein|arXiv (Cornell University)|May 22, 2012
Advanced Malware Detection TechniquesComputer Science21 references50 citations
TL;DR

This paper presents COPES, a static analysis tool that automatically identifies permission gaps in Android applications by analyzing bytecode to determine the minimal set of required permissions, reducing attack surface. It discovers that 94 out of 742 and 35 out of 679 analyzed apps have unnecessary declared permissions, demonstrating that permission over-declaration is a widespread issue in Android apps.

ABSTRACT

A common security architecture, called the permission-based security model (used e.g. in Android and Blackberry), entails intrinsic risks. For instance, applications can be granted more permissions than they actually need, what we call a "permission gap". Malware can leverage the unused permissions for achieving their malicious goals, for instance using code injection. In this paper, we present an approach to detecting permission gaps using static analysis. Our prototype implementation in the context of Android shows that the static analysis must take into account a significant amount of platform-specific knowledge. Using our tool on two datasets of Android applications, we found out that a non negligible part of applications suffers from permission gaps, i.e. does not use all the permissions they declare.

Motivation & Objective

  • To address the security risk posed by permission gaps in permission-based systems like Android, where apps declare more permissions than needed.
  • To reduce the attack surface by identifying and eliminating unused or unnecessary permissions in Android applications.
  • To automate the process of determining the minimal required permission set, avoiding manual and error-prone declaration.
  • To provide a systematic, reusable method for documenting platform-level permission requirements across framework APIs.

Proposed method

  • Constructs a boolean matrix algebra representation of the permission-based security model to formalize permission dependencies.
  • Performs static analysis on Android framework bytecode to extract a mapping from each API method to the permissions it requires.
  • Analyzes application bytecode to identify all framework methods actually invoked by the app.
  • Computes the minimal required permission set as the union of all permissions required by invoked methods.
  • Calculates the permission gap as the difference between declared permissions and the computed required set.
  • Validates results by comparing with concurrent testing-based approaches, showing complementarity and identifying discrepancies.

Experimental results

Research questions

  • RQ1To what extent do Android applications declare more permissions than they actually use, creating a permission gap?
  • RQ2Can static analysis accurately and automatically infer the minimal required permission set for Android applications?
  • RQ3How does a static analysis-based approach compare to testing-based approaches in identifying permission usage?
  • RQ4Can the proposed method systematically document permission requirements across the Android framework?
  • RQ5What is the real-world prevalence of permission gaps in production Android applications?

Key findings

  • The evaluation on 742 and 679 Android applications revealed that 94 and 35 apps, respectively, suffer from permission gaps, indicating that over-declaration is a non-negligible issue.
  • The static analysis approach successfully identified 9,562 Android framework entry points that check permissions, enabling systematic documentation of permission requirements.
  • The method discovered discrepancies with a concurrent testing-based approach, highlighting the importance of complementary analysis techniques.
  • The approach is fully automated and does not require expert input or manual test seed generation, unlike competing methods.
  • The results validate that permission gaps are prevalent and that static analysis is a viable and scalable method for detecting them.
  • The study demonstrates that static analysis can effectively reduce the attack surface by minimizing unnecessary permission declarations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.