Back to results

University of Oxford

CipherTrace: automatic detection of ciphers from execution traces

Abstract

dc:description.abstract

Cryptography is defensive in nature, as it provides confidentiality, integrity, and authenticity to its consumers for data processing, storage and transmission. The employment of cryptography in software has introduced additional complexity in investigating the intent of a binary program or a running process. The rapid-increasing trend of using cryptography in malicious software, has re-introduced cryptography from an ”active-defense” perspective. This trend is known as cryptovirology, which was first introduced in 1996. The ever-increasing number of malware samples employing cryptography has demanded for more sophisticated analysis techniques to account for the malware and its operation(s), and if applicable, allow for neutralization and/or recovery. Generally, the detection and identification of cryptographic functions, routines, or algorithms facilitates malware analysis and forensics. However, most of the attempts presented in the literature have basically followed a top-down approach, which (by design) has limited them, as they are mainly focused on detecting certain implementations, rather than the building blocks, elements, or ingredients of cryptography in general. Nevertheless, the lack of work on automating the process makes it harder to scale in quantity and quality. In this dissertation, we explore the idea of generalizing the detection of cryptography, via dynamically analyzing Out-of-VM execution traces of binary programs. The prototype we developed (CipherTrace) is based on PANDA, the architecture-neutral dynamic analysis platform. PANDA was favored among others mainly due to its plugin architecture as well as its record-and-replay functionality, which allows for developing extensions easily and repeatable analysis. PANDA is based on QEMU, which is a whole-system emulator and virtualizer. In QEMU, the in-guest components are not visible to the guest programs, therefore it provides isolation to a certain extend, wherein the results are more true-hearted. We apply custom heuristics on the synthetic information of called functions, e.g., count of arithmetic operations, number of executions of basic blocks, memory access patterns, and more. The synthetic information can be categorized as raw (i.e., Platform-driven or Assembly-driven), or lifted (i.e., LLVM-driven). Finally, we report the findings, observations, limitations, and assert the feasibility and scalability of the concept, the dynamic analysis approach, as well as the technique applied to identify cryptographic (crypto) elements to classify a cipher. Crypto elements are the generic elementary units (or constituents) of cryptography, i.e., the operational functional blocks (e.g., a substitution or permutation step, etc).

Degree

thesis:*
Name dc:type.qualificationname
MSc
Level dc:type.qualificationlevel
Masters
Grantor dc:publisher.institution
University of Oxford
Year dc:date.issued
2020

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Hassanin, Mostafa Abdelmoez

Subjects

dc:subject × 3

Rights

Language dc:language.dcterms_iso639_2
eng

Identifiers

dc:identifier.*
Identifier
uuid:c8f36d8c-3b3e-40bf-9b4e-7f557fef5e83

Chain of custody

source
Harvested from
Oxford University
Base URL
ora.ox.ac.uk/oai2
Last updated
2026-11-25
Source record
OAI-PMH GetRecord
citation

Hassanin, Mostafa Abdelmoez. CipherTrace: automatic detection of ciphers from execution traces. Masters thesis, University of Oxford, 2020. http://ora.ox.ac.uk/objects/uuid:c8f36d8c-3b3e-40bf-9b4e-7f557fef5e83