Intel Software Guard Extensions (SGX) is a set of instruction codes implementing trusted execution environment that are built into some Intel central processing units (CPUs). They allow user-level and operating system code to define protected private regions of memory, called enclaves.12 SGX is designed to be useful for implementing secure remote computation, secure web browsing, and digital rights management (DRM).3 Other applications include concealment of proprietary algorithms and of encryption keys.4
SGX involves encryption by the CPU of a portion of memory (the enclave). Data and code originating in the enclave are decrypted on the fly within the CPU, protecting them from being examined or read by other code, including code running at higher such as the and any underlying . While this can mitigate many kinds of attacks, it does not protect against .