DEFInit: An Analysis of Exposed Android Init Routines
摘要
During the booting process of an Android device, a special daemon called Init is launched by the kernel as the first userspace process. Android allows vendors to extend the behavior of Init by introducing custom routines in .rc files. These Init routines can also be triggered by privileged pre-installed apps in a certain manner to accomplish privileged functionalities. However, as these pre-installed apps may fail to properly protect access to code sites triggering these Init routines, the capabilities of these routines may leak to unprivileged apps, resulting in crossing security boundaries set by the system. To this end, this study aims at investigating the prevalence of these Init routines and their security impact. We present DEFINIT as a tool to help automate the process of identifying Init routines exposed by pre-installed apps and estimating their potential security impact. Our findings are alarming. We found that custom Init routines added by vendors were substantial and had significant security impact. On a data set of 259 firmware from the top 21 vendors worldwide, we identified 1, 947 exposed custom Init routines in 101 firmware from 13 vendors. Of these routines, 515 performed at least one sensitive action. We verified 89 instances spanning 30 firmware from 6 vendors, allowing unprivileged apps to perform sensitive functionalities without user interaction, including disabling SELinux enforcement, sniffing network traffic, reading system logs, among others.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- User-Space Dependency-Aware Rehosting for Linux-Based Firmware Binaries 引用了 BootStomp: On the Security of Bootloaders in Mobile Devices
- SoK: History Doesn't Repeat Itself, but Android Design-Level Vulnerabilities Rhyme in OpenHarmony 引用了 Cloak and Dagger: From Two Permissions to Complete Control of the UI Feedback Loop
- SoK: History Doesn't Repeat Itself, but Android Design-Level Vulnerabilities Rhyme in OpenHarmony 引用了 ATtention Spanned: Comprehensive Vulnerability Analysis of AT Commands Within the Android Ecosystem
- BootStomp: On the Security of Bootloaders in Mobile Devices 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- Virtual Reality, Real Problems: A Longitudinal Security Analysis of VR Firmware 引用了 An Analysis of Pre-installed Android Software
- Virtual Reality, Real Problems: A Longitudinal Security Analysis of VR Firmware 引用了 ATtention Spanned: Comprehensive Vulnerability Analysis of AT Commands Within the Android Ecosystem
引用它的顶会 Paper4
- User-Space Dependency-Aware Rehosting for Linux-Based Firmware BinariesChuan Qin, Cen Zhang, Yaowen Zheng, Puzhuo Liu 等NDSS 2026 · 2 次引用
- Lost in Migration: Exposing Android Framework Vulnerabilities in Parallel Java-Kotlin ImplementationsRui Li, Wenrui Diao, Debin GaoCCS 2026
- SoK: History Doesn't Repeat Itself, but Android Design-Level Vulnerabilities Rhyme in OpenHarmonyHongkai Chen, Yuqing Yang, Chao Wang, Arpit Nandi 等USENIX Security 2026
- Virtual Reality, Real Problems: A Longitudinal Security Analysis of VR FirmwareVamsi Shankar Simhadri, Yichang Xiong, Habiba Farrukh, Xiaokuan ZhangCCS 2025
它引用的 Paper12
- SOK: (State of) The Art of War: Offensive Techniques in Binary AnalysisYan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens 等S&P 2016 · 1,085 次引用
- Cloak and Dagger: From Two Permissions to Complete Control of the UI Feedback LoopYanick Fratantonio, Chenxiong Qian, Simon P. Chung, Wenke LeeS&P 2017 · 126 次引用
- An Analysis of Pre-installed Android SoftwareJulien Gamba, Mohammed Rashed, Abbas Razaghpanah, Juan Tapiador 等S&P 2020 · 105 次引用
- BootStomp: On the Security of Bootloaders in Mobile DevicesNilo Redini, Aravind Machiry, Dipanjan Das, Yanick Fratantonio 等USENIX Security 2017 · 66 次引用
- ATtention Spanned: Comprehensive Vulnerability Analysis of AT Commands Within the Android EcosystemDave (Jing) Tian, Grant Hernandez, Joseph I. Choi, Vanessa Frost 等USENIX Security 2018 · 49 次引用
相关 Paper
- FIRMSCOPE: Automatic Uncovering of Privilege-Escalation Vulnerabilities in Pre-Installed Apps in Android FirmwareMohamed Elsabagh, Ryan Johnson, Angelos Stavrou, Chaoshun Zuo 等USENIX Security 2020
- Trust, But Verify: A Longitudinal Analysis Of Android OEM Compliance and CustomizationAndrea Possemato, Simone Aonzo, Davide Balzarotti, Yanick FratantonioS&P 2021 · 21 次引用
- Large-scale Security Measurements on the Android Firmware EcosystemQinsheng Hou, Wenrui Diao, Yanhao Wang, Xiaofeng Liu 等ICSE 2022 · 21 次引用
- Harvesting Inconsistent Security Configurations in Custom Android ROMs via Differential AnalysisYousra Aafer, Xiao Zhang, Wenliang DuUSENIX Security 2016 · 43 次引用
- Automated Repair of Information Flow Security in Android Implicit Inter-App CommunicationAbhishek Tiwari, Jyoti Prakash, Zhen Dong, Carlo A. FuriaFM 2024
