TL;DR
This paper introduces a novel, non-signature-based malware detection technique that analyzes the statistical properties of byte-level file content. By breaking files into blocks and extracting a rich set of information-theoretic features, the method achieves high detection accuracy for both known and zero-day malware, outperforming traditional signature-based and other data mining approaches.
What Problem Does This Paper Address?
The ever-increasing sophistication and volume of malware, particularly "zero-day" threats, pose a significant challenge to existing security solutions. Traditional signature-based antivirus software struggles to keep pace, as malware authors can easily evade detection by employing packing and obfuscation techniques, often by simply repacking older malware variants. While dynamic analysis offers an alternative, it incurs substantial performance overheads. Static analysis, though more efficient, often relies on signatures that are susceptible to evasion. This paper aims to address the critical need for a robust, efficient, and non-signature-based malware detection method that can effectively identify novel and previously unseen malicious software.
Methods
The proposed technique operates in four stages:
- Block Generator: Files are divided into fixed-size blocks (1024 bytes in this study) to manage processing overhead.
- Feature Extractor: For each block, a diverse set of 13 statistical and information-theoretic features are computed. These features are calculated on n-grams (1-gram, 2-gram, 3-gram, and 4-gram frequency histograms) within each block. This results in a total of 52 features per block. Key features include Simpson's Index, Entropy, Chebyshev Distance, and Correlation Coefficient, among others.
- Classification Module: A boosted decision tree classifier (specifically, AdaBoostM1 with J48) is used to classify each block as either "normal" (n) or "potentially malicious" (pm). This module is trained to recognize patterns associated with different malware categories.
- Correlation Module: The classification results from all blocks within a file are correlated. Based on the proportion of "normal" and "potentially malicious" blocks, the entire file is ultimately classified as benign or malware.
The core novelty lies in its purely non-signature approach, focusing on statistical byte-level properties rather than specific byte sequences, and its block-wise analysis combined with a rich feature set.
Datasets
- Benign Dataset: Consists of 1,800 files, with 300 samples each from six common filetypes: DOC, EXE, JPG, MP3, PDF, and ZIP.
- Malware Dataset: A comprehensive dataset of 10,311 Win32 malware samples from the "VX Heavens Virus Collection." These samples are categorized into six major types: Backdoor, Constructor, Worm, Trojan, Virus, and Miscellaneous.
The study emphasizes that the scheme works regardless of whether files are packed or unpacked.
Key Insights and Ideas
- Byte-level statistics are discriminative: The fundamental insight is that even at the byte-level, malicious and benign files exhibit distinct statistical properties, which can be leveraged for detection.
- Non-signature approach for zero-day resilience: By avoiding reliance on specific signatures, the method is inherently more robust against obfuscation techniques and capable of detecting novel malware.
- Block-wise analysis balances detail and efficiency: Dividing files into blocks allows for manageable feature extraction while still capturing local byte-level patterns.
- Rich feature set is crucial: Combining multiple statistical and information-theoretic features significantly enhances detection accuracy compared to using individual features.
- Boosted decision trees are effective classifiers: The pilot studies indicated that boosted decision trees (J48) provide superior performance for this task.
Key Results
- The proposed non-signature based technique achieved over 90% detection accuracy in experiments.
- It surpassed existing techniques like "strings" and "KM" in detection accuracy, particularly for less common malware types where signature-based methods struggle.
- The accuracy remained consistent across all malware categories, unlike the "strings" approach which showed significantly lower accuracy for backdoors.
- The method demonstrated the ability to classify malware families (e.g., virus, trojan) based on their payload, providing insights beyond simple benign/malware classification.
- Feature analysis showed that combining features and using higher-order n-grams (like 2-grams) improved accuracy, motivating the use of all 52 features.
Limitations and Future Work
- Optimal feature set: The authors acknowledge that the selected feature set is not necessarily optimal and plan to explore finding the optimal number of features in future work.
- Customized packed file dataset: The current study used a dataset containing both packed and unpacked files. Future work includes evaluating the robustness of the technique on a customized dataset specifically containing manually packed executable files.
- Larger dataset and feature engineering: The authors intend to evaluate the scheme on an even larger dataset and to reverse-engineer the features for further improvement.
Summary updated