arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1604.06964cs.CR
收藏

BinderCracker:评估Android系统服务的健壮性

BinderCracker: Assessing the Robustness of Android System Services

Huan Feng, Kang G. Shin

摘要:

在Android中,应用和系统服务之间的通信由基于事务的进程间通信(IPC)机制支持。Binder作为该IPC机制的基石,将通信双方分隔为客户端和服务器端。与任何客户端-服务器模型一样,服务器不应该对客户端事务的有效性(健全性)做出任何假设。令我们惊讶的是,我们发现这一原则在Android系统服务的实现中经常被忽视。在本文中,我们展示了这个漏洞表面的流行程度和严重性,并试图回答为什么开发人员不断犯这个看似简单的错误。具体来说,我们设计并实现了BinderCracker,这是一个自动测试框架,支持参数感知的模糊测试,已经在六个主要版本的Android中识别出了100多个漏洞,包括最新版本的Android 6.0,Marshmallow。其中一些漏洞具有严重的安全影响,导致特权代码执行或永久拒绝服务(DoS)。我们分析了这些漏洞的根本原因,发现其中大多数漏洞的存在是因为系统服务开发人员只考虑通过公共API进行利用。因此,我们强调了只在客户端公共API上进行测试的不足,并认为有必要在Binder接口(实际的安全边界)上进行测试和保护。具体来说,我们讨论了潜在的对策,如预防性测试和运行时诊断的有效性和实用性。

英文摘要:

In Android, communications between apps and system services are supported by a transaction-based Inter-Process Communication (IPC) mechanism. Binder, as the cornerstone of this IPC mechanism, separates two communicating parties as client and server. As with any client-server model, the server should not make any assumption on the validity (sanity) of client-side transaction. To our surprise, we find this principle has frequently been overlooked in the implementation of Android system services. In this paper, we demonstrate the prevalence and severity of this vulnerability surface and try to answer why developers keep making this seemingly simple mistake. Specifically, we design and implement BinderCracker, an automatic testing framework that supports parameter-aware fuzzing and has identified more than 100 vulnerabilities in six major versions of Android, including the latest version Android 6.0, Marshmallow. Some of the vulnerabilities have severe security implications, causing privileged code execution or permanent Denial-of-Service (DoS). We analyzed the root causes of these vulnerabilities to find that most of them exist because system service developers only considered exploitations via public APIs. We thus highlight the deficiency of testing only on client-side public APIs and argue for the necessity of testing and protection on the Binder interface - the actual security boundary. Specifically, we discuss the effectiveness and practicality of potential countermeasures, such as precautionary testing and runtime diagnostic.

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

↑