Spectre: Google researchers investigating the scope and impact of Spectre attacks have published a document (PDF) confirming that Spectre-type vulnerabilities will continue to exist on computers and that techniques using software will incur a very high performance cost.
Regardless of the cost, according to the research, the software will be inadequate, because some of the Spectre flaws are not fixed by such changes.
The discovery and development of Meltdown and Specter attacks was undoubtedly one of them greatest in security history of computers. It was first unveiled last January, and since then new variations have been appearing throughout the year.
Note:
Below we will try, as much as we can explain the vulnerabilities, but also why software changes can not help. If you do not understand something, do not be disappointed, let's explain it below.
Both attacks are based on the discrepancies between the theoretical behavior of a processor and the documented behavior that depends on the developers and how they write their programs to determine the actual behavior of the applications.
Specifically, all modern processors perform something we call speculative execution.
What does this mean; They make assumptions.
For example, consider a value read from hypothetic memory. If the case is true or false permits or does not allow execution of a command respectively. If the assumptions are correct, the theoretical results are retained. If not, the theoretical results are discarded and the processor repeats the calculation.
The theoretical execution is not an architectural feature of the processor. It is a feature of implementations and so it is supposed to be completely invisible to the applications running on your computer. When the processor rejects an incorrect case, it should be as if it never happened.
What Meltdown and Specter detects are that the theoretical execution is not completely invisible, and that when the processor rejects the results, some evidence from the wrong assumptions remains behind.
For example, speculation can change the data stored in the cache of the processor. There are therefore applications that can detect these changes by measuring the time to read the values from the memory.
Specter: attack and countermeasures
This allows the attacker to make the processor assume incorrect values and use cache changes to reveal the true value. This becomes particularly threatening in applications such as web browsers: a malicious JavaScript can use such data to learn about the memory layout of the running process and then use this information to exploit other flaws and execute arbitrary code.
Browser developers assume that they can build secure sandboxes for browser processes to run in. This way, scripts from malicious domains will not be able to learn about the memory layout and running processes. Architecturally, these assumptions are correct. But the reality of Spectre has come and landed many in the ground.
Meltdown and Specter: Diversity
The Meltdown attack, which targeted chips from Intel , Apple , and other manufacturers, was a particularly nasty variation of the above. The vulnerability allows a malicious program to extract data from the operating system kernel. Immediately after Meltdown was discovered, changes were made to operating systems to hide their data from such malicious programs.
However, Specter's vulnerability has so many different variations to date (and are still being discovered) that it makes it much more insidious. So developers try using various software development techniques to prevent data leakage in the processor or simply limit the information that can be revealed through the theoretical execution of the processor.
Google research has shown that these software-based measures are half-measures in essence. Some of them, such as blocking all cases after the values are loaded from memory, protect against many attacks, but they are too weak in the system to be used in practice.
The researchers experimented with modified versions of the V8 JavaScript engine in Chrome , and using this technique dropped performance by between a third and a fifth.
Here, let us mention that whatever measures they have taken, they have not discovered anything that protects absolutely. According to the researchers, a combination of techniques should be used and this will have cumulative effects on performance.
And now what;
So the company concluded that we can't protect against the Spectre vulnerability with software patches alone. Appropriate measures should also be taken in hardware, but this thought is scary because it requires upgrades to millions of systems.
At present, applications that are trying to build secure environments based on guarantees provided by hardware to protect between processes.
For example, Chrome has changed its code to prevent content from running from multiple domains in the same process. This still doesn't protect Chrome's sandbox itself from a script attack, but it does ensure that a script can't be attacked from multiple domains. However we do it, it's a form of protection...
Overall, research shows that Specter will employ software developers, hardware manufacturers and end users for years to come.
Be strong…






Meltdown and specter vulnerabilities only exist on Intel and Apple processors, or other processors (Amd & snapdragon);
have been found in others, read: Meltdown and Spectre: which processors are not at risk