Secure boot process for an FPGA, and printed circuit board including an FPGA configured to perform the secure boot process

The secure boot method for FPGAs addresses vulnerabilities in BBRAM key storage by using a PUF key to decrypt and temporarily store the key in BBRAM, enhancing security and reducing physical attack risks without a backup battery.

FR3146744A1Active Publication Date: 2024-09-20HENSOLDT FRANCE SAS
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
FR2023002379
Authority / Receiving Office
FR · FR
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2024-09-20
Estimated Expiration
2043-03-17

AI Technical Summary

Technical Problem

Existing secure boot mechanisms for FPGAs using BBRAM keys are vulnerable to physical attacks due to the need for a backup battery to maintain the sensitive key in clear text, which can be easily recovered by attackers during low power modes, and lack of security when the JTAG interface is disabled.

Method used

A secure boot method for FPGAs that involves decrypting an encrypted key stored in non-volatile memory using a PUF key, temporarily copying it to BBRAM for decryption, and immediately erasing it after use, eliminating the need for a backup battery and reducing exposure time.

Benefits of technology

This method enhances security by preventing vulnerable plaintext keys from being stored in BBRAM during power off, reducing physical attack risks and eliminating the need for a backup battery, while maintaining secure boot functionality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

Secure booting method for an FPGA, and printed circuit board comprising an FPGA configured to perform the secure booting method. The invention relates to a secure booting method for an FPGA (2) connected to a boot memory (3) in which a first encrypted key (6) is stored and to a nominal boot memory (4) in which an image of FPGA (7) is stored, the method comprising: a boot step in which the FPGA (2) is configured to retrieve (S1) the first encrypted key (6) and decrypt it (S2) using a PUF key (8), and copy (S3) the first decrypted key (11) into a BBRAM (10); then a nominal boot step (S4) in which the FPGA (2) is configured to decrypt the encrypted image of FPGA (7) using the first decrypted key (11) stored in BBRAM (10), and then erase the first decrypted key (11). Figure to be published with the abbreviation: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

Description Title of the invention: Secure boot method for an FPGA, and printed circuit board comprising an FPGA configured for carrying out the secure boot method

[0001] — The present invention relates to the field of cryptography, and in particular relates on a secure boot process for an FPGA and on a circuit board printed matter comprising an FPGA configured to perform said boot process secure.

[0002] — During their priming process, certain types of pre-broadcast networks pro- user-grammable (or FPGA, corresponding to the Anglo-Saxon expression "Field Programmable Gate Array") uses a sensitive cleartext key stored in a battery-backed volatile memory (or BBRAM, corresponding to the Anglo-Saxon expression "Battery Backed Random Access Memory"). This key sensitive cleartext is involved at the very beginning of a hardware root of trust (corresponding to the Anglo-Saxon expression “hardware root of trust”) of the FPGA and provides the first step in decrypting the FPGA image privacy encrypted which is stored in non-volatile memory outside the FPGA and includes software or programmable logic bitstreams.

[0003] If the value of this sensitive cleartext key is known to an attacker, the bitstreams bits of the FPGA image can then be easily deciphered for retro- engineering.

[0004] — This sensitive clear text key is kept by a backup battery of BBRAM, so that it is not lost when the FPGA is powered off. This sensitive key in clear text is thus vulnerable to attackers, in particular when only the emergency power supply is active.

