Foreshadow (security vulnerability)


Foreshadow is a vulnerability that affects modern microprocessors that was first discovered by two independent teams of researchers in January 2018, but was first disclosed to the public on 14 August 2018. The vulnerability is a speculative execution attack on Intel processors that may result in the disclosure of sensitive information stored in personal computers and third-party clouds. There are two versions: the first version targets data from SGX enclaves; and the second version targets virtual machines, hypervisors, operating systems kernel memory, and System Management Mode memory. A listing of affected Intel hardware has been posted.
Foreshadow is similar to the Spectre security vulnerabilities discovered earlier to affect Intel and AMD chips, and the Meltdown vulnerability that also affected Intel. However, AMD products, according to AMD, are not affected by the Foreshadow security flaws. According to one expert, " lets malicious software break into secure areas that even the Spectre and Meltdown flaws couldn't crack". Nonetheless, one of the variants of Foreshadow goes beyond Intel chips with SGX technology, and affects "all Core processors built over the last seven years".
Foreshadow may be very difficult to exploit, and there seems to be no evidence to date of any serious hacking involving the Foreshadow vulnerabilities. Nevertheless, applying software patches may help alleviate some concern, although the balance between security and performance may be a worthy consideration. Companies performing cloud computing may see a significant decrease in their overall computing power; individuals, however, may not likely see any performance impact, according to researchers. The real fix, according to Intel, is by replacing today's processors. Intel further states, "These changes begin with our next-generation Intel Xeon Scalable processors, as well as new client processors expected to launch later this year ."
On 16 August 2018, researchers presented technical details of the Foreshadow security vulnerabilities in a seminar, and publication, entitled "Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution" at a USENIX security conference.

History

Two groups of researchers discovered the security vulnerabilities independently: a Belgian team from imec-DistriNet, KU Leuven reported it to Intel on 3 January 2018; a second team from Technion – Israel Institute of Technology, University of Adelaide, and University of Michigan reported it on 23 January 2018. The vulnerabilities were first disclosed to the public on 14 August 2018.

Mechanism

The Foreshadow vulnerability is a speculative execution attack on Intel processors that may result in the disclosure of sensitive information stored in personal computers and third-party clouds. There are two versions: the first version targets data from SGX enclaves; and the second version targets virtual machines, hypervisors, operating systems kernel memory, and System Management Mode memory. Intel considers the entire class of speculative execution side channel vulnerabilities as "L1 Terminal Fault".
For Foreshadow, the sensitive data of interest is the encrypted data in an SGX enclave. Usually, an attempt to read enclave memory from outside the enclave is made, speculative execution is permitted to modify the cache based on the data that was read, and then the processor is allowed to block the speculation when it detects that the protected-enclave memory is involved and reading is not permitted. However, "... if the sensitive data is in level 1 cache, speculative execution can use it before the processor determines that there's no permission to use it." The Foreshadow attacks are stealthy, and leave few traces of the attack event afterwards in a computer's logs.
On 16 August 2018, researchers presented technical details of the Foreshadow security vulnerabilities in a seminar, and publication, at a USENIX security conference.

Impact

Foreshadow is similar to the Spectre security vulnerabilities discovered earlier to affect Intel and AMD chips, and the Meltdown vulnerability that affected Intel. AMD products, according to AMD, are not affected by the Foreshadow security flaws. According to one expert, " lets malicious software break into secure areas that even the Spectre and Meltdown flaws couldn't crack". Nonetheless, one of the variants of Foreshadow goes beyond Intel chips with SGX technology, and affects "all Core processors built over the last seven years".
Intel notes that the Foreshadow flaws could produce the following:
According to one of the discoverers of the computer flaws: "... the SGX security hole can lead to a "Complete collapse of the SGX ecosystem."
A partial listing of affected Intel hardware has been posted, and is described below.
Foreshadow may be very difficult to exploit, and there seems to be no evidence to date of any serious hacking involving the Foreshadow vulnerabilities.

Mitigation

Applying software patches may help alleviate some concern, although the balance between security and performance may be a worthy consideration. Companies performing cloud computing may see a significant decrease in their overall computing power; individuals, however, may not likely see any performance impact, according to researchers.
The real fix, according to Intel, is by replacing today's processors. Intel further states, "These changes begin with our next-generation Intel Xeon Scalable processors, as well as new client processors expected to launch later this year ."