English

Use of Cryptography in Malware Obfuscation

Cryptography and Security 2023-09-11 v3

Abstract

Malware authors often use cryptographic tools such as XOR encryption and block ciphers like AES to obfuscate part of the malware to evade detection. Use of cryptography may give the impression that these obfuscation techniques have some provable guarantees of success. In this paper, we take a closer look at the use of cryptographic tools to obfuscate malware. We first find that most techniques are easy to defeat (in principle), since the decryption algorithm and the key is shipped within the program. In order to clearly define an obfuscation technique's potential to evade detection we propose a principled definition of malware obfuscation, and then categorize instances of malware obfuscation that use cryptographic tools into those which evade detection and those which are detectable. We find that schemes that are hard to de-obfuscate necessarily rely on a construct based on environmental keying. We also show that cryptographic notions of obfuscation, e.g., indistinghuishability and virtual black box obfuscation, may not guarantee evasion detection under our model. However, they can be used in conjunction with environmental keying to produce hard to de-obfuscate version of programs.

Keywords

Cite

@article{arxiv.2212.04008,
  title  = {Use of Cryptography in Malware Obfuscation},
  author = {Hassan Jameel Asghar and Benjamin Zi Hao Zhao and Muhammad Ikram and Giang Nguyen and Dali Kaafar and Sean Lamont and Daniel Coscia},
  journal= {arXiv preprint arXiv:2212.04008},
  year   = {2023}
}

Comments

This is the full version of the paper with the same title to appear in the Journal of Computer Virology and Hacking Techniques

R2 v1 2026-06-28T07:25:21.487Z