[0005] — Some Xilinx® brand FPGAs can also use, when they are bootstrap process, either a cleartext key stored in BBRAM or a unclonable physical function key (or PUF, corresponding to the English expression Saxon "Physical Unclonable Function"). Secure root booting FPGA hardware trust then begins with decrypting the image of FPGA (stored encrypted in non-volatile memory external to the FPGA) using an initial internal key of the FPGA designated Key_0, this Key_0 can be either a PUF key or a BBRAM key, only one of these two keys being used during of the boot stage. The main function of Key_0 is to decrypt the first encrypted key, designated Key_1, of the encrypted FPGA image. The decrypted Key_1 allows then decrypt the first encrypted partition, designated partition_1, of the image of encrypted FPGA and also allows to decrypt the second encrypted key, designated Key_2, of the encrypted FPGA image. The decrypted Key_2 subsequently allows to decrypt the second encrypted partition, designated partition_2, of the encrypted FPGA image and also allows to decrypt the third encrypted key, designated Key_3, of the encrypted FPGA image, and so on until the last encrypted partition, designated partition_N, of the encrypted FPGA image, such that at the end of the boot process, the decryption algorithm (for example, according to the Advanced Encryption Standard or AFS standard) of the FPGA has fully decrypted the FPGA image. The Table | below describes the advantages and disadvantages for each of the PUF and BBRAM keys. [Tables 1] Key Function | Advantages | Disadvantages |primary PUF Key First key - No external battery is required. - Permanent, the key cannot be erased or updated. | used for booting the de- |- Makes it difficult to spoof the encryption (would require the device image on the board to be replaced). (i.e., the device-level evidence remains. Not readable. - Only a bitstream remains) -> Less secure. | used for BBRAM Key |First key |- Volatile and reproducible. - Requires an external battery.start the de- |- Key Erase - Many vendors of| passive and active battery encryption |battery image (i.e., evidence can be removed) -> long lifetimes (although some vendors are now beginning to offer secure batteries. Zynq7000 FPGAs that help address these issues). - Not readable except for the Xilinx® FPGA. Zynq7000 Xilinx® FPGA. - Some physical attacks are known. Generally, BBRAM key is preferred over PUF key during the boot process, since it is erasable and reprogrammable. The BBRAM key, however, has the disadvantage of having to be kept by a backup power supply (e.g., a backup battery), otherwise it would be lost as soon as the main power supply to the FPGA was cut off and the FPGA would then no longer be able to boot. The BBRAM key is written at the factory to the FPGA's internal BBRAM using a JTAG (Joint Test Action Group) interface. For security reasons, the FPGA's JTAG interface is then disabled at the factory. Therefore, if image decryption uses the BBRAM key, a backup battery must be connected once the JTAG interface is disabled. Thus, the typical use of a BBRAM key in an FPGA is to keep it in memory using a backup battery even when the main power supply is off, with the power consumption then being a few micro amps (only a very small logic area being powered). An attacker can thus easily recover the BBRAM key in this very low power mode (no noise being present on the BBRAM power supply), given that there is no active software or active programmable logic running on the FPGA. The present invention aims to solve the drawbacks of the prior art, by proposing a secure booting method for an FPGA, comprising a boot boot step in which an encrypted key stored in an external non-volatile memory is decrypted using a PUF key and then copied into the BBRAM of the FPGA, then a nominal boot step in which the decrypted key temporarily stored in the BBRAM is used to decrypt the FPGA image and then erased immediately after. The method according to the present invention thus makes it possible to improve the secure boot mechanisms of FPGAs by reducing the drawbacks linked to the use of a BBRAM key, given that the storage of the key in clear text in BBRAM is not permanent but temporary. The present invention therefore relates to a secure boot method for a field programmable gate array (FPGA) connected to a non-volatile boot boot memory in which a first encrypted key is stored and to a non-volatile nominal boot memory in which an encrypted FPGA image is stored, characterized in that it comprises: - a boot boot step in which the FPGA is configured to: * retrieve the first encrypted key stored in the non-volatile boot memory; “decrypting the first encrypted key using a second Physically Unclonable Function (PUF) key stored in the FPGA; and “copy the first decrypted key into an internal battery-backed random access memory (BBRAM) of the FPGA; then - a nominal boot stage in which the FPGA is configured to: decrypting the encrypted FPGA image stored in the nominal boot non-volatile memory using the first decrypted key stored in the BBRAM; and "As soon as the first decrypted key has been used for decryption of the encrypted FPGA image, erase the first decrypted key from BBRAM. Thus, no vulnerable plaintext keys are stored in the FPGA's BBRAM when the FPGA's main power supply is turned off. The present invention thus enables an improvement in the secure boot process of the FPGA, by storing the sensitive key in an encrypted format (i.e., the first encrypted key) in the non-volatile boot boot memory, and decrypting it, during the first boot boot stage, using a PUF key and then temporarily storing it in the BBRAM of the FPGA and using it for a very short time during the second nominal boot stage before erasing it. Temporary storage of the sensitive BBRÂM key in cleartext (e.g., for only a few hundred milliseconds) instead of always keeping it present in the FPGA's BBRAM thus reduces the exposure time to physical attacks. The present invention thus eliminates the need for the backup battery to retain the sensitive key in clear text, and further allows the key to be easily recharged even when the JT AG interface is permanently disabled at the factory for security applications by reloading the encrypted version of the key onto the non-volatile boot memory. The method according to the invention is, for example, applicable to Xilinx® FPGA families such as Zynq-7000 SoC, Zynq Ultrascale+ MPSoC, and Zynq Ultrascale+ RFSoC, and by extension to any Xilinx® FPGA family using the same security mechanisms. The method according to the present invention is based on the use of two consecutive boot steps, in which the FPGA is forced to start booting by a boot boot step and then, at the end of the boot boot step, the FPGA is forced to boot in a nominal boot step. The boot boot image (containing the first encrypted key) is encrypted and stored in the dedicated boot boot non-volatile memory. The boot boot uses a PUF key as Key_O for decrypting the boot boot image. The main role of the boot boot is thus to decrypt the first encrypted key using a PUF key. This PUF key can be the FPGA's PUF key or, preferably, a dedicated PUF block in the FPGA. At the end of the boot boot, the first decrypted key is copied into BBRAM and the FPGA is then forced to boot into the nominal boot stage using the cleartext key temporarily stored in BBRAM, with the cleartext key being erased (active erase) from BBRAM at a very early stage of the nominal boot (i.e., just after the decryption of the first encrypted key (Key_1) of the FPGA image stored in the nominal boot non-volatile memory). It can also be provided that the cleartext key is erased after a certain period of time, regardless of the outcome of the boot. Table 2 below shows the improvements in using the BBRAM key of the present invention over Table 1 associated with the prior art. [Tables 2] Key Function [Advantages [Disadvantages of Main Boot Key BBRAM First key |- Volatile and repro- - Readable for FPGA used for |programmable. Xilinx® Zynq7000. This disadvantage is reduced because the key is present for a few hundred milliseconds. | few hundred milliseconds. | nominal encryption of [device during the image - Key erasure - Some physical attacks are known. (i.e., the evidence can be removed) -> for a few hundred | Property more ap- milliseconds suitable for sensitive applications / |presence of power supply only and during its sensitive applications / |presence of power supply only. electrical is noisy in - Not readable except for |due to activity of the Xilinx® FPGA software running on the Zynq7000. FPGA.- Additional components and boot time (a few seconds added due to boot boot). According to a particular characteristic of the invention, once the first decrypted key is copied into the BBRAM, the FPGA is configured to erase the first decrypted key from the BBRAM after a period of between 100 and 1500 milliseconds. According to a particular characteristic of the invention, the non-volatile boot boot memory comprises a first non-removable non-volatile memory and a second removable external non-volatile memory, the first encrypted key comprising a first encrypted key portion stored in the first non-removable non-volatile memory and a second encrypted key portion stored in the second removable external non-volatile memory. So the first sensitive encrypted key is stored in a split and encrypted format, such that the first key can only be decrypted if the second removable external non-volatile memory is connected to the FPGA. According to a particular characteristic of the invention, in the boot boot step, the FPGA is configured to: - Check whether the second removable external non-volatile memory is connected to the FPGA or not; - when the second removable external non-volatile memory is connected to the FPGA, recovering the first encrypted key portion stored in the first removable non-volatile memory, and recovering the second encrypted key portion stored in the second removable external non-volatile memory; - combining the first encrypted key portion and the second encrypted key portion to form an encrypted BBRAM key; and - decrypt the encrypted BBRAM key using the second PUF key stored in the FPGA, and copy the decrypted BBRAM key into the FPGA's BBRAM. Thus, during the boot boot step, if the second encrypted key portion is present (i.e., if the second removable external non-volatile memory containing the second encrypted key portion is connected to the FPGA), the boot boot step decrypts the combination of the first and second encrypted key portions to create the decrypted BBRAM key used for nominal boot. The combination of the first encrypted key portion and the second encrypted key portion to form an encrypted BBRAM key may, for example, be a simple concatenation. Any other type of standard or proprietary combining algorithm could also be considered, without departing from the scope of the present invention, provided that the combining algorithm is reversible (i.e., the combining function must have a reciprocal "decombining" function). In the present invention, the removal of the second removable external non-volatile memory containing the second encrypted key portion thus makes it possible to make the product incorporating the controlled cryptographic article (CCI) of the FPGA declassified for cryptographic applications. Indeed, when the second external non-volatile memory is removed, the FPGA can no longer boot in the nominal mode. In this case, attacks are not possible. In addition, physical attacks related to power analysis are also not possible. According to a particular characteristic of the invention, the second encrypted key part comprises at least one validity factor, and in which the step of combining the first encrypted key part and the second encrypted key part is carried out only in the case where the FGPA has previously authenticated the at least one validity factor of the second encrypted key part. Thus, during the boot-up stage, decryption of the encrypted BBRAM key takes place only if the second encrypted key part is valid (i.e., authenticated by the FPGA using the at least one validity factor). It is noted that the first encrypted key portion could also include one or more validity factors allowing the FPGA to authenticate the first encrypted key portion, without departing from the scope of the present invention. The key authentication mechanisms used can be, for example: cyclic and header redundancy check, validity date check, number of bits, etc. The present invention also relates to a printed circuit board comprising an FPGA in which a second PUF key is stored, a non-volatile boot boot memory in which a first encrypted key is stored, and a non-volatile nominal boot memory in which an encrypted FPGA image is stored, the FPGA being configured to carry out the secure boot method as described above. According to a particular characteristic of the invention, the non-volatile boot boot memory comprises a first non-removable non-volatile memory integrated into the printed circuit board and a second removable non-volatile memory external to the printed circuit board, the first encrypted key comprising a first encrypted key portion stored in the first non-removable non-volatile memory and a second encrypted key portion stored in the second external removable non-volatile memory. To better illustrate the object of the present invention, preferred embodiments will be described below, by way of illustration and not limitation, with reference to the appended drawings. On these drawings: [Fig.1] is a block diagram of a printed circuit board according to a first embodiment of the present invention; and [Fig.2] is a block diagram of a printed circuit board according to a second embodiment of the present invention. If we refer to [Fig.1], we can see that a circuit board is represented there printed | according to a first embodiment of the present invention. The printed circuit board | includes a field-programmable gate array (FPGA) 2, a boot-up non-volatile memory 3 and a nominal boot-up non-volatile memory 4. The printed circuit board | further includes a main power supply 5 configured to supply power to the FPGA 2, the boot boot non-volatile memory 3 and the nominal boot non-volatile memory 4. A first encrypted key 6 is stored in the non-volatile boot memory 3. An encrypted image of FPGA 7 is stored in the nominal boot non-volatile memory 4. The FPGA 2 is configured to perform a secure boot process comprising the following steps: - a boot boot step in which the FPGA 2 is configured to: “retrieve S1 the first encrypted key 6 stored in the non-volatile boot memory 3; * decrypt S2, using a decryption algorithm module 9 (e.g., AES standard) of the FPGA 2, the first encrypted key 6 using a second physical unclonable function (PUF) key 8 stored in memory in the FPGA 2; and * copy S3 the first decrypted key 11 into an internal battery-backed RAM (BBRAM) 10 of the FPGA 2; then - a nominal boot step S4 in which the FPGA 2 is configured to: decrypting, using the decryption algorithm module 9 of the FPGA 2, the encrypted FPGA image 7 stored in the nominal boot non-volatile memory 4 using the first decrypted key 11 stored in the BBRAM 10; and as soon as the first decrypted key 11 has been used for decryption of the encrypted image of FPGA 7, erase the first decrypted key 11 from the BBRAM 10. The second PUF key 8 can be the PUF key of FPGA 2 or, preferably, a dedicated PUF block in FPGA 2. No vulnerable plaintext keys are thus stored in BBRAM 10 of FPGA 2 when the main power supply S is switched off, so that physical attacks related to power analysis are not possible. Once the first decrypted key 11 is copied into BBRAM 10, the FPGA 2 can erase the first decrypted key 11 from BBRAM 10 after a period of time between 100 and 1500 milliseconds, thereby reducing the exposure time to physical attacks. The secure boot process described above is, for example, applicable to Xilinx® FPGA families such as Zynq-7000 SoC, Zynq Ultrascale+ MPSoC, and Zynq Ultrascale+ RFSoC, and by extension to any Xilinx® FPGA family using the same security mechanisms. Similarly, the invention is not limited to Xilinx® FPGAs and may be applied to any existing or future FPGA family using a bootstrap as described in the present application. Referring to [Fig. 2], it can be seen that there is shown a printed circuit board 12 according to a second embodiment of the present invention. The elements common to the first embodiment of the invention in [Fig. 1] and this second embodiment of the invention bear the same reference number, and will not be described in more detail here when they are of identical structures. The printed circuit board 12 according to the second embodiment is identical to the printed circuit board 1 according to the first embodiment, except that the printed circuit board 12 comprises, instead of the non-volatile memory 3 of [Fig. 1], a first non-removable non-volatile memory 3a which is integrated into the printed circuit board 12 and in which a first encrypted key part 6a is stored. Further, a second removable non-volatile memory 3b is external to the printed circuit board 12 and stores a second encrypted key portion 6b. Advantageously, the second external memory 3b is a small serial memory connected to a connector. The detection of its physical connection is done by a discrete signal when the second external memory 3b is physically connected. Authentication can be done by several possible methods: for example, a unique identifier (ID) stored in the second external non-volatile memory 3b and in the first non-removable non-volatile memory 3a, this ID would be unique per pair external memory 3b, non-removable memory 3a; a list of authorized IDs and or other identification fields stored both in the external memory 3b and in the non-removable memory 3a could also be envisaged. Furthermore, the decryption algorithm can also be of the type with authentication such as AES-GCM. In this second embodiment, at the boot boot step of the secure boot method described above, the FPGA 2 is configured to: - Check whether the second removable external non-volatile memory 3b is or is not connected to the FPGA 2 of the printed circuit board 12; - when the second removable external non-volatile memory 3b is well connected to the FPGA 2, recover Sla the first part of encrypted key 6a stored in the first non-removable non-volatile memory 3a, and recover S1b the second part of encrypted key 6b stored in the second removable external non-volatile memory 3b; - combine the first part of encrypted key 6a and the second part of encrypted key 6b to form an encrypted BBRAM key (or first combined encrypted key); and - decrypt S2, using the decryption algorithm module 9 of the FPGA 2, the BBRAM key encrypted using the second PUF key 8 stored in the FPGA 2, and copy S3 the decrypted BBRAM key (or first decrypted key) 11 into the BBRAM 10 of the FPGA 2. It is thus possible to combine the first encrypted key part Ga and the second encrypted key part 6b, for example by concatenating the two, to form the encrypted BBRAM key. It should be noted that any other type of standard or proprietary combination algorithm could be used, without departing from the scope of the present invention, the combination algorithm however having to be reversible (i.e., the combination function having to have a reciprocal "decombination" function). Thus, when the second removable external non-volatile memory 3b containing the second encrypted key portion 6b is not physically connected to the printed circuit board 12, the product incorporating the controlled cryptographic article (CCI) of the FPGA 2 is then declassified for cryptographic applications, such that the FPGA 2 can no longer boot in the nominal mode, attacks are then no longer possible. Advantageously, the second encrypted key part 6b comprises at least one validity factor, and, in the secure boot method described above, the step of combining the first encrypted key part 6a and the second encrypted key part 6b is carried out only in the case where the FGPA 2 has previously authenticated the at least one validity factor of the second encrypted key part 6b, which makes it possible to guarantee the validity of the second encrypted key part 6b. It should be noted that the first encrypted key part 6a could also include one or more validity factors allowing the FPGA 2 to authenticate it, without departing from the scope of the present invention. Key authentication mechanisms used by FPGA 2 can be, for example: cyclic and header redundancy check, validity date check, number of bits, etc. It is understood that the particular embodiments which have just been described have been given for informational and non-limiting purposes, and that modifications may be made without departing from the present invention.

