Monday, December 9, 2019

Spectre/Meltdown & Speculative Execution

Week 2
Jann Horn and colleagues, employees for Google's Project Zero, discovered the CPU security flaws known as Meltdown and Spectre. Various media outlets have covered this topic and tend to sensationalize the situation but both Meltdown and Spectre are two very different flaws and will require different mitigation steps. What Meltdown does in a nutshell is allow attackers to read arbitrary physical memory, kernel memory, from any unprivileged user process. The Meltdown attack uses out-of-order speculative execution in memory to reveal information stored in the cache. Speculative execution, in a nutshell, is explained through this analogy. Suppose a customer comes into a restaurant and orders the same breakfast at 8am every day. With the chef attempting to be efficient, he anticipates this customer coming in every day with the same order. One day the customer comes in and orders something else but the chef has already prepared the food the customer normally orders. The chef throws this meal away and begins with the new order. CPU's do the same thing and when the instructions they anticipate turn out wrong those instructions had been stored in an unsecured part of cache memory. Both Meltdown and Spectre take advantage of processes during execution because they are randomized and could be leaked through a side channel attack. Since, these exploits have been patched but Microsoft had difficulty doing so due to third-party AV software and AMD processors. The innate issue is with how CPU's process information and this is where the change must be implemented.

No comments:

Post a Comment