arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1912.12982cs.SEcs.CR
收藏

Android应用程序的可扩展在线审核,用于测量声明的SDK版本及其与API调用的一致性

Scalable Online Vetting of Android Apps for Measuring Declared SDK Versions and Their Consistency with API Calls

Daoyuan Wu, Debin Gao, David Lo

摘要:

Android一直是最受欢迎的智能手机系统,市场上活跃着多个平台版本。为了管理应用与一个或多个平台版本的兼容性,Android允许应用在其清单文件中声明受支持的平台SDK版本。在本文中,我们对这种现代软件机制进行了系统的研究。我们的目标是衡量真实应用程序中声明的SDK版本(我们以后称之为DSDK版本)的当前做法,以及DSDK版本与其主机应用程序的API调用之间的一致性。为了成功分析22,687个流行应用程序的现代数据集(平均应用程序大小为25 MB),我们设计了一种可扩展的方法,该方法在Android字节码级别上运行,并采用轻量级字节码搜索进行应用程序分析。这种方法实现了适用于应用程序市场在线审查的良好性能,平均只需要大约5秒来处理应用程序。除了揭示DSDK在野外的特性外,我们的研究还定量测量了不适当的DSDK版本的两个副作用:(i)大约35%的应用程序低于最低DSDK版本并可能导致运行时崩溃,但幸运的是,只有11.3%的应用程序可能在Android 6.0及以上版本中崩溃;(ii)约2%的应用程序,由于未充分声明目标DSDK版本,可能会被远程代码执行利用,其中一半通过嵌入式第三方库调用易受攻击的API。这些结果表明了正确声明DSDK的重要性和困难,我们的工作可以帮助开发人员实现这一目标。

英文摘要:

Android has been the most popular smartphone system with multiple platform versions active in the market. To manage the application's compatibility with one or more platform versions, Android allows apps to declare the supported platform SDK versions in their manifest files. In this paper, we conduct a systematic study of this modern software mechanism. Our objective is to measure the current practice of declared SDK versions (which we term as DSDK versions afterwards) in real apps, and the (in)consistency between DSDK versions and their host apps' API calls. To successfully analyze a modern dataset of 22,687 popular apps (with an average app size of 25MB), we design a scalable approach that operates on the Android bytecode level and employs a lightweight bytecode search for app analysis. This approach achieves a good performance suitable for online vetting in app markets, requiring only around 5 seconds to process an app on average. Besides shedding light on the characteristics of DSDK in the wild, our study quantitatively measures two side effects of inappropriate DSDK versions: (i) around 35% apps under-set the minimum DSDK versions and could incur runtime crashes, but fortunately, only 11.3% apps could crash on Android 6.0 and above; (ii) around 2% apps, due to under-claiming the targeted DSDK versions, are potentially exploitable by remote code execution, and half of them invoke the vulnerable API via embedded third-party libraries. These results indicate the importance and difficulty of declaring correct DSDK, and our work can help developers fulfill this goal.

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

↑