APEX:面向Android应用的自动事件序列生成
APEX: Automatic Event Sequence Generation for Android Applications
AI总结:
针对Android应用事件序列生成难获高代码覆盖率、难触发需特定输入的程序行为的问题,提出基于混合执行的APEX框架,可系统化探索GUI、生成高覆盖率及达特定目标的事件序列。
摘要:
由于Android程序的事件驱动特性以及GUI设计的多样性,在合理时间内生成具备足够代码覆盖率的事件序列颇具挑战。应对该问题的一种常见方法是依托GUI模型生成事件序列,这类序列虽能有效覆盖GUI状态,但在触发需要特定输入的程序行为方面表现不稳定。生成此类特定输入的一大主要障碍是缺乏可适配分析需求的系统化GUI探索流程。本文提出了Android Path Explorer(APEX),这是一个采用混合执行(concolic execution)的系统化输入生成框架。APEX通过混合执行挖掘GUI状态转移的数据依赖,以此解决基于模型的序列生成的局限性。此外,混合执行还被用于在GUI探索过程中对事件排序,从而构建更鲁棒的模型并实现更精准的输入生成。APEX的核心创新点在于,混合执行不仅被用于构建事件序列,还被用于更系统化地遍历GUI。据此,我们的实验结果表明,APEX能够生成一组实现高代码覆盖率的事件序列,同时也能生成可抵达特定目标的事件序列。
英文摘要:
Due to the event driven nature and the versatility of GUI designs in Android programs, it is challenging to generate event sequences with adequate code coverage within a reasonable time. A common approach to handle this issue is to rely on GUI models to generate event sequences. These sequences can be effective in covering GUI states, but inconsistent in exposing program behaviors that require specific inputs. A major obstacle to generate such specific inputs is the lack of a systematic GUI exploration process to accommodate the analysis requirements. In this paper, we introduce Android Path Explorer (APEX), a systematic input generation framework using concolic execution. APEX addresses the limitations of model-based sequence generation by using concolic execution to discover the data dependencies of GUI state transitions. Moreover, concolic execution is also used to prioritize events during the exploration of GUI, which leads to a more robust model and accurate input generation. The key novelty of APEX is that concolic execution is not only used to construct event sequences, but also used to traverse the GUI more systematically. As such, our experimental results show that APEX can be used to generate a set of event sequences that achieve high code coverage, as well as event sequences that reach specific targets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。