13

I've been reading about Meltdown and Spectre today, and I'm wondering if they impact Intel SGX enclaves.

Now, my understanding of Meltdown is somewhat hazy, but AFAICT it does not impact secure enclaves, because it relies on the kernel being mapped into the same address space as processes, right? And it seems like Spectre only works to dump memory in the same process, which would mean that SGX enclaves won't leak memory in this case unless they were already compromised.

Is this correct?

  • I would recommend splitting this question into Spectre and Meltdown, as I suspect the answer will be different for each (but I don't know for sure). – Shelvacu Jan 4 '18 at 5:46
  • I think the Linux communities are dealing in right way here. They are creating literally separate partitions for kernel and application programs with a wider gap in the memory map. It's the first step and yet a huge hill to be climbed but, indeed they got a solid start here. – Ketan Bhalerao Jan 6 '18 at 16:08
  • 2
    Also interesting is the question if SGX enclaves may be used to conceal this type of attack. It has been shown for rowhammer before by Gruss et al. (arxiv.org/abs/1710.00551), but I guess (AKA hope) meltdown or spectre are even more involved. – Daniel C. Oderbolz Jan 9 '18 at 6:56
  • software.intel.com/en-us/forums/… This is being discussed here. – Roshan Mehta Jan 13 '18 at 13:31
9

Spectre. Intel SGX enclaves are indeed vulnerable to the Spectre attack as recently shown by researchers [1]. Their sample code manages to read a secret from protected SGX memory.

Update Mar 7th, 2018. Meanhwile, another paper on the matter was published: SgxPectre Attacks: Leaking Enclave Secrets via Speculative Execution [2].

[1] https://github.com/lsds/spectre-attack-sgx

[2] https://arxiv.org/abs/1802.09085

protected by Jeff Ferland Jan 9 '18 at 8:28

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.