Foreshadow Explained

See also: Transient execution CPU vulnerability.

Foreshadow
Cve: (Foreshadow), and (Foreshadow-NG)
Affected Hardware:Modern Intel processors

Foreshadow, known as L1 Terminal Fault (L1TF) by Intel,[1] 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 (original/Foreshadow) targets data from SGX enclaves; and the second version (next-generation/Foreshadow-NG)[2] targets virtual machines (VMs), hypervisors (VMM), operating systems (OS) kernel memory, and System Management Mode (SMM) 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. AMD products are not affected by the Foreshadow security flaws. According to one expert, "[Foreshadow] 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 [Intel] Core processors built over the last seven years".

Foreshadow may be very difficult to exploit. As of 15 August 2018, there seems to be no evidence 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; people should 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 (code-named Cascade Lake), as well as new client processors expected to launch later this year [2018]."

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.[3]

History

Two groups of researchers discovered the security vulnerabilities independently: a Belgian team (including Raoul Strackx, Jo Van Bulck, Frank Piessens) from imec-DistriNet, KU Leuven reported it to Intel on 3 January 2018;[4] a second team from Technion – Israel Institute of Technology (Marina Minkin, Mark Silberstein), University of Adelaide (Yuval Yarom), and University of Michigan (Ofir Weisse, Daniel Genkin, Baris Kasikci, Thomas F. Wenisch) 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 (original/Foreshadow) ([attacks SGX]) targets data from SGX enclaves; and the second version (next-generation/Foreshadow-NG) ([attacks the OS Kernel and SMM mode] and [attacks virtual machines]) targets virtual machines (VMs), hypervisors (VMM), operating systems (OS) kernel memory, and System Management Mode (SMM) memory. Intel considers the entire class of speculative execution side channel vulnerabilities as "L1 Terminal Fault" (L1TF).

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. Speculative execution can use sensitive data in a level 1 cache before the processor notices a lack of permission. 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,[3] at a USENIX security conference.[3]

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, "[Foreshadow] 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 [Intel] 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. (Note: a more detailed - and updated - listing of affected products is on the official Intel website.)

Foreshadow may be very difficult to exploit, and there seems to be no evidence to date (15 August 2018) of any serious hacking involving the Foreshadow vulnerabilities.

Mitigation

Applying software patches may help alleviate some concern(s), although the balance between security and performance may be a worthy consideration.[5] Companies performing cloud computing may see a significant decrease in their overall computing power; people should 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 (code-named Cascade Lake),[6] [7] as well as new client processors expected to launch later this year [2018]."

See also

Further reading

Notes and References

  1. Web site: Software Security Guidance from Intel . Software.intel.com . 2021-12-29 . 2020-07-26 . https://web.archive.org/web/20200726215942/https://software.intel.com/security-software-guidance/software-guidance/l1-terminal-fault . live .
  2. Web site: Foreshadow-NG: Breaking the virtual memory abstraction with transient out-of-order execution . Weisse, Ofir . etal . 2018 .
  3. Web site: Van Bulck . Jo . Minkin . Marina . Weisse . Ofir . Genkin . Daniel . Kasikci . Baris . Piessens . Frank . Silberstein . Mark . Wenisch . Thomas F. . Yarom . Yuval . Strackx . Raoul . Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution . 16 August 2018 . . 16 August 2018 . live . https://web.archive.org/web/20180818081230/https://www.usenix.org/system/files/conference/usenixsecurity18/sec18-van_bulck.pdf . 2018-08-18.
  4. Web site: Protecting Our Customers through the Lifecycle of Security Threats | Intel Newsroom . Newsroom.intel.com . 2021-12-29 . 2018-08-14 . https://web.archive.org/web/20180814171651/https://newsroom.intel.com/editorials/protecting-our-customers-through-lifecycle-security-threats/ . live .
  5. News: Larabel . Michael . Benchmarking AMD FX vs. Intel Sandy/Ivy Bridge CPUs Following Spectre, Meltdown, L1TF, Zombieload . 24 May 2019 . . 25 May 2019 . 2019-06-01 . https://web.archive.org/web/20190601164746/https://www.phoronix.com/scan.php?page=article&item=sandy-fx-zombieload&num=1 . live .
  6. Web site: Cutress . Ian . Intel at Hot Chips 2018: Showing the Ankle of Cascade Lake . 19 August 2018 . . 19 August 2018 . 2018-08-20 . https://web.archive.org/web/20180820035846/https://www.anandtech.com/show/13239/intel-at-hot-chips-2018-showing-the-ankle-of-cascade-lake . live .
  7. Web site: Alcorn . Paul . Intel Unveils Cascade Lake, In-Silicon Spectre And Meltdown Mitigations . 22 August 2018 . . 22 August 2018.