News for hackers. Stuff that matters.
Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by alkonaut on Monday June 25, 2018 @04:21AM (#17390780)
Is the solution to this and previous side channel bugs to simply not run untrusted and trusted code on the same machine?

Basically a revert to the security model of Windows XP. We should assume access to execute any code means the same security level as having physical access to a machine (I.e. full machine ownership)?

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by pjc50 on Monday June 25, 2018 @06:59AM (#17391368)
> not run untrusted and trusted code on the same machine?

That would be an incredible disaster, especially if you count "inside a VM" as "on the same machine". Even more so if you count Javascript as "code". And I think it's an overreaction.

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by alkonaut on Monday June 25, 2018 @07:52AM (#17391570)
> And I think it's an overreaction.

I think it is too. Perhaps a better question is: should we really be using the same kind of threat models and mitigation strategies for my gaming machine where I'm alone, and another extreme: A machine running virtual machines for a cloud provider?

For the latter case, issuing microcode/OS fixes or recompiling apps to be more secure but losing 10% performance is probably a worthwhile thing. For the single user machine it's absolutely unacceptable. A gamer would much rather have the XP security model than lose 10% performance in even some rare scenarios due to (for example) extra cache flushes designed to mitigate timing attacks! I'd at least want the option.

So while I don't think that everything we held to be true about computer security is about to go out the window, I almost hope that the future will hold different security for different scenarios. Just because I run the same OS on the same CPU doesn't mean I necessarily need the same security.

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by pjc50 on Monday June 25, 2018 @08:20AM (#17391740)
> A gamer would much rather have the XP security model

.. but you probably still don't want your machine to be remotely exploitable by other players. And gaming has the interesting security issue of "anti-cheat", where it's useful if players can prove they're not leaking information from the game process on their own machine. And lots of people will use the same machine to play games and do online banking.

Perhaps the way out is more than one "computer" on the same board with different security models. There's already bits of this with TPMs and ILO systems, but the manufacturers care more about keeping them proprietary than making them usable.

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by alkonaut on Monday June 25, 2018 @08:40AM (#17391899)
> .. but you probably still don't want your machine to be remotely exploitable by other players

Right. These kind of vulnerabilities are more along the lines of IF an attacker is able to do arbitrary code execution in my first person shooter, by giving it some crafted netcode packages in a multiplayer game - could he then also read my credit card data from my web browser process through a side channel?

And I'm willing to say that - yes - I accept that he can, or at least I'd rather that be possible than sacrifice performance. I realize that any process I run in windows is vulnerable to spying by any other process. Seen that way, the defense has to be against remote code execution, not against cross-process memory reads.

One example of this cross process weakness in windows: once he runs arbitrary code he can just take a screenshot of any other program anyway, including the window with my credit card details in it!

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by zrm on Monday June 25, 2018 @10:07AM (#17392512)
> Seen that way, the defense has to be against remote code execution, not against cross-process memory reads.

This doesn't always look like what it is. You have games that allow e.g. custom levels with map editors, and then the users download the level from the other users and execute whatever code is part of making the level work. This could be exploitable for timing even if it's in a game-specific language. Or isn't even intentionally "code" but still an attacker can use it as a Weird Machine to the same effect.

Putting it on the game developers to make sure none of that is possible is never going to work.

What might work without needing physically separate hardware is to assign dedicated cores to highly performance sensitive programs, with the mitigations disabled on those cores because they're no longer shared. The cost is you would have to leave at least one core for everything else, but that feels like a good trade off. It may even be possible to use the shared core(s) for the game (with lower scheduling priority) even though the mitigations are still turned on for shared core(s).

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by daemin on Monday June 25, 2018 @11:09AM (#17392981)
Also a lot of games actually run a web browser within the game itself these days. So then what do you want to happen if the website the game loads suddenly becomes compromised? (Through DNS poisoning, stealing the domain, etc)
Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by AstralStorm on Monday June 25, 2018 @08:00AM (#17391614)
It is doable if the hardware supports it well. Especially with virtual machines. However it is expensive to implement and thus even high end consumer mainboards have problems today. (try passing through a GPU)

And unless you have multiple CPUs or can ensure the cores do not interact in unexpected ways, you essentially have to accept the cost, remain vulnerable (and eat the worms) or replace the hardware with something fixed.

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by zik on Monday June 25, 2018 @04:42AM (#17390864)
No, as he points out in the article even a kernel call can change the virtual address space so even two threads of the same program may leak data. There's basically no known fix except to disable hyperthreading entirely.
Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by alkonaut on Monday June 25, 2018 @04:46AM (#17390873)
Yes I meant more generally - effectively: at what point do we trust that there are no side channels in a modern cpu?

It seems they are complex enough that the answer may be "never", at least for some high risk scenarios.

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by DyslexicAtheist on Monday June 25, 2018 @05:49AM (#17391090)
> There's basically no known fix except to disable hyperthreading entirely.

on kabylake & skylake this has been the recommendation anyway https://lists.debian.org/debian-devel/2017/06/msg00308.html

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by tambre on Monday June 25, 2018 @06:41AM (#17391291)
That was the recommendation before the microcode fixes for the issue became widely available.
Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by JdeBP on Monday June 25, 2018 @06:50AM (#17391329)
Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by pas on Monday June 25, 2018 @05:51AM (#17391100)
If you pin VMs to different cores, never sharing hyperthreads, then the risk is contained per VM (or per core).
Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by pabloski on Monday June 25, 2018 @06:26AM (#17391233)
Let's hope there's no inter-core side-channel lurking in the shadows :(

It is time to rethinking the engineering methodologies we use in the electronics/informatics field.

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by cm2187 on Monday June 25, 2018 @06:32AM (#17391259)
Breaking x86 backward compatibility? That would be fun.
Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by pabloski on Monday June 25, 2018 @10:27AM (#17392664)
So we are between a rock and a hard place.
Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by pocak on Monday June 25, 2018 @09:12AM (#17392101)
If you give two threads on one core to one VM, the VM could attack the hypervisor. It could have one thread run the TLB probe loop while the other does something that's handled by the hypervisor.
Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by AlphaSite on Monday June 25, 2018 @10:48AM (#17392811)
Isn’t there typically a VMM per VM? So the risk is then lower?

http://3.bp.blogspot.com/-OyjQUpLowmg/Udz1_NxqNLI/AAAAAAAABV...

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by pjmlp on Monday June 25, 2018 @12:58PM (#17393863)
I think you mean the security model of Windows 9X.

XP, specially after SP2 was as safe as NT, if users bother to actually make use of administrator/user separation roles.

Re:OpenBSD chief de Raadt says no easy fix for new Intel CPU... by alkonaut on Monday June 25, 2018 @01:09PM (#17393951)
Right. I forgot XP wasn’t the ancient one.