TL;DR
This paper introduces a novel malware detection approach that models process behavior using quantitative data flow graphs (QDFGs). By analyzing the amount of data flowing between system entities, their method achieves superior robustness against common malware obfuscation techniques and demonstrates high detection rates with low false positives.
What Problem Does This Paper Address?
The ever-increasing sophistication of malware poses a significant challenge to traditional security measures. Modern malware employs various techniques, such as polymorphism, metamorphism, and behavioral obfuscation (e.g., mimicry attacks, call reordering, bogus call injection), to evade detection. While existing behavioral detection methods often rely on raw system call sequences or graph structures, they can be brittle and susceptible to these obfuscation tactics. This paper aims to develop a more robust and effective malware detection system that can better withstand these evasion techniques.
Methods
The core of the proposed approach is the use of Quantitative Data Flow Graphs (QDFGs). These graphs represent system behavior by interpreting system calls as aggregations of quantifiable data flows between system entities (processes, files, sockets, etc.). Unlike traditional methods that might focus on the sequence of calls, QDFGs capture the amount of data transferred.
The detection process involves:
- Graph Generation: System events are intercepted and translated into data flow events, which are then used to build QDFGs. For efficiency and focus, "reachability graphs" are generated, containing only nodes and edges directly or indirectly connected to a specific process.
- Feature Extraction: A set of graph metrics, inspired by social network analysis, are computed for each process node. These include:
- Local Features: Entropy, variance of outgoing edge features (e.g., size), and flow proportion (e.g., percentage of data flowing to files).
-
Global Features: Closeness Centrality and Betweenness Centrality, which capture a node's importance within the overall graph. Crucially, these features leverage the quantitative aspect of the data flows (edge weights).
-
Classifier Training: A Random Forest classifier is trained using these feature vectors and labels (malicious/benign) from known samples.
- Detection Phase: For an unknown system, QDFGs are built, features are extracted for each process, and the trained classifier predicts whether the process is malicious or benign.
The key novelty lies in using quantitative data flow graphs and metrics derived from them, which are argued to be more resilient to obfuscation than methods based on raw system call sequences or non-quantitative graphs.
Datasets
The authors used a substantial dataset for their experiments:
- Malware Samples: 6994 known malicious programs from the Malicia dataset, covering 12 malware families (e.g., zeus, spyeye, ramnit).
- Goodware Samples: 513 known benign applications, including popular software like ThunderBird, FireFox, and VLC Player, as well as standard Windows processes.
Approximately 7500 event logs were generated from sandbox executions, resulting in around 8648 QDFG feature sets (1654 goodware, 6994 malware). The goodware feature set is larger because it includes interactions with simultaneously running standard Windows processes.
Key Insights and Ideas
- Quantities Matter: The paper strongly supports the hypothesis that the amount of data flow is a critical factor for accurate malware detection. Removing or randomizing this quantitative information significantly degrades detection performance.
- Robustness to Obfuscation: QDFGs, by their nature, are less susceptible to call reordering and semantic substitutions because they focus on data flow semantics rather than precise call sequences. This makes the approach inherently more robust to common obfuscation techniques.
- Detecting the Unknown: The QDFG-based approach demonstrates a significant ability to detect malware from families not seen during training, suggesting its potential for identifying novel threats.
- Analogy to Social Networks: Leveraging graph metrics from social network analysis provides a powerful way to characterize process behavior and identify anomalous patterns.
Key Results
- High Detection Rate: Achieved an average detection rate of 98.01% with a low false positive rate of 0.48% on a diverse dataset.
- Obfuscation Resilience: Significantly more robust to behavioral obfuscation (call reordering, bogus call injection) compared to n-gram based approaches, with detection effectiveness dropping much more slowly.
- Detecting New Malware: Successfully detected samples from unknown malware families, with an average detection rate of 73.68% in a simulated zero-day scenario.
- Efficiency: While graph algorithms can be computationally intensive, the overall detection time for a QDFG (including generation, feature computation, and classification) was around 71.213ms on average for graphs with up to 330 edges.
Limitations and Future Work
- Sandbox Environment: The evaluation was conducted in a virtualized sandbox environment. The authors acknowledge that modern malware can detect virtualization, potentially leading to unrealistic behavior. Future work includes testing on realistic bare-metal environments.
- Simulated Obfuscation: While extensive, the obfuscation experiments might not fully capture all real-world adversarial techniques. Future work aims to improve robustness against more complex obfuscation operators.
- Generalization: The authors plan to generalize the approach to non-sandbox settings and explore additional graph features to further improve effectiveness.
Summary updated