Chosen-Instruction Attack Against Commercial Code Virtualization Obfuscators
Shijia Li, Chunfu Jia, Pengda Qiu, Qiyuan Chen, Jiang Ming, Debin Gao
摘要
—Code virtualization is a well-known sophisticated obfuscation technique that uses custom virtual machines (VM) to emulate the semantics of original native instructions. Commercial VM-based obfuscators (e.g., Themida and VMProtect) are often abused by malware developers to conceal malicious behaviors. Since the internal mechanism of commercial obfuscators is a black box, it is a daunting challenge for the analyst to understand the behavior of virtualized programs. To figure out the code virtualization mechanism and design deobfuscation techniques, the analyst has to perform reverse-engineering on large-scale highly obfuscated programs. This knowledge learning process suffers from painful cost and imprecision. In this project, we study how to automatically extract knowledge from the commercial VM-based obfuscator via a novel chosen-instruction attack (CIA) technique. Our idea is inspired by chosen-plaintext attack, which is a cryptanalysis attack model to gain information that reduces the security of the encryption scheme. Given a commercial VM-based obfuscator, we carefully construct input programs, proactively interact with the obfuscator, and extract knowledge from virtualized output programs. We propose using the anchor instruction and the guided simplification technique to efficiently locate and extract knowledge-related instructions from output programs, respectively. Our experimental results demonstrate that the modern commercial VM-based obfuscators are under the threat of CIA. We have discovered 760 anchor instructions and extracted 1,915 verified instruction mapping rules from the four most widely used commercial obfuscators. The extracted knowledge enables security analysts to understand virtualized malware and improve deobfuscation techniques. Besides, we also contributed the first fine-grained benchmark suite for systematically evaluating the deobfuscation techniques. The evaluation result shows that three state-of-the-art deobfuscation techniques are insufficient to defeat modern commercial VM-based obfuscators and can be improved by our extracted knowledge
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Inspecting Virtual Machine Diversification Inside Virtualization Obfuscation 引用了 Syntia: Synthesizing the Semantics of Obfuscated Code
- Inspecting Virtual Machine Diversification Inside Virtualization Obfuscation 引用了 BinSim: Trace-based Semantic Binary Diffing via System Call Sliced Segment Equivalence Checking
- Oxidizer: Toward Concise and High-fidelity Rust Decompilation 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- Adversarially Robust Assembly Language Model for Packed Executables Detection 引用了 Obfuscation-Resilient Executable Payload Extraction From Packed Malware
- Adversarially Robust Assembly Language Model for Packed Executables Detection 引用了 PackGenome: Automatically Generating Robust YARA Rules for Accurate Malware Packer Detection
- Obfuscation-Resilient Executable Payload Extraction From Packed Malware 引用了 BinSim: Trace-based Semantic Binary Diffing via System Call Sliced Segment Equivalence Checking
- VMHunt: A Verifiable Approach to Partially-Virtualized Binary Code Simplification 引用了 Syntia: Synthesizing the Semantics of Obfuscated Code
- VMHunt: A Verifiable Approach to Partially-Virtualized Binary Code Simplification 引用了 BinSim: Trace-based Semantic Binary Diffing via System Call Sliced Segment Equivalence Checking
- VMHunt: A Verifiable Approach to Partially-Virtualized Binary Code Simplification 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- PackGenome: Automatically Generating Robust YARA Rules for Accurate Malware Packer Detection 引用了 Obfuscation-Resilient Executable Payload Extraction From Packed Malware
引用它的顶会 Paper5
- PackGenome: Automatically Generating Robust YARA Rules for Accurate Malware Packer DetectionShijia Li, Jiang Ming, Pengda Qiu, Qiyuan Chen 等CCS 2023 · 10 次引用
- FirmCross: Detecting Taint-style Vulnerabilities in Modern C-Lua Hybrid Web Services of Linux-based FirmwareRunhao Liu, Jiarun Dai, Haoyu Xiao, Yuan Zhang 等NDSS 2026 · 1 次引用
- Oxidizer: Toward Concise and High-fidelity Rust DecompilationYibo Liu, Zion Leonahenahe Basque, Arvind S. Raj, Chavin Udomwongsa 等S&P 2026 · 1 次引用
- Inspecting Virtual Machine Diversification Inside Virtualization ObfuscationNaiqian Zhang, Dongpeng Xu, Jiang Ming, Jun Xu 等S&P 2025
- Adversarially Robust Assembly Language Model for Packed Executables DetectionShijia Li, Jiang Ming, Lanqing Liu, Longwei Yang 等CCS 2025
它引用的 Paper6
- SOK: (State of) The Art of War: Offensive Techniques in Binary AnalysisYan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens 等S&P 2016 · 1,085 次引用
- BinSim: Trace-based Semantic Binary Diffing via System Call Sliced Segment Equivalence CheckingJiang Ming, Dongpeng Xu, Yufei Jiang, Dinghao WuUSENIX Security 2017 · 118 次引用
- Syntia: Synthesizing the Semantics of Obfuscated CodeTim Blazytko, Moritz Contag, Cornelius Aschermann, Thorsten HolzUSENIX Security 2017 · 99 次引用
- VMHunt: A Verifiable Approach to Partially-Virtualized Binary Code SimplificationDongpeng Xu, Jiang Ming, Yu Fu, Dinghao WuCCS 2018 · 60 次引用
- Obfuscation-Resilient Executable Payload Extraction From Packed MalwareBinlin Cheng, Jiang Ming, Erika A. Leal, Haotian Zhang 等USENIX Security 2021 · 29 次引用
相关 Paper
- Parema: an unpacking framework for demystifying VM-based Android packersLei Xue, Yuxiao Yan, Luyi Yan, Muhui Jiang 等ISSTA 2021 · 11 次引用
- Forced Execution for Malware Protected by Commercial Virtualization ObfuscatorsYifei Zhan, Yukun Cui, Shuofeng Hao, Dongnan He 等CCS 2026
- Search-Based Local Black-Box Deobfuscation: Understand, Improve and MitigateGrégoire Menguy, Sébastien Bardin, Richard Bonichon, Cauim de Souza LimaCCS 2021 · 15 次引用
- Control-Flow Deobfuscation using Trace-Informed Compositional Program SynthesisBenjamin Mariano, Ziteng Wang, Shankara Pailoor, Christian S. Collberg 等OOPSLA 2024 · 5 次引用
- Augmenting Search-based Program Synthesis with Local Inference Rules to Improve Black-box DeobfuscationVidal Attias, Nicolas Bellec, Grégoire Menguy, Sébastien Bardin 等CCS 2025
