[Paper Review] PuppetDroid: A User-Centric UI Exerciser for Automatic Dynamic Analysis of Similar Android Applications
PuppetDroid introduces a user-centric, collaborative approach to dynamic analysis of Android apps by recording human-driven UI interactions (stimulation traces) and reusing them on similar apps via visual UI similarity. It achieves 12–24% higher code coverage than state-of-the-art tools by leveraging perceptual hashing for UI matching and automated event replay, enabling effective detection of malicious behaviors that are hard to trigger automatically.
Popularity and complexity of malicious mobile applications are rising, making their analysis difficult and labor intensive. Mobile application analysis is indeed inherently different from desktop application analysis: In the latter, the interaction of the user (i.e., victim) is crucial for the malware to correctly expose all its malicious behaviors. We propose a novel approach to analyze (malicious) mobile applications. The goal is to exercise the user interface (UI) of an Android application to effectively trigger malicious behaviors, automatically. Our key intuition is to record and reproduce the UI interactions of a potential victim of the malware, so as to stimulate the relevant behaviors during dynamic analysis. To make our approach scale, we automatically re-execute the recorded UI interactions on apps that are similar to the original ones. These characteristics make our system orthogonal and complementary to current dynamic analysis and UI-exercising approaches. We developed our approach and experimentally shown that our stimulation allows to reach a higher code coverage than automatic UI exercisers, so to unveil interesting malicious behaviors that are not exposed when using other approaches. Our approach is also suitable for crowdsourcing scenarios, which would push further the collection of new stimulation traces. This can potentially change the way we conduct dynamic analysis of (mobile) applications, from fully automatic only, to user-centric and collaborative too.
Motivation & Objective
- To address the limited code coverage in dynamic analysis of Android malware due to the highly interactive nature of mobile UIs.
- To overcome the inefficacy of fully automatic UI exercisers in triggering complex or rare malicious behaviors.
- To enable scalable, collaborative dynamic analysis by reusing human-observed UI stimulation traces across similar applications.
- To develop a system that leverages visual similarity (via perceptual hashing) to identify and target similar apps for reusing stimulation traces.
- To demonstrate that human-in-the-loop UI interaction is more effective than automated tools in exposing malicious behaviors.
Proposed method
- Record human-driven UI interaction traces (stimulation traces) on a target Android app using a physical device or emulator.
- Use perceptual hashing of screenshots to index and identify visually similar apps based on UI layout similarity.
- Automatically replay recorded UI events on similar apps by mapping input events to corresponding view objects in the target app.
- Leverage UI similarity to transfer stimulation traces across apps, including repackaged malware and benign apps with hidden payloads.
- Integrate with existing dynamic analysis frameworks to monitor system calls and detect malicious behaviors during replay.
- Use a modified Android emulator to support event injection and system call monitoring for precise behavioral analysis.
Experimental results
Research questions
- RQ1Can human-driven UI interactions be more effective than automated tools in triggering malicious behaviors in Android apps?
- RQ2To what extent can UI similarity between Android apps be exploited to automatically re-execute human-observed stimulation traces?
- RQ3How does the code coverage of PuppetDroid compare to state-of-the-art automatic UI exercisers in detecting malicious behaviors?
- RQ4Can the system scale to analyze large numbers of apps while maintaining low resource overhead?
- RQ5How effective is perceptual hashing in identifying visually similar apps for trace reuse?
Key findings
- Human users achieved significantly higher code coverage in triggering malicious behaviors than automated tools like Monkey or Dynodroid.
- PuppetDroid achieved 12–24% higher code coverage than state-of-the-art automatic UI exercisers across 7,000 analyzed applications.
- The system successfully uncovered corner-case malicious behaviors—such as hidden SMS sending or data exfiltration—that were not triggered by fully automatic approaches.
- Perceptual hashing enabled accurate and scalable identification of visually similar apps with modest computational overhead.
- The approach is effective for both repackaged malware and benign apps repurposed to host malicious payloads.
- The system is suitable for crowdsourcing, enabling collaborative collection and reuse of stimulation traces across a large user base.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.