Claims

Claims

1. Secure boot method for a programmable gate array by the user, FPGA, (2) connected to a non-volatile boot memory boot (3; 3a, 3b) in which a first key is stored encrypted (6; 6a, 6b) and to a nominal non-volatile boot memory (4) in which is stored an encrypted image of FPGA (7), ca- characterized by the fact that it includes: - a boot boot step in which the FPGA (2) is configured for: * recover (S1) the first encrypted key (6; 6a, 6b) stored in the non-volatile boot boot memory (3; 3a, 3b); "decrypt (S2) the first encrypted key (6; 6a, 6b) using a second unclonable physical function key, PUF, (8) stored in the FPGA (2); and “copy (S3) the first decrypted key (11) into a saved RAM- battery-backed, BBRAM, (10) internal FPGA (2); then - a nominal boot step (S4) in which the FPGA (2) is configured for: "decrypt the encrypted FPGA image (7) stored in the non-volatile memory nominal boot volatile (4) using the first decrypted key (11) stored in BBRAM (10); and "as soon as the first decrypted key (11) has been used for the de- encryption of the encrypted image of FPGA (7), erase the first key de- encrypted (11) from BBRAM (10).

2. Secure boot method according to claim 1, characterized by the fact that, once the first decrypted key (11) is copied into the BBRAM (10), FPGA (2) is configured to erase the first key decrypted (11) from BBRAM (10) after a duration of between 100 and 1500 milliseconds.

