AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency Detection

Yousra Aafer, Jianjun Huang, Yi Sun, Xiangyu Zhang, Ninghui Li, Chen TianNDSS 2018

Introduction

The Android ecosystem is characterized by heavy vendor customization. Manufacturers like Samsung, LG, and HTC modify the base Android Open Source Project (AOSP) to add unique features and hardware support. However, this fragmentation introduces a significant security challenge: inconsistent access control. Highly privileged system services, such as WindowManager or ConnectivityService, must be protected by rigorous checks. Because there is no unified standard for implementing these checks, vendors often use diverse coding styles—ranging from explicit permission APIs to implicit UID comparisons—to secure the same sensitive operations (sinks).

Legacy vulnerability detection tools often rely on syntactic, path-insensitive comparisons. If two vendors protect the same API using different code structures, these tools may flag them as inconsistent even if they are semantically identical. Conversely, they might miss subtle, implicit vulnerabilities. AceDroid addresses this by introducing a path-sensitive normalization technique that translates diverse security checks into a canonical model, enabling accurate detection of true logic flaws.

Example of inconsistent access control paths leading to a sensitive sink.

Methodology

AceDroid's core innovation is its ability to understand the underlying semantics of security checks rather than just their syntax. The tool operates through a multi-stage pipeline:

  1. Call Graph Construction: It builds an Inter-procedural Control Flow Graph (ICFG) from public entry points down to sensitive sinks.
  2. Security Check Identification: It identifies both explicit (e.g., checkPermission) and implicit (e.g., if (uid == 1000)) checks.
  3. Canonical Normalization: Diverse checks are mapped to a unified model covering App Aspects (Privilege, Ownership, Status) and User Aspects (User Privilege, Ownership, Status, Restriction).
  4. Path-Sensitive Evaluation: The tool analyzes the logical relationships (AND/OR) of checks along execution paths to determine the effective security requirement.
  5. Inconsistency Detection: By comparing these normalized conditions across different ROMs or within a single image, AceDroid identifies discrepancies that indicate potential vulnerabilities.
The AceDroid analysis pipeline, featuring entry point analysis, in-image analysis, and cross-image comparison.

Key Results and Impact

The researchers evaluated AceDroid on 12 factory Android images from major vendors. The tool successfully identified 73 unique, true-positive access control inconsistencies, significantly outperforming previous state-of-the-art tools like Kratos. Specifically, AceDroid detected 63% more true positives while reducing false positives by 65%.

Confirmed exploits discovered by AceDroid include:

  • LG: Unauthorized keylogging and touch event injection.
  • Samsung: Silent sending of premium SMS messages by bypassing user restrictions.
  • Sony: Unauthorized system shutdowns and power-key event injection.

These results highlight that semantic equivalence is crucial for security analysis in fragmented ecosystems. By filtering out the "noise" of vendor-specific implementation quirks, AceDroid reveals critical gaps in the Android security framework.

Conclusion

AceDroid demonstrates that normalization is essential for analyzing the security of customized operating systems. While challenges remain—such as modeling entirely bespoke vendor services like Samsung's Enterprise Device Manager—AceDroid provides a robust foundation for automated, large-scale vulnerability detection in the complex Android landscape.

Summary updated

BibTeX
@inproceedings{aafer2018acedroid,
  author = {Yousra Aafer and Jianjun Huang and Yi Sun and Xiangyu Zhang and Ninghui Li and Chen Tian},
  title = {{AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency Detection}},
  booktitle = {NDSS},
  year = {2018},
}
Figure