Dissecting Residual APIs in Custom Android ROMs
摘要
Many classic software vulnerabilities (e.g., Heartbleed) are rooted in unused code. In this work, we aim to understand whether unused Android functionality may similarly open unnecessary attack opportunities. Our study focuses on OEM-introduced APIs, which are added and removed erratically through different device models and releases. This instability contributes to the production of bloated custom APIs, some of which may not even be used on a particular device. We call such unused APIs Residuals. In this work, we conduct the first large-scale investigation of custom Android Residuals to understand whether they may lead to access control vulnerabilities. Our investigation is driven by the intuition that it is challenging for vendor developers to ensure proper protection of Residuals. Since they are deemed unnecessary, Residuals are naturally overlooked during integration and maintenance. This is particularly exacerbated by the complexities of Android's ever-evolving access control mechanism. To facilitate the study at large, we propose a set of analysis techniques that detect and evaluate Residuals' access control enforcement. Our techniques feature a synergy between application and framework program analysis to recognize potential Residuals in specially curated ROM samples. The Residual implementations are then statically analyzed to detect potential evolution-induced access control vulnerabilities. Our study reveals that Residuals are prevalent among OEMs. More importantly, we find that their presence may even lead to security-critical vulnerabilities.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- On the (In)Security of Non-resettable Device Identifiers in Custom Android Systems 引用了 Uncovering Intent based Leak of Sensitive Data in Android Framework
- A Longitudinal Analysis Of Replicas in the Wild Wild Android 引用了 On Demystifying the Android Application Framework: Re-Visiting Android Permission Specification Analysis
- A Longitudinal Analysis Of Replicas in the Wild Wild Android 引用了 Kratos: Discovering Inconsistent Security Policy Enforcement in the Android Framework
- A Longitudinal Analysis Of Replicas in the Wild Wild Android 引用了 AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency Detection
- Uncovering Intent based Leak of Sensitive Data in Android Framework 引用了 On Demystifying the Android Application Framework: Re-Visiting Android Permission Specification Analysis
- Uncovering Intent based Leak of Sensitive Data in Android Framework 引用了 Kratos: Discovering Inconsistent Security Policy Enforcement in the Android Framework
- Uncovering Intent based Leak of Sensitive Data in Android Framework 引用了 AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency Detection
- BaseMirror: Automatic Reverse Engineering of Baseband Commands from Android's Radio Interface Layer 引用了 Kratos: Discovering Inconsistent Security Policy Enforcement in the Android Framework
- Less is More: Quantifying the Security Benefits of Debloating Web Applications 引用了 Most Websites Don't Need to Vibrate: A Cost-Benefit Approach to Improving Browser Security
- AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency Detection 引用了 On Demystifying the Android Application Framework: Re-Visiting Android Permission Specification Analysis
- AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency Detection 引用了 Kratos: Discovering Inconsistent Security Policy Enforcement in the Android Framework
引用它的顶会 Paper9
- Uncovering Intent based Leak of Sensitive Data in Android FrameworkHao Zhou, Xiapu Luo, Haoyu Wang, Haipeng CaiCCS 2022 · 9 次引用
- 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 次引用
- A Longitudinal Analysis Of Replicas in the Wild Wild AndroidSyeda Mashal Abbas Zaidi, Shahpar Khan, Parjanya Vyas, Yousra AaferASE 2024
它引用的 Paper13
- On Demystifying the Android Application Framework: Re-Visiting Android Permission Specification AnalysisMichael Backes, Sven Bugiel, Erik Derr, Patrick D. McDaniel 等USENIX Security 2016 · 161 次引用
- Less is More: Quantifying the Security Benefits of Debloating Web ApplicationsBabak Amin Azad, Pierre Laperdrix, Nick NikiforakisUSENIX Security 2019 · 100 次引用
- AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency DetectionYousra Aafer, Jianjun Huang, Yi Sun, Xiangyu Zhang 等NDSS 2018 · 95 次引用
- Kratos: Discovering Inconsistent Security Policy Enforcement in the Android FrameworkYuru Shao, Qi Alfred Chen, Zhuoqing Morley Mao, Jason Ott 等NDSS 2016 · 85 次引用
- Most Websites Don't Need to Vibrate: A Cost-Benefit Approach to Improving Browser SecurityPeter Snyder, Cynthia Bagier Taylor, Chris KanichCCS 2017 · 75 次引用
相关 Paper
- Post-GDPR Threat Hunting on Android Phones: Dissecting OS-level Safeguards of User-unresettable IdentifiersMark Huasong Meng, Qing Zhang, Guangshuai Xia, Yuwei Zheng 等NDSS 2023
- 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
- Demystifying Android Non-SDK APls: Measurement and UnderstandingShishuai Yang, Rui Li, Jiongyi Chen, Wenrui Diao 等ICSE 2022 · 14 次引用
- Harvesting Inconsistent Security Configurations in Custom Android ROMs via Differential AnalysisYousra Aafer, Xiao Zhang, Wenliang DuUSENIX Security 2016 · 43 次引用
- Trust, But Verify: A Longitudinal Analysis Of Android OEM Compliance and CustomizationAndrea Possemato, Simone Aonzo, Davide Balzarotti, Yanick FratantonioS&P 2021 · 21 次引用
