Evaluating satisfiability modulo theorem solvers for code deobfuscation
Abstract
Automated static program analysis is crucial in cybersecurity research and malware identification. With antivirus software (like Microsoft Windows Defender) employing malware detection algorithms that statically analyze programs that the users interact with, the performance and efficiency of automatic static program analysis becomes more important than ever. Code obfuscation is a tactic of complicating the program expression and logic without affecting its semantics to prevent reverse engineering. The prevalence of code obfuscation makes static program analysis difficult. Symbolic execution is a powerful method of static program analysis that could be leveraged to optimize the obfuscation away and is powered by the solution of satisfiability modulo theorems (SMT). While research finding performant SMT-solving approaches has been highly focused, rarely have researchers looked into evaluating different SMT-solving algorithms for specific scenarios. This research aims to evaluate different mainstream state-of-the-art SMT solvers for their performance in the use of symbolic optimization and code deobfuscation. By analyzing common code obfuscation tactics and comparing the strategies that SMT solvers use and their performance in different benchmarking categories, the research concludes that linear arithmetics and bit vector solving are the most important aspects of an SMT solver and future SMT solver development should explore building solvers with hybrid architectures that combine the strengths different solvers at solving different types of theories for the most optimal efficiency.
References
- Behera, C. K., & Bhaskari, D. L. (2015). Different obfuscation techniques for code protection. Procedia Computer Science, 70, 757–763.
- Schrittwieser, S., Katzenbeisser, S., Kinder, J., Merzdovnik, G., & Weippl, E. (2016). Protecting software through obfuscation. ACM Computing Surveys, 49(1), 1–37.
- Canfora, G., Di Penta, M., & Cerulo, L. (2011). Achievements and challenges in software reverse engineering. Communications of the ACM, 54(4), 142–151.
- You, I., & Yim, K. (2010). Malware obfuscation techniques: A brief survey. In 2010 International Conference on Broadband, Wireless Computing, Communication and Applications.
- Naug, R. (2020). Useless code identification with symbolic execution. Journal of Advanced Research in Dynamical and Control Systems, 12(SP3), 17–20.
- Barrett, C., de Moura, L., & Stump, A. (2005). SMT-Comp: Satisfiability modulo theories competition. In Lecture Notes in Computer Science (pp. 20–23).
- Scott, J., Niemetz, A., Preiner, M., Nejati, S., & Ganesh, V. (2021). MACHSMT: A machine learning-based algorithm selector for SMT solvers. In Lecture Notes in Computer Science (pp. 303–325).
- Scott, J., Niemetz, A., Preiner, M., Nejati, S., & Ganesh, V. (2023). Algorithm selection for SMT. International Journal on Software Tools for Technology Transfer, 25(2), 219–239.
- Sen, K. (2016). Technical perspective: Veritesting tackles path-explosion problem. Communications of the ACM, 59(6), 92.
- Bruttomesso, R., et al. (2005). A lazy and layered SMT(BV) solver for hard industrial verification problems. In Lecture Notes in Computer Science (pp. 547–560).
- Bozzano, M., et al. (2005). MathSAT: Tight integration of SAT and mathematical decision procedures. In SAT 2005 (pp. 265–293).
- De Moura, L., & Bjørner, N. (2008). Z3: An efficient SMT solver. In Lecture Notes in Computer Science (pp. 337–340).
- Niemetz, A., & Preiner, M. (2023). Bitwuzla. In Lecture Notes in Computer Science (pp. 3–17).
- SMT-COMP. (2021). Results single query. SMT-COMP 2021. Retrieved August 6, 2024, from https://smt-comp.github.io/2021/results/results-single-query