<?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 system(&amp;quot;Command&amp;quot;) inside the enclave in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/system-quot-Command-quot-inside-the-enclave/m-p/1068925#M249</link>
    <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Hi,&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;We should not use system("Command") inside the enclave.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Can we use wget,CuraEngine or "&amp;nbsp;powershell -command "&amp;amp; { (New-Object Net.WebClient).DownloadFile('&lt;A href="http://myurl/" style="cursor: pointer;"&gt;http://myUrl&lt;/A&gt;', 'C:\path\to\test.json')}" " like commands directly inside the enclave.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Usually we keep eclaveWrapper&amp;nbsp;&amp;nbsp;files in enclave_definition folder.&amp;nbsp;Can we run the above commands in eclaveWrapper files which is different than the enclave_application folder. if we follow this process can we make sure about the safety of the files.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2016 06:21:19 GMT</pubDate>
    <dc:creator>SAM_R_2</dc:creator>
    <dc:date>2016-09-08T06:21:19Z</dc:date>
    <item>
      <title>system("Command") inside the enclave</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/system-quot-Command-quot-inside-the-enclave/m-p/1068925#M249</link>
      <description>&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Hi,&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;We should not use system("Command") inside the enclave.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Can we use wget,CuraEngine or "&amp;nbsp;powershell -command "&amp;amp; { (New-Object Net.WebClient).DownloadFile('&lt;A href="http://myurl/" style="cursor: pointer;"&gt;http://myUrl&lt;/A&gt;', 'C:\path\to\test.json')}" " like commands directly inside the enclave.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Usually we keep eclaveWrapper&amp;nbsp;&amp;nbsp;files in enclave_definition folder.&amp;nbsp;Can we run the above commands in eclaveWrapper files which is different than the enclave_application folder. if we follow this process can we make sure about the safety of the files.&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 06:21:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/system-quot-Command-quot-inside-the-enclave/m-p/1068925#M249</guid>
      <dc:creator>SAM_R_2</dc:creator>
      <dc:date>2016-09-08T06:21:19Z</dc:date>
    </item>
    <item>
      <title>As a general statement, IO is</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/system-quot-Command-quot-inside-the-enclave/m-p/1068926#M250</link>
      <description>&lt;P&gt;As a general statement, IO is not supported inside an enclave - you have to make OCALLs.&lt;/P&gt;

&lt;P&gt;If your enclave makes an OCALL to the untrusted part of your application, and in the untrusted part of your application you decide to make any of the IO calls you mentioned, then this "will work" from a "is this possible" perspective.&lt;/P&gt;

&lt;P&gt;As you mentioned, it would be up to you to verify that whatever data you obtained (via wget, powershell, etc) is data that you trust and want to pass back to the enclave. Furthermore, an attacker may view or modify the data sometime between the time you received it and the time you sent it to the enclave. You would have to protect against that as well.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 16:38:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/system-quot-Command-quot-inside-the-enclave/m-p/1068926#M250</guid>
      <dc:creator>Francisco_C_Intel</dc:creator>
      <dc:date>2016-09-08T16:38:58Z</dc:date>
    </item>
  </channel>
</rss>

