SAUSAGE: Security Analysis of Unix domain Socket Usage in Android

Mounir Elgharabawy, Blas Kojusner, Mohammad Mannan, Kevin R. B. Butler, Byron Williams +1 more
4/4/2022
cs.CRcs.SE

Official code: mounir-khaled/SAUSAGE (3 stars, Python, last commit 2022-10-24).

Abstract

The Android operating system is currently the most popular mobile operating system in the world. Android is based on Linux and therefore inherits its features including its Inter-Process Communication (IPC) mechanisms.

Show full abstract

These mechanisms are used by processes to communicate with one another and are extensively used in Android. While Android-specific IPC mechanisms have been studied extensively, Unix domain sockets have not been examined comprehensively, despite playing a crucial role in the IPC of highly privileged system daemons. In this paper, we propose SAUSAGE, an efficient novel static analysis framework to study the security properties of these sockets. SAUSAGE considers access control policies implemented in the Android security model, as well as authentication checks implemented by the daemon binaries. It is a fully static analysis framework, specifically designed to analyze Unix domain socket usage in Android system daemons, at scale. We use this framework to analyze 200 Android images across eight popular smartphone vendors spanning Android versions 7-9. As a result, we uncover multiple access control misconfigurations and insecure authentication checks. Our notable findings include a permission bypass in highly privileged Qualcomm system daemons and an unprotected socket that allows an untrusted app to set the scheduling priority of other processes running on the system, despite the implementation of mandatory SELinux policies. Ultimately, the results of our analysis are worrisome; all vendors except the Android Open Source Project (AOSP) have access control issues, allowing an untrusted app to communicate to highly privileged daemons through Unix domain sockets introduced by hardware manufacturer or vendor customization.

View on arXivView PDF

Code Implementations(1)

32PythonMar 9, 20224 years ago

Similar Papers

Cite this paper

@article{elgharabawy2022sausage,
  title  = {SAUSAGE: Security Analysis of Unix domain Socket Usage in Android},
  author = {Mounir Elgharabawy and Blas Kojusner and Mohammad Mannan and Kevin R. B. Butler and Byron Williams and Amr Youssef},
  year   = {2022},
  eprint = {2204.01516},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.01516}
}

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/2204.01516.svg)](https://codeofpaper.com/paper/2204.01516)

Discussion