VMSpec: A Decompiler-based Approach against Virtual Machine Obfuscation
Fabian Kilger, Leonard Auer, Manuel Andreas
Key points
From the paper's conclusion- We evaluate our prototype of VMSpec on 147 programs from an established obfuscation benchmark, comprising hash functions, standard algorithms, and randomized functions, obfuscated with different configurations of the Tigress and Code Virtualizer obfuscators.
Abstract
Malicious actors frequently obfuscate their code to hinder investigative reverse engineering efforts. Among the most formidable techniques is virtual machine (VM) obfuscation: programs are translated into bytecode for a custom VM, often with a randomized virtual instruction set and distributed alongside a corresponding interpreter. Manual analysis and deobfuscation scale poorly due to the complexity of VM obfuscation and the diversification techniques that render each VM and interpreter unique. Existing methods primarily focus on simplifying execution traces and identifying virtual execution boundaries. However, comparatively little attention has been given to recovering higher-level program semantics from VM-obfuscated code. To address this gap, we propose VMSpec, a novel decompiler-based approach that automates the construction of VM processor specifications, enabling existing, well-known decompilers to analyze the VM-obfuscated code. We evaluate our prototype of VMSpec on 147 programs from an established obfuscation benchmark, comprising hash functions, standard algorithms, and randomized functions, obfuscated with different configurations of the Tigress and Code Virtualizer obfuscators. To demonstrate real-world applicability, we additionally include six domain generation algorithms stemming from real-world malware. VMSpec completely strips VM-obfuscation from nearly all obfuscated samples, producing output comparable to Ghidra's decompilation of the original code. Furthermore, it is the first method capable of reconstructing the complete program behavior of VM-obfuscated programs with infinite, input-dependent paths and recursive calls.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Proving the Wrong Program: Miscompilations as a Threat to zkVM GuaranteesarXiv · 2026
- VulDec: Vulnerability Detection in Binaries via Neural DecompilationarXiv · 2026
- Deegen: A JIT-Capable VM Generator for Dynamic LanguagesProceedings of the ACM on Programming Languages · 2026
- Rethinking Neural Decompilation: Candidate Selection as the Hidden BottleneckarXiv · 2026
- DeCompCert: A Verified Decompiler for CompCert-Generated AArch64arXiv · 2026
- ExeBench-FHD: Addressing Fidelity Issues in Decompiler EvaluationarXiv · 2026