T155 : Towards Unhackable SGX Enclaves

Supervision:
Contact person: Raoul Strackx
Supervisor(s): Frank Piessens
Daily advisor(s): Raoul Strackx Neline van Ginkel Tobias Mühlberg
Research group:
Distributed Software & Software Security
Context:

Intel SGX is a new isolation technology in Intel processors that enables the isolation of sensitive code and data; Even when an attacker managed to infiltrate in the kernel, hypervisor or system management mode, code and data stored in "enclaves" cannot be accessed.

To make optimal use of this isolation guarantee, the enclaves themselves need to be free from vulnerabilities. Writing their functionality in low-level, error-prone languages such as C is generally a bad idea. But writing them in higher-level languages such as Rust, also is not straightforward. An in-kernel attacker is not restricted by the high-level language's type system but accesses the enclave at assembly-level. We need to provide proper checks at the untrusted code/protected enclave boundary.

Aim:

The development of a toolchain to write SGX enclaves in a higher-level language. Obviously the security and performance impact of the approach taken needs to be evaluated as well.
 

Possible research questions:

Which checks need to be added at the enclave boundaries to avoid that an attacker can access the enclave without being restricted by the high-level type system?
 

Approach:

You will become familiar with research regarding protected-module architectures (PMAs) (Intel SGX is a PMA developed by Intel) as well as the Rust programming language. Compilation support for Rust constructs will be added iteratively and may involve modifications to the existing Rust compiler and/or linker.
 

Relevant literature:

- Efficient Isolation of Trusted Subsystems in Embedded Systems
https://lirias.kuleuven.be/bitstream/123456789/277417/1/paper.pdf

- Towards Safe Enclaves
https://lirias.kuleuven.be/bitstream/123456789/537986/1/SafeEnvlaves.pdf

- https://www.rust-lang.org/
 

Student profile:

Keen students who like to get their hands dirty on low-level implementation details and high-level security properties.
 

This topic is for 1 student(s).

This topic can be selected by

  • all Master in de Ingenieurswetenschappen: Computerwetenschappen (ir) students
  • all Master of Engineering: Computer Science students

Clusters, in which this topic appears:
  • Secure Software
18-07-2008