Re:ECCploit is the first Rowhammer attack to defeat error-co...
by anonymousDan on Thursday November 22, 2018 @05:25AM
(#18509134)
Enclaves do have integrity protection (at least SGX does).
[ Parent
| on HN ]
Re:ECCploit is the first Rowhammer attack to defeat error-co...
by atq2119 on Thursday November 22, 2018 @05:53AM
(#18509214)
Do you have details on that? The only references I see to integrity on Intel's own overview site are for data at rest (i.e. stored on disk or in network transit etc.). This is easy to achieve and plausible with cryptographic signatures, and both AMD and Intel have some form of this.
The reason I'm doubting that there's integrity protection for data while in RAM is that it's information-theoretically impossible to do that without memory overhead.
This doubt seems to be confirmed by the descriptions of the ELDB/ELDU/EWB instructions: they perform cryptographic authentication while copying pages to and from the enclave. There don't seem to be any integrity checks while data is live in the enclave -- and that's what matters for Rowhammer protection.
Re:ECCploit is the first Rowhammer attack to defeat error-co...
by anonymousDan on Friday November 23, 2018 @04:09AM
(#18515297)
There is a memory encryption engine on each CPU that transparently encrypts and integrity protects each cache line as it flows to and from main memory. The integrity protection info is stored in a tree -like structure in part of one of the on CPU caches. The storage overhead for this data structure is one of the reasons the maximum enclave size is currently limited to about 100MB, although rumour has it that limitation will be removed in future generations. In saying all that, I would be very interested to hear ideas you might have on how Rowhammer could bypass SGX :)
Re:ECCploit is the first Rowhammer attack to defeat error-co...
by ctz on Thursday November 22, 2018 @08:30AM
(#18509868)
https://eprint.iacr.org/2016/204.pdf (paper) https://rwc.iacr.org/2016/Slides/RWC_2016_Gueron_2016_01_08.... (talk slides from RWC 2016)