Abstract
Following the increasing popularity of the mobile ecosystem, cybercriminals have increasingly targeted mobile ecosystems, designing and distributing malicious apps that steal information or cause harm to the device's owner. Aiming to counter them, detection techniques based on either static or dynamic analysis that model Android malware have been proposed. While the pros and cons of these analysis techniques are known, they are usually compared in the context of their limitations. In this paper, we analyze the performance of static and dynamic analysis methods in the detection of Android malware and attempt to compare them in terms of their detection performance, using the same modeling approach. We build on MAMADROID, a state-of-the-art detection system that relies on static analysis, and modify CHIMP to create AUNTIEDROID for dynamic analysis. We find that combining both yields the best performance ($F$-measure of 0.92) and show that static analysis remains highly effective.
Introduction
In the ongoing battle against Android malware, security researchers typically rely on two primary methodologies: Static Analysis and Dynamic Analysis. Static analysis examines the application's code without execution, offering high code coverage but vulnerability to obfuscation. Dynamic analysis observes the application's behavior in a controlled environment, capturing runtime actions but often failing to trigger malicious payloads due to low code coverage.
Despite the well-known trade-offs, these methods are rarely compared using a unified modeling framework. This research addresses this gap by applying the same behavioral modeling technique to both static and dynamic data, providing a rigorous head-to-head comparison of their effectiveness in modern malware detection.
Methodology: The "Droid" Pipeline
The core of this study involves a unified behavioral modeling approach based on MAMADROID. The process involves several key stages:
- Abstraction: API calls are abstracted into "families" (e.g.,
android.app) or "packages" (e.g.,android.app.Activity) to manage the vast Android API surface. - Behavioral Modeling: These sequences are modeled as Markov chains, where transition probabilities between API groups serve as features for machine learning.
- AUNTIEDROID: To enable dynamic analysis, the researchers developed AUNTIEDROID, which utilizes the CHIMP platform to execute apps in virtual environments and extract API traces.
The system evaluates two stimulation methods: the automated Monkey tool, which generates high-frequency random events, and Human testers, who interact with the apps naturally. Classification is performed using Random Forest models on the resulting Markov chain features.
Experimental Results and Insights
The study utilized a dataset of 5,417 apps (2,723 benign and 2,694 malware). Several key findings emerged:
Static vs. Dynamic Performance
Static analysis proved remarkably resilient, achieving an $F$-measure of 0.91. Dynamic analysis using the Monkey tool reached 0.92, while human-stimulated dynamic analysis dropped to 0.88. The automated Monkey tool outperformed humans because its high event frequency (100ms intervals) triggered more code paths within the same timeframe.
The Prevalence of Dynamic Loading
A significant challenge for static analysis is dynamic code loading (DCL). The researchers found that approximately 90% of the malware samples utilized DCL to evade detection.
Despite this high prevalence, static analysis remained competitive. This suggests that the behavioral sequences captured statically—even if incomplete—are distinct enough to allow for accurate classification.
The Hybrid Advantage
The highest performance was achieved by a hybrid model that merged API sequences from both static and dynamic traces, reaching an $F$-measure of 0.92. This approach captures behaviors visible in the code that might not be triggered during execution, as well as runtime behaviors that might be obscured in static code.
Conclusion
This research demonstrates that while hybrid systems provide the most robust detection, static analysis remains a powerful and efficient tool. The "overestimation" of behavior provided by static analysis often compensates for its inability to see runtime actions. Future work will focus on improving dynamic code coverage through targeted input generation and expanding the analysis to more recent Android versions to keep pace with evolving malware tactics.
Summary updated