Trust, But Verify: A Longitudinal Analysis Of Android OEM Compliance and Customization
Andrea Possemato, Simone Aonzo, Davide Balzarotti, Yanick Fratantonio
摘要
Nowadays, more than two billions of mobile devices run Android OS. At the core of this success are the open source nature of the Android Open Source Project and vendors' ability to customize the code base and ship it on their own devices. While the possibility of customizations is beneficial to vendors, they can potentially lead to compatibility and security problems. To prevent these problems, Google developed a set of requirements that must be satisfied for a vendor to brand its devices as "Android," and recently introduced Project Treble as an effort to partition vendor customizations. These requirements are encoded as part of a textual document (called Compatibility Definition Document, or CDD) and various automated tests. This paper performs the first longitudinal study on Android OEM customizations. We first built a dataset of 2,907 ROMs, spanning across 42 different vendors, and covering Android versions from 1.6 to 9.0 (years 2009-2020). We then developed an analysis framework and pipeline to extract each ROM's customization layers and evaluate it across several metrics. For example, we analyze ROMs to determine whether they are compliant with respect to the various requirements and whether their customizations negatively affect the security posture of the overall device. In the process, we focus on various aspects, ranging from security hardening of binaries, SELinux policies, Android init scripts, and kernel security hardening techniques. Our results are worrisome. We found 579 over 2,907 ( ∼ 20%) of the ROMs have at least one violation for the CDD related to their Android version -incredibly, 11 of them are branded by Google itself. Some of our findings suggest that vendors often go out of their way to bypass or "comment out" safety nets added by the Android security team. In other cases, we found ROMs that modify init scripts to launch at boot outdated versions (with known CVEs and public POCs) of programs as root and reachable from a remote attacker (e.g., tcpdump). This paper shows that Google's efforts are not enough, and we offer several recommendations on how to improve the compliance check pipelines.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- An Analysis of Pre-installed Android Software 引用了 Harvesting Inconsistent Security Configurations in Custom Android ROMs via Differential Analysis
- ChoiceJacking: Compromising Mobile Devices through Malicious Chargers like a Decade ago 引用了 Defects-in-Depth: Analyzing the Integration of Effective Defenses against One-Day Exploits in Android Kernels
- On the (In)Security of Non-resettable Device Identifiers in Custom Android Systems 引用了 An Analysis of Pre-installed Android Software
- On the (In)Security of Non-resettable Device Identifiers in Custom Android Systems 引用了 Dissecting Residual APIs in Custom Android ROMs
- Defects-in-Depth: Analyzing the Integration of Effective Defenses against One-Day Exploits in Android Kernels 引用了 An Analysis of Pre-installed Android Software
- Defects-in-Depth: Analyzing the Integration of Effective Defenses against One-Day Exploits in Android Kernels 引用了 BigMAC: Fine-Grained Policy Analysis of Android Firmware
- Defects-in-Depth: Analyzing the Integration of Effective Defenses against One-Day Exploits in Android Kernels 引用了 Dissecting Residual APIs in Custom Android ROMs
- BaseMirror: Automatic Reverse Engineering of Baseband Commands from Android's Radio Interface Layer 引用了 BigMAC: Fine-Grained Policy Analysis of Android Firmware
- BaseMirror: Automatic Reverse Engineering of Baseband Commands from Android's Radio Interface Layer 引用了 Dissecting Residual APIs in Custom Android ROMs
引用它的顶会 Paper9
- Dissecting Residual APIs in Custom Android ROMsZeinab El-Rewini, Yousra AaferCCS 2021 · 8 次引用
- Defects-in-Depth: Analyzing the Integration of Effective Defenses against One-Day Exploits in Android KernelsLukas Maar, Florian Draschbacher, Lukas Lamster, Stefan MangardUSENIX Security 2024 · 5 次引用
- On the (In)Security of Non-resettable Device Identifiers in Custom Android SystemsZikan Dong, Liu Wang, Guoai Xu, Haoyu WangASE 2025 · 1 次引用
- BaseMirror: Automatic Reverse Engineering of Baseband Commands from Android's Radio Interface LayerWenqiang Li, Haohuang Wen, Zhiqiang LinCCS 2024 · 1 次引用
- ChoiceJacking: Compromising Mobile Devices through Malicious Chargers like a Decade agoFlorian Draschbacher, Lukas Maar, Mathias Oberhuber, Stefan MangardUSENIX Security 2025
它引用的 Paper4
- An Analysis of Pre-installed Android SoftwareJulien Gamba, Mohammed Rashed, Abbas Razaghpanah, Juan Tapiador 等S&P 2020 · 105 次引用
- Harvesting Inconsistent Security Configurations in Custom Android ROMs via Differential AnalysisYousra Aafer, Xiao Zhang, Wenliang DuUSENIX Security 2016 · 43 次引用
- BigMAC: Fine-Grained Policy Analysis of Android FirmwareGrant Hernandez, Dave (Jing) Tian, Anurag Swarnim Yadav, Byron J. Williams 等USENIX Security 2020
- BScout: Direct Whole Patch Presence Test for Java ExecutablesJiarun Dai, Yuan Zhang, Zheyue Jiang, Yingtian Zhou 等USENIX Security 2020
相关 Paper
- Born with a Silver Spoon: On the (In)Security of Native Granted App Privileges in Custom Android ROMsChao Wang, Yanjie Zhao, Jiapeng Deng, Haoyu WangS&P 2025
- Deploying Android Security Updates: an Extensive Study Involving Manufacturers, Carriers, and End UsersKailani R. Jones, Ting-Fang Yen, Sathya Chandran Sundaramurthy, Alexandru G. BardasCCS 2020 · 14 次引用
- Large-scale Security Measurements on the Android Firmware EcosystemQinsheng Hou, Wenrui Diao, Yanhao Wang, Xiaofeng Liu 等ICSE 2022 · 21 次引用
- 50 Shades of Support: A Device-Centric Analysis of Android Security UpdatesAbbas Acar, Güliz Seray Tuncay, Esteban Luques, Harun Oz 等NDSS 2024
- DEFInit: An Analysis of Exposed Android Init RoutinesYuede Ji, Mohamed Elsabagh, Ryan Johnson, Angelos StavrouUSENIX Security 2021 · 9 次引用
