Abstract
Traditional Android malware detection often relies on simple frequency counts of system calls, which fail to capture the nuanced behavioral patterns of sophisticated malicious applications. This paper presents ANNCMDroid, a novel detection framework that utilizes co-occurrence matrices to model the correlations between system calls. By transforming these relationships into high-dimensional vectors for classification via Artificial Neural Networks (ANNs), the system captures both adjacent and non-adjacent call patterns. Experimental results demonstrate that ANNCMDroid achieves an impressive F-Score of 0.981878, significantly outperforming traditional frequency-based or subsequence-matching methods.
Introduction
As Android continues to dominate the mobile market, the complexity and volume of malware targeting the platform have grown exponentially. Security researchers frequently employ dynamic analysis—monitoring an application's execution in real-time—to identify malicious behavior through system call sequences. However, existing detection methods often struggle with a trade-off between simplicity and computational efficiency.
The Challenge of Behavioral Fingerprinting
Current dynamic analysis methods generally fall into two categories, both of which have significant drawbacks:
- Frequency-based methods: These count the occurrences of specific system calls (e.g.,
read,fork,ioctl). While computationally light, they ignore the order of operations. Malware can easily evade these by mimicking the call frequencies of benign applications. - Subsequence-matching methods: These look for specific "sentences" or sequences of system calls. Although more accurate, they are computationally expensive and prone to overfitting, making them less effective against new malware variants.
The authors of this study aim to bridge this gap by capturing the correlation between system calls—specifically, how often one call follows another within a defined distance. This approach provides a richer behavioral "fingerprint" without the overhead of exact sequence matching.
Methodology: The ANNCMDroid Framework
The core innovation of ANNCMDroid lies in its four-stage workflow designed to transform raw execution logs into actionable intelligence.
1. Preprocessing
Using the strace tool, the system records system call sequences while simulating user interaction via the monkey tool (triggering 1,000 random events). Android’s 196 possible system calls are then mapped to numerical IDs ($S_0$ to $S_{195}$).
2. Co-occurrence Matrix Calculation
Instead of simple counts, the framework constructs a $196 \times 196$ matrix. Each cell $(i, j)$ represents the probability that system call $j$ appears within a distance $k$ of system call $i$. This captures functional relationships between calls that may not be immediate neighbors but are part of the same logical event.
3. Vectorization and Classification
The resulting matrix is flattened into a 38,416-dimensional vector. This high-dimensional feature set is then fed into a three-layer Artificial Neural Network. The network uses back-propagation to learn the subtle "correlation maps" that distinguish benign software from malware.
Experimental Results
The study utilized a balanced dataset of 2,416 applications, including 1,227 malicious samples from the MalGenome repository and 1,189 benign apps from Google Play. ANNCMDroid demonstrated superior performance compared to existing benchmarks:
- Accuracy: Achieved a True Positive Rate (TPR) of 97.07% and a False Positive Rate (FPR) of only 0.67%.
- F-Score: Reached 0.981878, outperforming methods based on permissions or common subsequences.
- Reliability: In a test run of 1,208 apps, only 4 benign apps were falsely flagged, and only 18 malicious apps were missed.
Discussion and Future Work
The "aha moment" of this research is the realization that correlation patterns serve as a robust fingerprint. Even if malware attempts to look "normal" by inflating the frequency of common calls, the context (their neighbors in the sequence) remains a tell-tale sign. Furthermore, the co-occurrence matrix approach is naturally robust to the "noise" of multi-threaded execution, where calls from different threads interleave.
Future work will focus on addressing the sparsity of the 38,416-dimensional vector to improve computational efficiency. Additionally, the authors suggest that incorporating the semantic meaning of system calls (e.g., knowing what a fork actually does) could further refine the model's accuracy.
Summary updated