<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Letting the untrusted code in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-to-Thread-Context/m-p/1098105#M1033</link>
    <description>&lt;P&gt;Letting the untrusted code select the Thread Context is not a security risk, because:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;All thread contexts are equivalent, i.e. it doesn't matter which one the untrusted code chooses.&lt;/LI&gt;
	&lt;LI&gt;The untrusted code cannot modify any area of a thread context.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The enclave controls what happens inside the enclave but it cannot control what happens outside, i.e. how enclave calls are made (what thread context, when, in what order, etc.).&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2017 19:12:47 GMT</pubDate>
    <dc:creator>Juan_d_Intel</dc:creator>
    <dc:date>2017-02-27T19:12:47Z</dc:date>
    <item>
      <title>Question to Thread Context</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-to-Thread-Context/m-p/1098103#M1031</link>
      <description>&lt;P&gt;In the developer Guide (chapter Programming Model) is stated that the untrusted code selects the thread context to be used within the enclave.&lt;/P&gt;

&lt;P&gt;1. Can someone explain me explain me how i can select that Thread context for enclaves? &amp;nbsp;&lt;/P&gt;

&lt;P&gt;2. Also is this a security problem? The other lists in Programming Models are naming some security related facts like: "A bug in the TCB can&amp;nbsp;compromise the hole enclave, so keep it small". Is there also a security problem because the untrusted code seelcts the thread context?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Here is the definition of a Thread Context:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;Thread Control Structure (TCS)&lt;/LI&gt;
	&lt;LI&gt;Thread Data/Thread Local Storage – data within the enclave and specific to the thread&lt;/LI&gt;
	&lt;LI&gt;State Save Area (SSA) – a data buffer which holds register state when - 4 - an enclave must exit due to an interrupt or exception&lt;/LI&gt;
	&lt;LI&gt;Stack – a stack located within the enclave&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sun, 19 Feb 2017 11:10:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-to-Thread-Context/m-p/1098103#M1031</guid>
      <dc:creator>Joe63</dc:creator>
      <dc:date>2017-02-19T11:10:08Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-to-Thread-Context/m-p/1098104#M1032</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please refer the Intel SGX Developer Reference guide (&lt;A href="https://software.intel.com/en-us/documentation/sgx-sdk-developer-reference"&gt;https://software.intel.com/en-us/documentation/sgx-sdk-developer-reference&lt;/A&gt;) "Enclave Settings" and "Enclave Configuration File" Topic for your reference.&lt;/P&gt;

&lt;P&gt;-Surenthar&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 05:34:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-to-Thread-Context/m-p/1098104#M1032</guid>
      <dc:creator>Surenthar_S_Intel</dc:creator>
      <dc:date>2017-02-20T05:34:59Z</dc:date>
    </item>
    <item>
      <title>Letting the untrusted code</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-to-Thread-Context/m-p/1098105#M1033</link>
      <description>&lt;P&gt;Letting the untrusted code select the Thread Context is not a security risk, because:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;All thread contexts are equivalent, i.e. it doesn't matter which one the untrusted code chooses.&lt;/LI&gt;
	&lt;LI&gt;The untrusted code cannot modify any area of a thread context.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The enclave controls what happens inside the enclave but it cannot control what happens outside, i.e. how enclave calls are made (what thread context, when, in what order, etc.).&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 19:12:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Question-to-Thread-Context/m-p/1098105#M1033</guid>
      <dc:creator>Juan_d_Intel</dc:creator>
      <dc:date>2017-02-27T19:12:47Z</dc:date>
    </item>
  </channel>
</rss>

