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