Automating the Detection of Evasive Windows Malware: An Evaluated YARA Rule Library for Anti-VM and Anti-Sandbox Techniques
Open Access
- 8 April 2026
- journal article
- research article
- Published by MDPI AG in Journal of Cybersecurity and Privacy
- Vol. 6 (2) , 69
Abstract
Anti-analysis techniques, also known as evasive techniques, enable Windows malware to detect and evade dynamic inspection environments, undermining the effectiveness of virtual-machine and sandbox-based inspection. Despite extensive prior research, no unified classification has been paired with a large-scale empirical evaluation of static detection capabilities for these behaviors. This paper addresses this gap by presenting a comprehensive classification and detection framework. We consolidate 94 anti-analysis techniques from academic, community, and threat-intelligence sources into nine mechanistic categories and derive corresponding YARA rules for static identification. In total, 82 YARA signatures were authored or refined and evaluated on 459,508 malware and 92,508 goodware samples. After iterative refinement using precision thresholds, 42 rules achieved high accuracy (≥75%), 16 showed moderate precision (50–75%), and 24 were discarded due to unreliability. The results indicate strong static detectability for firmware- and BIOS-based checks, but limited precision for timing-based evasions, which frequently overlap with benign behavior. Although YARA provides broad coverage of observable artifacts, its static nature limits detection under obfuscation or runtime mutation; our measurements therefore represent conservative estimates of technique prevalence. All validated rules are released in an open-source repository to support reproducibility, improve incident-response workflows, and strengthen prevention and mitigation against real-world threats. Future work will explore hybrid validation, container-evasion extensions, and forensic attribution based on signature co-occurrence patterns.Keywords
Funding Information
- Instituto Nacional de Ciberseguridad, INCIBE
- Departament de Recerca i Universitats of the Generalitat de Catalunya (2021 DI 00092)
This publication has 22 references indexed in Scilit:
- Bypassing anti-emulation methods for malware detectionJournal of Computer Science and Cybernetics, 2024
- Large-Scale Analysis on Anti-Analysis Techniques in Real-World MalwareIEEE Access, 2022
- Evaluating Dynamic Binary Instrumentation Systems for Conspicuous Features and ArtifactsDigital Threats: Research and Practice, 2022
- Evasion and Countermeasures Techniques to Detect Dynamic Binary Instrumentation FrameworksDigital Threats: Research and Practice, 2022
- A Systematical and longitudinal study of evasive behaviors in windows malwareComputers & Security, 2022
- Investigating Anti-Evasion Malware Triggers Using Automated Sandbox Reconfiguration TechniquesJournal of Cybersecurity and Privacy, 2020
- Malware Dynamic Analysis Evasion TechniquesACM Computing Surveys, 2019
- Dynamic Malware Analysis in the Modern Era—A State of the Art SurveyACM Computing Surveys, 2019
- A Survey on Malware Analysis Techniques: Static, Dynamic, Hybrid and Memory AnalysisInternational Journal on Advanced Science, Engineering and Information Technology, 2018
- Survey on malware anti-analysis2014