arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2201.12542cs.SE
收藏

Aper:针对Android应用的进化感知的权限误用检测

Aper: Evolution-Aware Runtime Permission Misuse Detection for Android Apps

Sinan Wang, Yibo Wang, Xian Zhan, Ying Wang, Yepang Liu, Xiapu Luo, Shing-Chi Cheung

摘要:

Android平台在6.0版中引入了运行时权限模型。新模式极大地改善了数据隐私和用户体验,但也给应用开发者带来了新的挑战。首先,它允许用户自由撤销授予的权限。因此,开发人员不能假设授予应用程序的权限将继续被授予。相反,他们应该让他们的应用程序在调用危险的API之前仔细检查权限状态。其次,权限规范不断发展,给生态系统带来了新的兼容性问题。为了了解这些挑战的影响,我们对13,352个流行的Google Play应用程序进行了实证研究。我们发现,86.0%的应用在权限管理后异步使用危险API,61.2%的应用使用正在演变的危险API。如果应用程序没有正确处理权限冲突或平台差异,可能会发生意外的运行时问题,甚至导致应用程序崩溃。我们把这种Android的ARP权限问题称为ARP错误。然而,现有的运行时权限问题检测工具不能有效地处理异步权限管理和权限规范演化所导致的ARP漏洞。为了填补这一空白,我们设计了一个静态分析器Aper,它对Android应用程序执行到达定义和支配者分析,以检测这两种类型的ARP错误。为了将Aper与现有工具进行比较,我们从60个真实的ARP错误中构建了一个基准测试ARPfix。我们的实验结果表明,Aper显着优于两个学术工具,ARPDroid和RevDroid,以及工业工具,Lint,在ARPfix上,平均提高了46.3%的F1分数。此外,Aper在214个开源Android应用中成功发现了34个ARP bug,根据我们的手动验证,其中大部分会导致异常应用行为(如应用崩溃)。

英文摘要:

The Android platform introduces the runtime permission model in version 6.0. The new model greatly improves data privacy and user experience, but brings new challenges for app developers. First, it allows users to freely revoke granted permissions. Hence, developers cannot assume that the permissions granted to an app would keep being granted. Instead, they should make their apps carefully check the permission status before invoking dangerous APIs. Second, the permission specification keeps evolving, bringing new types of compatibility issues into the ecosystem. To understand the impact of the challenges, we conducted an empirical study on 13,352 popular Google Play apps. We found that 86.0% apps used dangerous APIs asynchronously after permission management and 61.2% apps used evolving dangerous APIs. If an app does not properly handle permission revocations or platform differences, unexpected runtime issues may happen and even cause app crashes. We call such Android Runtime Permission issues as ARP bugs. Unfortunately, existing runtime permission issue detection tools cannot effectively deal with the ARP bugs induced by asynchronous permission management and permission specification evolution. To fill the gap, we designed a static analyzer, Aper, that performs reaching definition and dominator analysis on Android apps to detect the two types of ARP bugs. To compare Aper with existing tools, we built a benchmark, ARPfix, from 60 real ARP bugs. Our experiment results show that Aper significantly outperforms two academic tools, ARPDroid and RevDroid, and an industrial tool, Lint, on ARPfix, with an average improvement of 46.3% on F1-score. In addition, Aper successfully found 34 ARP bugs in 214 opensource Android apps, most of which can result in abnormal app behaviors (such as app crashes) according to our manual validation.

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

↑