[Paper Review] Longitudinal Study of the Prevalence of Malware Evasive Techniques
This paper presents the first large-scale longitudinal study of anti-dynamic-analysis evasion techniques in Windows malware, using a custom Pin-based tool called Pepper to detect and circumvent 53 evasion techniques across 183,340 samples. It reveals that over 40% of malware samples in 2020 used at least one evasion technique, with increasing prevalence over time and significant diversity in technique usage across samples.
By their very nature, malware samples employ a variety of techniques to conceal their malicious behavior and hide it from analysis tools. To mitigate the problem, a large number of different evasion techniques have been documented over the years, and PoC implementations have been collected in public frameworks, like the popular Al-Khaser. As malware authors tend to reuse existing approaches, it is common to observe the same evasive techniques in malware samples of different families. However, no measurement study has been conducted to date to assess the adoption and prevalence of evasion techniques. In this paper, we present a large-scale study, conducted by dynamically analyzing more than 180K Windows malware samples, on the evolution of evasive techniques over the years. To perform the experiments, we developed a custom Pin-based Evasive Program Profiler (Pepper), a tool capable of both detecting and circumventing 53 anti-dynamic-analysis techniques of different categories, ranging from anti-debug to virtual machine detection. To observe the phenomenon of evasion from different points of view, we employed four different datasets, including benign files, advanced persistent threat (APTs), malware samples collected over a period of five years, and a recent collection of different families submitted to VirusTotal over a one-month period.
Motivation & Objective
- To measure the prevalence and evolution of anti-dynamic-analysis evasion techniques in real-world malware over time.
- To investigate how evasion techniques are distributed across different malware families, APTs, and benign software.
- To assess the relationship between the use of packers/protectors and the adoption of evasion techniques.
- To evaluate the effectiveness of a custom detection and mitigation tool (Pepper) in enabling accurate dynamic analysis of evasive samples.
- To identify commonly misclassified techniques that are used for legitimate purposes, challenging their reliability as indicators of malicious behavior.
Proposed method
- Developed Pepper, a Pin-based dynamic binary instrumentation tool capable of detecting and circumventing 53 distinct anti-dynamic-analysis techniques across seven categories.
- Employed Pepper to perform dynamic analysis on four diverse datasets: yearly malware collections (2016–2020), family-based malware, APT samples, and benign software.
- Used a combination of behavioral analysis and instrumentation to force evasive samples to execute fully, enabling detection of evasion behaviors.
- Classified evasion techniques into categories including anti-debugging, VM detection, timing attacks, and code-injection, with fine-grained detection logic.
- Validated Pepper’s effectiveness by testing it against the Themida protector, confirming full detection and mitigation of its evasion features.
- Applied the DIE tool to identify packers and protectors, correlating their presence with evasion behavior to assess prevalence and patterns.
Experimental results
Research questions
- RQ1What is the prevalence of anti-dynamic-analysis evasion techniques in Windows malware across different years and malware families?
- RQ2How do the usage patterns of evasion techniques evolve over time, and which techniques are most commonly employed?
- RQ3To what extent are evasion techniques associated with the use of packers or protectors, and which protectors are most prevalent in evasive samples?
- RQ4Which evasion techniques are frequently used in benign software, and how do they affect the reliability of static heuristics as indicators of malicious behavior?
- RQ5How does the number of evasion techniques per sample vary, and is there a correlation between technique diversity and sample type (e.g., APT vs. general malware)?
Key findings
- Over 40% of malware samples collected in 2020 used at least one evasion technique, up from ~30% in 2016, indicating a growing trend in evasive behavior.
- On average, each malware sample uses 2 evasion techniques, though some employ more than ten, with 41% using more than one and 17% using more than two.
- More than 90% of samples packed with off-the-shelf packers (e.g., UPX, ASPack) exhibit Anti-Dump techniques, primarily to prevent memory dumping.
- Themida is the most prevalent protector, accounting for more samples than the next three most common protectors (VMProtect, ASProtect, ENIGMA) combined, and is highly evasive.
- Over 60% of packed samples and over 50% of protected samples exhibit evasive behaviors, with protected samples using an average of 4.1 distinct techniques per sample.
- Four commonly reported anti-analysis techniques—such as specific timing checks and registry checks—were also found in benign software, indicating they are not reliable indicators of malicious intent.
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.