<?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>i.MX ProcessorsのトピックRe: i.MX6DL - HAB4 doesn't verify signature in 'open' configuration?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-HAB4-doesn-t-verify-signature-in-open-configuration/m-p/710775#M110529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply, Yuri!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Aug 2017 07:57:03 GMT</pubDate>
    <dc:creator>christian_neuwi</dc:creator>
    <dc:date>2017-08-30T07:57:03Z</dc:date>
    <item>
      <title>i.MX6DL - HAB4 doesn't verify signature in 'open' configuration?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-HAB4-doesn-t-verify-signature-in-open-configuration/m-p/710773#M110527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been working for the last couple of weeks to get secure boot in U-Boot operational on our own hardware based on the i.MX6DL. Everything seemed to work fine and according to expectations until I ran some final tests before 'closing' the device, i.e. blowing the fuse SEC_CONFIG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that the HAB4 does determine 'tampering' with a signed image as expected, but it does &lt;STRONG&gt;not determine when an image was signed with a different set of keys&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I created a set of keys using CST 2.3.2 and flashed the fuses in the i.MX6 accordingly.&lt;/LI&gt;&lt;LI&gt;Booting seems to work fine, i.e. 'hab_status' reports no events.&lt;/LI&gt;&lt;LI&gt;I signed an arbitrary image with the keys created in step #1.&lt;/LI&gt;&lt;LI&gt;I downloaded that image to the board and it was authenticated successfully by 'hab_auth_img'.&lt;/LI&gt;&lt;LI&gt;I 'tampered' with the downloaded image and authentication failed, i.e. 'hab_auth_img' and 'hab_status' report HAB events.&lt;/LI&gt;&lt;LI&gt;I created a &lt;STRONG&gt;different set of keys&lt;/STRONG&gt; using CST 2.3.2.&lt;/LI&gt;&lt;LI&gt;I signed the same image that was used in step #3 with the keys created in step #6.&lt;/LI&gt;&lt;LI&gt;I downloaded that image to the board and it was &lt;STRONG&gt;still authenticated successfully&lt;/STRONG&gt; by 'hab_auth_img'.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I patched &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;authenticate_image()&lt;/SPAN&gt; in &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt;U-Boot Root&amp;gt;/arch/arm/imx-common/hab.c&lt;/SPAN&gt; a bit so that an image is authenticated also when the SEC_CONFIG fuse is not blown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm really confused by this behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does 'full'&amp;nbsp;&lt;SPAN&gt;authentication work only when the device is 'closed'?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Or do you have another explanation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regard,&lt;BR /&gt;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 16:52:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-HAB4-doesn-t-verify-signature-in-open-configuration/m-p/710773#M110527</guid>
      <dc:creator>christian_neuwi</dc:creator>
      <dc:date>2017-08-29T16:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6DL - HAB4 doesn't verify signature in 'open' configuration?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-HAB4-doesn-t-verify-signature-in-open-configuration/m-p/710774#M110528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;There is a feature regarding SRK checking, that was described in app note AN4581, Rev. 0, 10/2012.&lt;/P&gt;&lt;P&gt;(The recent app note release does not mention it.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp; "There is a known limitation about the verification of the SRK table in the ROM of i.MX 6 Series devices.&lt;BR /&gt;In these devices, the intent was to only verify the SRK table hash, when the SRK fuse field was non-zero&lt;BR /&gt;for Open configuration. However, for i.MX 6 Series in Open configuration, the HAB always skips the&lt;BR /&gt;verification of the SRK table, regardless of whether the SRK fuse field has been provisioned or not.&lt;BR /&gt;This means that it is necessary to ensure that the SRK field is correctly programmed, prior to moving the&lt;BR /&gt;i.MX 6 Series security configuration to Closed."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This feature can produce the issue, You described, since SRK is not really verified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 03:43:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-HAB4-doesn-t-verify-signature-in-open-configuration/m-p/710774#M110528</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2017-08-30T03:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6DL - HAB4 doesn't verify signature in 'open' configuration?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-HAB4-doesn-t-verify-signature-in-open-configuration/m-p/710775#M110529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply, Yuri!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 07:57:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6DL-HAB4-doesn-t-verify-signature-in-open-configuration/m-p/710775#M110529</guid>
      <dc:creator>christian_neuwi</dc:creator>
      <dc:date>2017-08-30T07:57:03Z</dc:date>
    </item>
  </channel>
</rss>

