TL;DR
This paper introduces OBFU-mal, a novel framework that uses Deep Reinforcement Learning (DRL) combined with open-source obfuscation tools to generate highly evasive malware variants. By focusing on full-file obfuscation rather than minor modifications, OBFU-mal significantly outperforms existing Adversarial Malware Generation (AMG) techniques, demonstrating a practical approach to making malware detectors more robust.
What Problem Does This Paper Address?
The cybersecurity arms race between malware developers and defense systems is a constant challenge. While Deep Learning (DL) has shown promise in detecting novel malware, these models are vulnerable to adversarial attacks. Adversarial Malware Generation (AMG) aims to create malware variants that can fool these detectors, which can then be used to retrain and strengthen the detectors. However, most existing AMG methods focus on small, additive changes to malware files, which are less representative of real-world hacker tactics. Real-world attackers often employ comprehensive obfuscation techniques like encryption and packing to hide their malicious code. This paper addresses the gap in AMG research by exploring full-file obfuscation using readily available tools, aiming to create more realistic and effective adversarial malware samples that can better challenge and improve DL-based malware detectors.
Methods
The core of this work is the OBFU-mal framework, which integrates Deep Reinforcement Learning (DRL) with open-source obfuscation tools. The framework utilizes a Deep Q-Network (DQN) agent, a popular DRL algorithm known for its efficiency in complex environments. The agent interacts with a simulated malware detection environment, where it learns to select sequences of actions to obfuscate a given malware sample.
The "action space" for the RL agent is significantly expanded beyond traditional AMG methods. It includes standard actions like appending benign bytes and editing file sections, but crucially, it incorporates obfuscation techniques from tools like Darkarmour (for XOR encryption) and UPX (for compression). This allows OBFU-mal to perform full-file obfuscation, mimicking real-world attacker behavior. The RL agent's goal is to maximize its "reward," which is inversely related to the malware detector's confidence that the obfuscated file is malicious. The agent iteratively learns optimal obfuscation strategies through trial and error, guided by feedback from the malware detector.
Datasets
The study used a repository of 3,456 malware samples sourced from VirusTotal. These samples were categorized into Botnet, Ransomware, Rootkit, Spyware, and Virus. The malware samples were then modified by OBFU-mal and other benchmark AMG methods for evaluation.
Key Insights and Ideas
- Full-file obfuscation is key: The research strongly suggests that focusing on comprehensive file obfuscation, rather than minor perturbations, is crucial for generating truly evasive malware variants that mimic real-world threats.
- Open-source tools are powerful: The study demonstrates that readily available, open-source obfuscation tools can be highly effective in bypassing sophisticated malware detectors, challenging the notion that advanced, proprietary techniques are always necessary for evasion.
- DRL is an effective navigator: Deep Reinforcement Learning, specifically DQN, proves to be an efficient mechanism for exploring the vast action space created by combining multiple obfuscation tools and techniques, allowing the agent to discover optimal evasion strategies.
- Transferability of evasion: Malware samples crafted to evade specific detectors (MalConv, LGBM/EMBER) also showed significant evasion rates against a different, pseudo-commercial detector (ClamAV), indicating that effective adversarial techniques can generalize across different detection mechanisms.
Key Results
OBFU-mal achieved impressive evasion rates across various malware categories and detectors:
- Against MalConv: OBFU-mal achieved an overall evasion rate of 65.15%, outperforming benchmark methods like MAB-malware (by 14.45%), ACER (by 30.11%), and MalGPT (by 40.64%).
- Against LGBM/EMBER: The framework achieved an overall evasion rate of 79.20%, showing significant improvements over AMG-VAC (by 27.53%), Enhanced-BFA (by 42.02%), and MAB-malware (by 68.11%).
- Ablation Study: Combining RL with obfuscation (OBFU-mal) outperformed either RL alone or obfuscation alone, demonstrating the synergistic benefit of their integration. This combination led to an average increase of 17.82% in evasion rates.
- ClamAV Evasion: Samples generated against MalConv and LGBM/EMBER evaded ClamAV at rates of 69.67% and 86.44%, respectively, highlighting the transferability of evasion techniques.
Limitations and Future Work
The authors acknowledge that their work focuses on the offensive aspect of AMG and does not delve into defensive strategies like adversarial retraining. They also note variations in OBFU-mal's performance across different malware types, suggesting that file complexity might play a role, which warrants further investigation.
Future work proposed includes:
- Exploring more sophisticated source-code obfuscation methods, potentially through reverse engineering, to further enhance AMG capabilities.
- Investigating the performance variations observed across different malware categories to gain deeper insights into detector strengths and weaknesses.
- Examining the contribution of OBFU-mal to defensive operations, such as its role in generating robust training data for defense mechanisms.
Summary updated