# Cache Attacks

### Introduction

One well-known class of side channels is cache attacks. By exploiting the timing difference between accessing cached and non-cached data, the attacks infer the particular the memory accesses of a victim process by manipulating CPU caches. Because an enclave shares the CPU caches with the rest of system, the enclave is vulnerable to cache attacks by design. Moreover, cache attacks launched by privileged software (under the SGX threat model) are much more powerful (e.g., more accurate) than launched by non-privileged software.


---

# 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://sgx101.gitbook.io/sgx101/sgx-security/cache-attack.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.
