<?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 Re:TCB_OUT_OF_DATE despite TCB recovery in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/TCB-OUT-OF-DATE-despite-TCB-recovery/m-p/1446973#M5637</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your interest in Intel® SGX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently there is another posting asked a similar issue regards to TCB OutOfDate. Do you see any errors that can share to us?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the last similar issue, we suggested to check the version of the uCode loaded by the BIOS, which can be found in the BIOS setup menu. The latest cpu_svn[0] is 0x7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime, we are investigating this issue with the development teams regards to the TCB Recovery mentioned, especially for Intel® Xeon® Gold 6334 Processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please allow some time for us to investigate, thank you for your patience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 16 Jan 2023 05:02:31 GMT</pubDate>
    <dc:creator>KFPW_Intel</dc:creator>
    <dc:date>2023-01-16T05:02:31Z</dc:date>
    <item>
      <title>TCB_OUT_OF_DATE despite TCB recovery</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/TCB-OUT-OF-DATE-despite-TCB-recovery/m-p/1446464#M5635</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;We are experiencing problems with the attestation failing because of a TCB_OUT_OF_DATE. We are aware that Intel has updated the TCB due to the discovery of vulnerabilities that require MCU patch (INTEL-SA-00615, INTEL-SA-00657). And we have applied the TCB Recovery procedure, but despite that the attestation still fails due to a TCB_OUT_OF_DATE&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Machine description: &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;OS : Ubuntu 20.04 LTS&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Model : DELL PowerEdge-R750xs&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;CPU : Intel(R) Xeon(R) Gold 6334 CPU @ 3.60GHz&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;We are using intel-microcode Ubuntu package to apply microcode updates.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Here is the procedure we followed:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Upgrade Intel SGX PSW to version 2.18.101.1 &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Upgrade Intel SGX DCAP to version 1.15.100.3&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Upgrade BIOS to the latest version provided by DELL : &lt;A href="https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=g7k8g&amp;amp;oscode=ubt20&amp;amp;productcode=poweredge-r750xs&amp;amp;lwp=rt" target="_blank"&gt;https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=g7k8g&amp;amp;oscode=ubt20&amp;amp;productcode=poweredge-r750xs&amp;amp;lwp=rt&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Upgrade intel-microcode package to 3.20220809.0ubuntu0.20.04.1&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;We used PCKIDRetrievalTool to retrieve the Provisioning Certification Key (PCK) Certificates to attest to a new TCB. For that we followed I&lt;/SPAN&gt;&lt;SPAN&gt;ntel® Software Guard Extensions Data Center Attestation Primitives (Intel® SGX DCAP): A Quick Install Guide available at &lt;A href="https://www.intel.com/content/www/us/en/developer/articles/guide/intel-software-guard-extensions-data-center-attestation-primitives-quick-install-guide.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/guide/intel-software-guard-extensions-data-center-attestation-primitives-quick-install-guide.html&lt;/A&gt; &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV&gt;&lt;SPAN&gt;Here are the SGX PSW + DCAP software versions after upgrade : (output from apt list --installed)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="none"&gt;libsgx-ae-epid/unknown,now 2.18.101.1-focal1 amd64 [installed,automatic]
