# Threat Model

SGX operates assuming that adversaries have physical or remote access to a computer, allowing them to gain control over various components including boot firmware, System Management Mode, host operating system, hypervisor, guest operating system, user-space applications, and peripheral devices. Specifically, we assume that adversaries can access the main memory and conduct physical and hardware attacks, such as probing buses or accessing main memory through malicious Direct Memory Access (DMA).

In this context, SGX-enclaved programs extend the security perimeter against rootkits, return-oriented programming, Meltdown, Rowhammer, cold boot memory attacks, and DRAM probing attacks.

The primary trust assumption is that the CPU is trusted, specifically the SGX security processor extension. SGX incorporates built-in countermeasures against side-channel attacks to prevent the extraction of key material. However, only limited public documentation is available regarding these countermeasures.

<img src="/files/LLHK3WQYPB6PSrgsdU8f" alt="Summary of the threat model" class="gitbook-drawing">

The adversaries' primary objective is to obtain confidential data or disrupt the execution of an enclave. It is important to note that SGX does not guarantee availability since adversaries have control over all computational resources and can launch Denial of Service (DoS) attacks.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.enclaive.cloud/confidential-cloud/technology-in-depth/intel-sgx/technology/threat-model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
