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

AndroLog:Android插桩与代码覆盖率分析

AndroLog: Android Instrumentation and Code Coverage Analysis

Jordan Samhi, Andreas Zeller

AI总结:

针对现有Android黑盒插桩覆盖率工具可靠性低、侵入性强的问题,本文提出基于Soot框架的AndroLog工具,支持多级别细粒度覆盖率分析,插桩成功率达98%,优于现有工具,且具备可扩展潜力,已开源并提供演示。

摘要:

动态分析已成为测试Android应用的核心技术,可用于检测漏洞、恶意代码和安全隐患。评估科研界与工业界为此目的所用工具效能的一项关键指标是代码覆盖率。获取代码覆盖率通常需要在应用中植入探针,以在运行时收集覆盖率数据。由于分析人员通常无法获取源代码,因此需要在黑盒环境中对应用进行插桩以插入这些探针。然而,可用于此类插桩的工具可靠性有限,且需要进行侵入式修改,会干扰应用的功能。\n本文介绍了AndroLog,这是一款基于Soot框架开发的新型工具,旨在提供类、方法、语句和Android组件等多个层级的细粒度覆盖率信息。与现有工具不同,AndroLog将应用测试的职责交由分析人员承担,其设计理念是简洁性。如本文所示,AndroLog可对高达98%的最新Android应用完成插桩,而现有工具COSMO和ACVTool的这一比例分别为79%和48%。AndroLog还具备未来可按需提升粒度的潜力,这一点也使其脱颖而出。我们已将AndroLog向社区开放,并提供了AndroLog的演示视频(见第8节)。

英文摘要:

Dynamic analysis has emerged as a pivotal technique for testing Android apps, enabling the detection of bugs, malicious code, and vulnerabilities. A key metric in evaluating the efficacy of tools employed by both research and practitioner communities for this purpose is code coverage. Obtaining code coverage typically requires planting probes within apps to gather coverage data during runtime. Due to the general unavailability of source code to analysts, there is a necessity for instrumenting apps to insert these probes in black-box environments. However, the tools available for such instrumentation are limited in their reliability and require intrusive changes interfering with apps' functionalities. This paper introduces AndroLog a novel tool developed on top of the Soot framework, designed to provide fine-grained coverage information at multiple levels, including class, methods, statements, and Android components. In contrast to existing tools, AndroLog leaves the responsibility to test apps to analysts, and its motto is simplicity. As demonstrated in this paper, AndroLog can instrument up to 98% of recent Android apps compared to existing tools with 79% and 48% respectively for COSMO and ACVTool. AndroLog also stands out for its potential for future enhancements to increase granularity on demand. We make AndroLog available to the community and provide a video demonstration of AndroLog (see section 8).

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

↑