Lune

CCS2021Top-tier venue

Dissecting Residual APIs in Custom Android ROMs

Zeinab El-Rewini, Yousra Aafer

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • On the (In)Security of Non-resettable Device Identifiers in Custom Android Systems cites Uncovering Intent based Leak of Sensitive Data in Android Framework
  • A Longitudinal Analysis Of Replicas in the Wild Wild Android cites On Demystifying the Android Application Framework: Re-Visiting Android Permission Specification Analysis
  • A Longitudinal Analysis Of Replicas in the Wild Wild Android cites Kratos: Discovering Inconsistent Security Policy Enforcement in the Android Framework
  • A Longitudinal Analysis Of Replicas in the Wild Wild Android cites AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency Detection
  • Uncovering Intent based Leak of Sensitive Data in Android Framework cites On Demystifying the Android Application Framework: Re-Visiting Android Permission Specification Analysis
  • Uncovering Intent based Leak of Sensitive Data in Android Framework cites Kratos: Discovering Inconsistent Security Policy Enforcement in the Android Framework
  • Uncovering Intent based Leak of Sensitive Data in Android Framework cites AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency Detection
  • BaseMirror: Automatic Reverse Engineering of Baseband Commands from Android's Radio Interface Layer cites Kratos: Discovering Inconsistent Security Policy Enforcement in the Android Framework
  • Less is More: Quantifying the Security Benefits of Debloating Web Applications cites 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 cites On Demystifying the Android Application Framework: Re-Visiting Android Permission Specification Analysis
  • AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency Detection cites Kratos: Discovering Inconsistent Security Policy Enforcement in the Android Framework
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Uncovering Intent based Leak of Sensitive Data in Android FrameworkHao Zhou, Xiapu Luo, Haoyu Wang, Haipeng CaiCCS 2022 · 9 citations
  2. 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 citations
  3. On the (In)Security of Non-resettable Device Identifiers in Custom Android SystemsZikan Dong, Liu Wang, Guoai Xu, Haoyu WangASE 2025 · 1 citation
  4. BaseMirror: Automatic Reverse Engineering of Baseband Commands from Android's Radio Interface LayerWenqiang Li, Haohuang Wen, Zhiqiang LinCCS 2024 · 1 citation
  5. A Longitudinal Analysis Of Replicas in the Wild Wild AndroidSyeda Mashal Abbas Zaidi, Shahpar Khan, Parjanya Vyas, Yousra AaferASE 2024

Builds on13

  1. On Demystifying the Android Application Framework: Re-Visiting Android Permission Specification AnalysisMichael Backes, Sven Bugiel, Erik Derr, Patrick D. McDaniel et al.USENIX Security 2016 · 161 citations
  2. Less is More: Quantifying the Security Benefits of Debloating Web ApplicationsBabak Amin Azad, Pierre Laperdrix, Nick NikiforakisUSENIX Security 2019 · 100 citations
  3. AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency DetectionYousra Aafer, Jianjun Huang, Yi Sun, Xiangyu Zhang et al.NDSS 2018 · 95 citations
  4. Kratos: Discovering Inconsistent Security Policy Enforcement in the Android FrameworkYuru Shao, Qi Alfred Chen, Zhuoqing Morley Mao, Jason Ott et al.NDSS 2016 · 85 citations
  5. Most Websites Don't Need to Vibrate: A Cost-Benefit Approach to Improving Browser SecurityPeter Snyder, Cynthia Bagier Taylor, Chris KanichCCS 2017 · 75 citations

Related papers

  1. Post-GDPR Threat Hunting on Android Phones: Dissecting OS-level Safeguards of User-unresettable IdentifiersMark Huasong Meng, Qing Zhang, Guangshuai Xia, Yuwei Zheng et al.NDSS 2023
  2. 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
  3. Demystifying Android Non-SDK APls: Measurement and UnderstandingShishuai Yang, Rui Li, Jiongyi Chen, Wenrui Diao et al.ICSE 2022 · 14 citations
  4. Harvesting Inconsistent Security Configurations in Custom Android ROMs via Differential AnalysisYousra Aafer, Xiao Zhang, Wenliang DuUSENIX Security 2016 · 43 citations
  5. Trust, But Verify: A Longitudinal Analysis Of Android OEM Compliance and CustomizationAndrea Possemato, Simone Aonzo, Davide Balzarotti, Yanick FratantonioS&P 2021 · 21 citations
Dusk over the sea between two cliffs drawn in fine vertical lines