libsgx-ae-id-enclave/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-ae-le/unknown,now 2.18.101.1-focal1 amd64 [installed,automatic]
libsgx-ae-pce/unknown,now 2.18.101.1-focal1 amd64 [installed,automatic]
libsgx-ae-qe3/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-ae-qve/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-ae-tdqe/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-aesm-ecdsa-plugin/unknown,now 2.18.101.1-focal1 amd64 [installed,automatic]
libsgx-aesm-epid-plugin/unknown,now 2.18.101.1-focal1 amd64 [installed,automatic]
libsgx-aesm-launch-plugin/unknown,now 2.18.101.1-focal1 amd64 [installed,automatic]
libsgx-aesm-pce-plugin/unknown,now 2.18.101.1-focal1 amd64 [installed,automatic]
libsgx-aesm-quote-ex-plugin/unknown,now 2.18.101.1-focal1 amd64 [installed,automatic]
libsgx-dcap-default-qpl/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-dcap-ql/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-dcap-quote-verify/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-enclave-common-dev/unknown,now 2.18.101.1-focal1 amd64 [installed]
libsgx-enclave-common/unknown,now 2.18.101.1-focal1 amd64 [installed]
libsgx-epid/unknown,now 2.18.101.1-focal1 amd64 [installed]
libsgx-headers/unknown,now 2.18.101.1-focal1 amd64 [installed,automatic]
libsgx-launch/unknown,now 2.18.101.1-focal1 amd64 [installed]
libsgx-pce-logic/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-qe3-logic/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-quote-ex/unknown,now 2.18.101.1-focal1 amd64 [installed]
libsgx-ra-network/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-ra-uefi/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-tdx-logic/unknown,now 1.15.100.3-focal1 amd64 [installed]
libsgx-uae-service/unknown,now 2.18.101.1-focal1 amd64 [installed]
libsgx-urts/unknown,now 2.18.101.1-focal1 amd64 [installed]
sgx-aesm-service/unknown,now 2.18.101.1-focal1 amd64 [installed,automatic]
sgx-dcap-pccs/unknown,now 1.15.100.3-focal1 amd64 [installed]
sgx-pck-id-retrieval-tool/unknown,now 1.15.100.3-focal1 amd64 [installed]&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Concerning the microcode here is the tool version : &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;intel-microcode/focal-updates,focal-security,now 3.20220809.0ubuntu0.20.04.1 amd64 [installed]&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;It looks like the right microcode update is applied see dmesg output below : &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="bash"&gt;dmesg | grep "microcode"
[ 1.610253] microcode: sig=0x606a6, pf=0x1, revision=0xd00037b
[ 1.610401] microcode: Microcode Update Driver: v2.2.&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;The microcode version indicated is 0x37b &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;and according to your documentation &lt;A href="https://www.intel.com/content/www/us/en/developer/topic-technology/software-security-guidance/processors-affected-consolidated-product-cpu-model.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/topic-technology/software-security-guidance/processors-affected-consolidated-product-cpu-model.html&lt;/A&gt; for our processor we need (at least) 2022.2: 0x375. So it should be ok, right ?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;But despite the procedure we still encounter the TCB_OUT_OF_DATE error.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;At this point we were a bit lost, so we modified the QVL to extract the TCB values from the PCK certificate to get a better picture of the TCB, and we got :&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="python"&gt;certPceSvn = 11
# Tcb[i] indicates the SVN for each level of the TCB
Tcb[0] = 4
Tcb[1] = 4
Tcb[2] = 3
Tcb[3] = 3
Tcb[4] = 255
Tcb[5] = 255
Tcb[6] = 0
Tcb[7] = 0
Tcb[8] = 0
Tcb[9] = 0
Tcb[10] = 0
Tcb[11] = 0
Tcb[12] = 0
Tcb[13] = 0
Tcb[14] = 0
Tcb[15] = 0&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;By comparing that to the TCBInfo.json we can see that up-to-date TCB should have a PCESVN of 13 but we only have a PCESVN of 11.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Is there something we overlooked ? How can we resolve this TCB issue ?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:29:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/TCB-OUT-OF-DATE-despite-TCB-recovery/m-p/1446464#M5635</guid>
      <dc:creator>CLauverjat</dc:creator>
      <dc:date>2023-01-13T15:29:55Z</dc:date>
    </item>
    <item>
      <title>Re:TCB_OUT_OF_DATE despite TCB recovery</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/TCB-OUT-OF-DATE-despite-TCB-recovery/m-p/1446973#M5637</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your interest in Intel® SGX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently there is another posting asked a similar issue regards to TCB OutOfDate. Do you see any errors that can share to us?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the last similar issue, we suggested to check the version of the uCode loaded by the BIOS, which can be found in the BIOS setup menu. The latest cpu_svn[0] is 0x7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime, we are investigating this issue with the development teams regards to the TCB Recovery mentioned, especially for Intel® Xeon® Gold 6334 Processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please allow some time for us to investigate, thank you for your patience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jan 2023 05:02:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/TCB-OUT-OF-DATE-despite-TCB-recovery/m-p/1446973#M5637</guid>
      <dc:creator>KFPW_Intel</dc:creator>
      <dc:date>2023-01-16T05:02:31Z</dc:date>
    </item>
    <item>
      <title>Re:TCB_OUT_OF_DATE despite TCB recovery</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/TCB-OUT-OF-DATE-despite-TCB-recovery/m-p/1447682#M5639</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the suggested method to check the uCode loaded by the BIOS works for you? Hope that it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore you can get the SGX TCB Info via curl -v -X GET "&lt;A href="https://api.trustedservices.intel.com/sgx/certification/v4/tcb?fmspc=%7b%7d" rel="noopener noreferrer" target="_blank"&gt;https://api.trustedservices.intel.com/sgx/certification/v4/tcb?fmspc={}&lt;/A&gt;" based on the &lt;A href="https://api.portal.trustedservices.intel.com/documentation" rel="noopener noreferrer" target="_blank"&gt;documentation&lt;/A&gt; that may assist you for your use cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please inform us if you have any questions regards to this issue. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jan 2023 02:00:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/TCB-OUT-OF-DATE-despite-TCB-recovery/m-p/1447682#M5639</guid>
      <dc:creator>KFPW_Intel</dc:creator>
      <dc:date>2023-01-18T02:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: TCB_OUT_OF_DATE despite TCB recovery</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/TCB-OUT-OF-DATE-despite-TCB-recovery/m-p/1447825#M5640</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After further investigation, we were able to solve the issue. I only had remote access to the server, so I was only able to access the BIOS via the racadm tool that allow remote control to the DELL server. Because of that I could not find the CPU revision, but&amp;nbsp;I expect the revision to be the last one since we have done all relevant BIOS updates.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By I'll cut to the chase, when I was in the (remote) BIOS settings I still found a&amp;nbsp;&lt;SPAN&gt;SysSecurity.SgxFactoryReset setting that could be turned on. I did that (which resetted SGX keys), and after a restart it finally worked, the TCB_OUT_OF_DATE went away, and we know have a STATUS_TCB_SW_HARDENING_NEEDED which is to be expected !&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was somewhat surprised this worked, so I did some digging and I found this document&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/resources/intel-sgx-software-and-tcb-recovery-guidance.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/resources/intel-sgx-software-and-tcb-recovery-guidance.html&lt;/A&gt;&amp;nbsp;which states :&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;If the 3rd Generation Intel® Xeon® Scalable Processors, code name Icelake-SP Post Launch Release 3 (PLR3) microcode update (MCU) is loaded at reset (otherwise known as FIT-loaded&lt;/SPAN&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/resources/intel-sgx-software-and-tcb-recovery-guidance.html#footnotes" target="_blank" rel="noopener"&gt;&lt;SUP&gt;1&lt;/SUP&gt;&lt;/A&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;and&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;the platform then executes the&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;TCB Recovery Boot Flow&lt;/EM&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/resources/intel-sgx-software-and-tcb-recovery-guidance.html#footnotes" target="_blank" rel="noopener"&gt;&lt;SUP&gt;2&lt;/SUP&gt;&lt;/A&gt;&lt;SPAN&gt;, a microcode (MCheck) error occurs that causes Intel® Software Guard Extensions (Intel® SGX) to be disabled.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't now for sure if the problem I encountered was related to the issue described in the document because in our case the Intel SGX was never disabled... but I expect a&amp;nbsp;&lt;SPAN&gt;SgxFactoryReset to inititate a&amp;nbsp;Initial Platform Establishment (IPE) flow, which the document says work fine contrary to the&amp;nbsp;TCB Recovery Boot Flow (which was&amp;nbsp;what we were doing before).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Anyway with the caveat that we lost the sealing keys during the reset (fortunately we could do that because we did not have any important data sealed on the server), it solves the issue for us.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 10:53:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/TCB-OUT-OF-DATE-despite-TCB-recovery/m-p/1447825#M5640</guid>
      <dc:creator>CLauverjat</dc:creator>
      <dc:date>2023-01-18T10:53:36Z</dc:date>
    </item>
    <item>
      <title>Re:TCB_OUT_OF_DATE despite TCB recovery</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/TCB-OUT-OF-DATE-despite-TCB-recovery/m-p/1448111#M5641</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is amazing! It is good to know that issue can be solved.&lt;/P&gt;&lt;P&gt;Thank you for sharing the solutions to us.&lt;/P&gt;&lt;P&gt;This thread will be marked as answered and Intel will no longer monitor this thread. &lt;/P&gt;&lt;P&gt;Please start a new thread if you need further help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Jan 2023 00:01:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/TCB-OUT-OF-DATE-despite-TCB-recovery/m-p/1448111#M5641</guid>
      <dc:creator>KFPW_Intel</dc:creator>
      <dc:date>2023-01-19T00:01:05Z</dc:date>
    </item>
  </channel>
</rss>

