A Systematic Study of Android Non-SDK (Hidden) Service API Security

Yi He, Yacong Gu, Purui Su, Kun Sun, Yajin Zhou +2 more
3/17/2022
cs.CR

Official code: fripSide/ServiceAudit (4 stars, Kotlin, last commit 2021-12-08).

Abstract

Android allows apps to communicate with its system services via system service helpers so that these apps can use various functions provided by the system services. Meanwhile, the system services rely on their service helpers to enforce security checks for protection.

Show full abstract

Unfortunately, the security checks in the service helpers may be bypassed via directly exploiting the non-SDK (hidden) APIs, degrading the stability and posing severe security threats such as privilege escalation, automatic function execution without users' interactions, crashes, and DoS attacks. Google has proposed various approaches to address this problem, e.g., case-by-case fixing the bugs or even proposing a blacklist to block all the non-SDK APIs. However, the developers can still figure out new ways of exploiting these hidden APIs to evade the non-SDKs restrictions. In this paper, we systematically study the vulnerabilities due to the hidden API exploitation and analyze the effectiveness of Google's countermeasures. We aim to answer if there are still vulnerable hidden APIs that can be exploited in the newest Android 12. We develop a static analysis tool called ServiceAudit to automatically mine the inconsistent security enforcement between service helper classes and the hidden service APIs. We apply ServiceAudit to Android 6~12. Our tool discovers 112 vulnerabilities in Android 6 with higher precision than existing approaches. Moreover, in Android 11 and 12, we identify more than 25 hidden APIs with inconsistent protections; however, only one of the vulnerable APIs can lead to severe security problems in Android 11, and none of them work on Android 12.

View on arXivView PDF

Code Implementations(1)

Android Service Helper bypass vulnerabilties detecting

41KotlinMay 26, 20194 years ago

Similar Papers

Cite this paper

@article{he2022systematic,
  title  = {A Systematic Study of Android Non-SDK (Hidden) Service API Security},
  author = {Yi He and Yacong Gu and Purui Su and Kun Sun and Yajin Zhou and Zhi Wang and Qi Li},
  year   = {2022},
  eprint = {2203.09374},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.09374}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.09374.svg)](https://codeofpaper.com/paper/2203.09374)

Discussion