3. Secure boot method according to claim 1 or 2, characterized by the fact that the non-volatile boot memory comprises a first non-removable non-volatile memory (3a) and a second removable external non-volatile memory (3b), the first key encrypted comprising a first encrypted key part (6a) stored in the first non-removable non-volatile memory (3a) and a second part of encrypted key (6b) stored in the second memory not removable external volatile (3b).

4. Secure boot method according to claim 3, characterized by the fact that, in the boot boot stage, the FPGA (2) is configured for: - check if the second removable external non-volatile memory (3b) is or not connected to the FPGA (2); - when the second removable external non-volatile memory (3b) is connected to the FPGA (2), recover (S1a) the first part of the encrypted key {6a) stored in the first non-removable non-volatile memory (3a), and recover (S1b) the second encrypted key part (6b) stored in the second removable external non-volatile memory (3b); - combine the first part of encrypted key (6a) and the second part of encrypted key (6b) to form an encrypted BBRAM key; and - decrypt (S2) the encrypted BBRAM key using the second key PUF (8) stored in the FPGA (2), and copy the BBRAM key de- encrypted in the BBRAM (10) of the FPGA (2).

5. Secure boot method according to claim 4, characterized by the fact that the second encrypted key part (6b) comprises at least one validity factor, and in which the step of combining the first part of encrypted key (6a) and the second part of encrypted key {6b) is carried out only in the case where the FGPA (2) has pre- lably authenticated at least one factor of validity of the second encrypted key part (6b).

6. Printed circuit board (1; 12) comprising an FPGA (2) in which a second PUF key (8) is stored, a non-volatile memory boot boot (3; 3a, 3b) in which is stored a first encrypted key (6; 6a, 6b), and a non-volatile memory nominal boot (4) in which is stored an encrypted image of FPGA (7), the FPGA (2) being configured to carry out the method secure boot according to one of claims 1 to 5.

7. A printed circuit board (12) according to claim 6 as dependent thereon. of claim 4, characterized by the fact that the non-volatile memory boot boot includes a first non-volatile memory non-removable (3a) integrated into the printed circuit board (12) and a second removable non-volatile memory (3b) external to the card printed circuits (12), the first encrypted key comprising a first part of encrypted key (6a) stored in the first memory non-volatile non-removable (3a) and a second encrypted key part (6b) stored in the second external removable non-volatile memory (3b).

Citation Information

Patent Citations

  • An autonomous, self-authenticating and self-contained secure boot-up system and methods

    US20200342112A1