Use of Cryptography in Malware Obfuscation

Hassan Jameel Asghar, Benjamin Zi Hao Zhao, Muhammad Ikram, Giang Nguyen, Dali Kaafar +2 more
12/7/2022
cs.CR

Official code: iosifache/DikeDataset (164 stars, TeX, MIT, last commit 2023-07-19).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Dataset with labeled benign and malicious files 🗃️

16426TeX, PythonMar 10, 20213 years agoMIT
artificial-intelligencedatasetmalware-samples

Similar Papers

Cite this paper

@article{asghar2022cryptography,
  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},
  year   = {2022},
  eprint = {2212.04008},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.04008}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.04008.svg)](https://codeofpaper.com/paper/2212.04008)

Discussion