[Paper Review] Wavelet decomposition of software entropy reveals symptoms of malicious code
This paper proposes using wavelet decomposition of software entropy to detect malicious code by identifying suspicious patterns of entropy variation across file segments. By quantifying structural entropy changes via a Suspiciously Structured Entropic Change Score (SSECS), the method boosts malware detection accuracy from 50.0% to 68.7% on diverse malware and achieves nearly 99% parasitic malware detection with under 1% false positives when combined with string and entropy features.
Sophisticated malware authors can sneak hidden malicious code into portable executable files, and this code can be hard to detect, especially if encrypted or compressed. However, when an executable file switches between code regimes (e.g. native, encrypted, compressed, text, and padding), there are corresponding shifts in the file's representation as an entropy signal. In this paper, we develop a method for automatically quantifying the extent to which patterned variations in a file's entropy signal make it "suspicious." In Experiment 1, we use wavelet transforms to define a Suspiciously Structured Entropic Change Score (SSECS), a scalar feature that quantifies the suspiciousness of a file based on its distribution of entropic energy across multiple levels of spatial resolution. Based on this single feature, it was possible to raise predictive accuracy on a malware detection task from 50.0% to 68.7%, even though the single feature was applied to a heterogeneous corpus of malware discovered "in the wild." In Experiment 2, we describe how wavelet-based decompositions of software entropy can be applied to a parasitic malware detection task involving large numbers of samples and features. By extracting only string and entropy features (with wavelet decompositions) from software samples, we are able to obtain almost 99% detection of parasitic malware with fewer than 1% false positives on good files. Moreover, the addition of wavelet-based features uniformly improved detection performance across plausible false positive rates, both in a strings-only model (e.g., from 80.90% to 82.97%) and a strings-plus-entropy model (e.g. from 92.10% to 94.74%, and from 98.63% to 98.90%). Overall, wavelet decomposition of software entropy can be useful for machine learning models for detecting malware based on extracting millions of features from executable files.
Motivation & Objective
- To detect malicious code by identifying structured entropy variations in portable executable files.
- To address the limitation of traditional entropy analysis, which fails to detect malware with hidden encrypted or compressed segments.
- To develop a feature that quantifies suspicious entropic structure beyond mean or standard deviation of entropy.
- To evaluate the utility of wavelet-based entropy features in large-scale malware detection tasks.
- To demonstrate that wavelet-derived features are not redundant with standard entropy or string-based features.
Proposed method
- Represent each executable file as an entropy stream by computing local entropy over small byte-level segments.
- Apply Haar wavelet transforms to decompose the entropy signal into multi-scale resolution components.
- Compute the wavelet energy spectrum by aggregating squared wavelet coefficients across scales to capture entropic energy distribution.
- Derive the Suspiciously Structured Entropic Change Score (SSECS) as a scalar feature summarizing the degree of structured entropy variation.
- Use wavelet-based features in conjunction with string and entropy features in machine learning models for malware classification.
- Train and evaluate models on heterogeneous malware corpora, including real-world 'in the wild' samples, to assess predictive performance.
Experimental results
Research questions
- RQ1Can wavelet decomposition of software entropy detect malicious code more effectively than traditional entropy statistics?
- RQ2To what extent does the Suspiciously Structured Entropic Change Score (SSECS) improve malware detection accuracy in heterogeneous malware corpora?
- RQ3How do wavelet-based entropy features compare in performance to standard string and entropy features in large-scale parasitic malware detection?
- RQ4Are wavelet-derived features redundant with simpler entropy or string-based features in malware detection models?
- RQ5Can wavelet energy spectra from entropy signals improve detection performance across varying false positive rates?
Key findings
- The SSECS feature alone improved malware detection accuracy from 50.0% to 68.7% on a heterogeneous corpus of 'in the wild' malware.
- In a large-scale parasitic malware detection task, a model using strings, entropy, and wavelet features achieved 98.90% detection with less than 1% false positive rate.
- Wavelet-based features uniformly improved detection performance across all tested false positive rates, including in both strings-only (80.90% to 82.97%) and strings-plus-entropy models (92.10% to 94.74% and 98.63% to 98.90%).
- Despite comprising only 2.1% of the total features in the strings+wavelet model, wavelet features accounted for 7.0% of the most influential features, indicating high predictive power.
- Wavelet features were approximately 2.5 times more likely to be influential than expected based on their proportion in the feature set, suggesting non-redundant information.
- The wavelet energy spectrum captures structural entropy patterns not captured by mean entropy or standard deviation, indicating its value in detecting sophisticated malware with hidden encrypted or compressed segments.
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.