arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.01516cs.CRcs.SE
收藏

SAUSAGE:Android中Unix域套接字使用的安全性分析

SAUSAGE: Security Analysis of Unix domain Socket Usage in Android

Mounir Elgharabawy, Blas Kojusner, Mohammad Mannan, Kevin R. B. Butler, Byron Williams, Amr Youssef

摘要:

Android操作系统是目前世界上最流行的移动操作系统。Android基于Linux,因此继承了其功能,包括进程间通信(IPC)机制。这些机制被进程用来相互通信,并在Android中广泛使用。虽然Android特定的IPC机制已经被广泛研究,但Unix域套接字尚未被全面研究,尽管它在高特权系统守护进程的IPC中起着至关重要的作用。在本文中,我们提出了SAUSAGE,一个有效的新的静态分析框架来研究这些套接字的安全属性。SAUSAGE考虑了Android安全模型中实现的访问控制策略,以及守护程序二进制文件实现的身份验证检查。它是一个完全的静态分析框架,专门用于分析Android系统守护进程中Unix域套接字的使用情况。我们使用这个框架来分析200个Android图像在8个流行的智能手机供应商跨越Android版本7-9。因此,我们发现多个访问控制错误配置和不安全的身份验证检查。我们的显著发现包括高特权Qualcomm系统守护程序中的权限绕过和不受保护的套接字,该套接字允许不受信任的应用程序设置系统上运行的其他进程的调度优先级,尽管实施了强制性SELinux策略。最终,我们的分析结果令人担忧;除了Android开源项目(AOSP)之外,所有供应商都存在访问控制问题,允许不受信任的应用程序通过硬件制造商或供应商自定义引入的Unix域套接字与高特权守护程序进行通信。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