Secure boot system and method thereof

By introducing a frequency generation module and a random number adjuster into the launcher, the execution frequency and timing of the launcher are dynamically adjusted, solving the problem that the fixed execution time of the launcher is vulnerable to attack and improving the system's security.

CN115600207BActive Publication Date: 2026-11-24NUVOTON
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110922917.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-07-09
Filing Date
2021-08-12
Publication Date
2026-11-24
Estimated Expiration
2041-08-12

AI Technical Summary

Technical Problem

In existing technologies, the execution time of the launcher is fixed and easily predicted by hackers, which threatens system security and makes it impossible to effectively defend against fault injection attacks.

Method used

By introducing a frequency generation module and a random number adjuster, the execution frequency and timing of the starter are dynamically adjusted to ensure that the timing of each power-on is different and difficult for hackers to predict.

Benefits of technology

It effectively prevents hacker attacks, ensures that the launcher executes secure programs normally at random times, and improves the system's security and defense capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115600207B_ABST
    Figure CN115600207B_ABST
Patent Text Reader

Abstract

This application discloses a secure boot system and method. The system includes a microprocessor, a random number adjuster, and a frequency adjuster. The microprocessor has a bootloader that executes a boot program at a first boot time based on a first frequency. The random number adjuster sends a random number. The frequency adjuster is connected between the random number adjuster and the bootloader. When the bootloader wants to execute a secure program, the frequency adjuster adjusts the first frequency to a second frequency based on the random number and transmits it to the bootloader. The bootloader then executes the secure program at a second time point of a second boot time based on the second frequency. By randomly adjusting the boot time point, the system prevents hackers from precisely attacking the microprocessor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a safe startup system and method that utilizes random adjustment to change the working time point. Background Technology

[0002] In a protected and secure system, the bootloader determines whether subsequent programs can be executed after the system powers on. The bootloader performs a boot verification check to assess the security of the executable program; only when a verified executable program is executed can system security be ensured. However, if the boot verification step is compromised due to an attack and the executable program is not executed, then system security cannot be guaranteed.

[0003] For example, a fault injection attack is one type of attack that can compromise critical instructions in the launcher. If a hacker can predict the execution time of these critical instructions, they can attack the launcher at that specific time, potentially causing an insecure program to be launched. Therefore, a fixed launcher execution time can actually be an advantageous attack condition for hackers, and the more fixed the execution time, the more insecure the execution environment.

[0004] In summary, the inventors of this invention have conceived and designed a safe startup system and method in order to improve upon the shortcomings of existing technologies and thereby enhance their industrial application. Summary of the Invention

[0005] In view of the above-mentioned existing problems, the purpose of the present invention is to provide a secure boot system and method to solve the problems faced in the prior art.

[0006] To achieve the above objectives, the present invention provides a secure boot system, comprising a program execution module and a frequency generation module. When the secure boot system is powered on, the program execution module executes a boot program according to a first frequency, and executes a security program at a first time point during the execution time of the boot program. When the secure boot system is powered on, the frequency generation module generates a first frequency based on a random number to randomly change the first time point.

[0007] Optionally, each time the secure boot system is powered on, the first time point corresponds to a different random number, thereby preventing the secure boot system from being attacked and failing to execute the security procedures.

[0008] To achieve the above objectives, the present invention provides a secure boot system comprising a microprocessor, which includes a bootloader, a random number adjuster, and a frequency adjuster. The bootloader executes a boot program at a first boot time based on a first frequency. The random number adjuster sends a random number. The frequency adjuster is connected between the random number adjuster and the bootloader. When the bootloader wishes to execute a secure program, the frequency adjuster adjusts the first frequency to a second frequency based on the random number and transmits it to the bootloader. The bootloader then executes the secure program at a second time point of a second boot time based on the second frequency.

[0009] Optionally, the second frequency is higher than the first frequency, and the second startup time is shorter than the first startup time.

[0010] Optionally, the second frequency is lower than the first frequency, and the second startup time is longer than the first startup time.

[0011] A secure boot method includes: (1) providing a booter to execute a boot procedure at a first time point of a first boot time according to a first frequency; (2) when the booter wants to execute the secure procedure, controlling a frequency adjuster to adjust the first frequency to a second frequency according to a random number and transmitting it to the booter; (3) controlling the booter to execute the secure boot procedure at a second time point of a second boot time according to the second frequency.

[0012] Optionally, the second frequency is higher than the first frequency, the second startup time is shorter than the first startup time, and the second time point is earlier than the first time point.

[0013] Optionally, the second frequency is lower than the first frequency, the second startup time is longer than the first startup time, and the second time point is later than the first time point.

[0014] As described above, the secure boot system and method of the present invention, through random adjustment of the first time point by a frequency adjuster, prevents hackers from accurately attacking the second time point when the microprocessor is actually executing. Attached Figure Description

[0015] Figure 1 This is a block diagram of a first embodiment of the secure startup system of the present invention.

[0016] Figure 2 This is a block diagram of a second embodiment of the secure startup system of the present invention.

[0017] Figure 3A This is a schematic diagram of the initiator at the first startup time.

[0018] Figure 3B This is a diagram illustrating an attack on the launcher.

[0019] Figure 3C This is a schematic diagram of an embodiment of the present invention for a starter at a second start time.

[0020] Figure 3D This is a schematic diagram of the second startup time of another embodiment of the present invention for the starter.

[0021] Figure 4 This is a flowchart of the secure startup method of the present invention.

[0022] [Symbol Explanation]

[0023] 10: Launcher

[0024] 20: Random Number Adjuster

[0025] 30: Frequency Regulator

[0026] 40: Clock Generator

[0027] f1,FE1: First frequency

[0028] f2: Second frequency

[0029] FG: Frequency Generation Module

[0030] MCU: Microprocessor

[0031] PE: Program Execution Module

[0032] RN: Random Number

[0033] T0,AT1: First Startup Time

[0034] T1, T2: Second startup time

[0035] TA,FT: First Time Point

[0036] TA1, TA2: Second time points

[0037] S1~S5: Steps Detailed Implementation

[0038] The advantages, features, and technical methods of the present invention will be more readily understood by referring to the exemplary embodiments and accompanying drawings. The present invention may be implemented in different forms and should not be construed as limited to the embodiments set forth herein. Rather, the embodiments provided will enable those skilled in the art to more thoroughly and completely convey the scope of the invention, and the invention will be defined only by the scope of the appended claims.

[0039] It should be understood that although the terms "first," "second," etc., are used in this invention to describe various elements, components, regions, layers, and / or portions, these elements, components, regions, layers, and / or portions should not be limited by these terms. These terms are used only to distinguish one element, component, region, layer, and / or portion from another element, component, region, layer, and / or portion. Therefore, the terms "first element," "first component," "first region," "first layer," and / or "first portion" discussed below may also be referred to as "second element," "second component," "second region," "second layer," and / or "second portion" without departing from the spirit and teachings of this invention.

[0040] Additionally, the terms "comprising" and / or "including" refer to the presence of the stated features, areas, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, areas, wholes, steps, operations, elements, components, and / or combinations thereof.

[0041] Unless otherwise defined, all terms used in this invention (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology and this invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly defined herein.

[0042] Please see Figure 1 This is a block diagram of a first embodiment of the secure boot system of the present invention. Figure 1 As shown, the secure boot system of the present invention includes a program execution module PE and a frequency generation module FG. When the secure boot system is powered on, the program execution module PE executes a boot program according to a first frequency, and executes a security program at a first time point during the execution time of the boot program. When the secure boot system is powered on, the frequency generation module FG generates a first frequency FE1 according to a random number RN to randomly change the first time point. Each time the secure boot system is powered on, the first time point corresponds to a different random number RN, thereby preventing the secure boot system from being attacked and thus failing to execute the security program.

[0043] Please see Figure 2 and Figure 3A This is a block diagram of a second embodiment of the secure startup system of the present invention and a schematic diagram of the starter at the first startup time. Figure 2 and Figure 3AAs shown, the secure boot system of the present invention includes a microprocessor (MCU), a random number adjuster (or random number generator) 20, and a frequency adjuster 30. The MCU has a bootloader 10, which executes a boot program at a first boot time based on a first frequency f1. Generally, when the bootloader 10 wants to execute a secure program, it executes the secure program at a first time point TA of the first boot time T0 to start a legitimate program. The legitimate program is an application program that has undergone security verification and is used to perform user tasks. The random number adjuster 20 sends a random number RN. The frequency adjuster 30 is connected between the random number adjuster 20 and the bootloader 10. When the bootloader 10 wants to execute a secure program, the frequency adjuster 30 adjusts the first frequency f1 to a second frequency f2 based on the random number RN and transmits it to the bootloader 10. The bootloader 10 executes the secure program at a second time point TA1 or TA2 of the second boot time T1 or T2 based on the second frequency f2. After executing the secure program, the bootloader 10 then executes the legitimate program, which is a program certified by the manufacturer. The adjustment of the first frequency f1 occurs after the microprocessor MCU is powered on and before the initiator 10 executes the safety program. Each time the initiator 10 executes the safety program, the random number RN is different, causing the value of the second frequency f2 to be random each time, resulting in a different value for the second frequency f2 compared to the first frequency f1. The frequency adjuster 30 can be, for example, a clock trim register.

[0044] Please see Figure 3B This is a diagram illustrating an attack on the launcher. For example... Figure 3B As shown, and paired with Figure 2 and Figure 3A Since the first frequency f1 of a typical microprocessor MCU is fixed, after the microprocessor MCU is powered on, the starter 10 executes the security startup program at a fixed first time point TA at a fixed first startup time T0. This makes the first time point TA easy for hackers to predict and attack, thereby causing hackers to start illegal programs to make the starter 10 not operate completely according to the set first time point TA, so that the microprocessor MCU cannot operate as expected. At this time, hackers look for vulnerabilities in the microprocessor MCU to bypass the preset security mechanism or obtain protected data.

[0045] Please see Figure 3C This is a schematic diagram of an embodiment of the starter of the present invention at the second start time. For example... Figure 3C As shown, and paired with Figure 2When the initiator 10 wants to execute the security program, the frequency adjuster 30 adjusts the first frequency f1 to the second frequency f2 according to the random number RN. At this time, the random number RN is less than 1. The frequency adjuster multiplies the original first frequency f1 with the random number RN to reduce the first frequency f1 to the second frequency f2, making the second frequency f2 lower than the first frequency f1 (for example, the first frequency f1 is 3.2GHz, and the second frequency is 2.5GHz). Due to the configuration of the second frequency f2, the original first startup time T0 is extended, resulting in the second startup time T1 being longer than the first startup time T0 (that is, the value of the second startup time T1 is greater than the value of the first startup time T0). The relative position of time point TA at the first start time T0 and the relative position of time point TA1 at the second start time T1 are the same. Therefore, the second time point TA1 changes, making the second time point TA1 later than the first time point TA (that is, the value of the second time point TA1 is greater than the value of the first time point TA). If the hacker still attacks at the first time point TA, after the adjustment of the frequency adjuster 30, the starter 10 executes the security program at the second time point TA1 of the second start time T1. Because the second time point TA1 is later than the first time point TA, the hacker fails to successfully attack the second time point TA1 when the microprocessor MCU is actually operating, and the starter 10 can still start the security program normally.

[0046] Please see Figure 3D This is a schematic diagram of the second startup time of another embodiment of the starter of the present invention. Figure 3D As shown, and paired with Figure 1 When the initiator 10 wants to execute the security program, the frequency adjuster 30 adjusts the first frequency f1 to the second frequency f2 according to the random number RN. At this time, the random number RN is greater than 1. The frequency adjuster multiplies the original first frequency f1 with the random number RN to amplify the first frequency f1 to the second frequency f2, making the second frequency f2 higher than the first frequency f1 (for example, the first frequency f1 is 3.2GHz, and the second frequency f2 is 5GHz). Due to the configuration of the second frequency f2, the original first startup time T0 is shortened, resulting in the second startup time T2 being shorter than the first startup time T0 (that is, the value of the second startup time T2 is less than the value of the first startup time T0). Because the relative position of the first time point TA at the first start time T0 and the relative position of the second time point TA2 at the second start time T2 are the same, the second time point TA2 is earlier than the first time point TA (that is, the value of the second time point TA1 is less than the value of the first time point TA); if the hacker still attacks at the first time point TA, after the adjustment of the frequency adjuster 30, the starter 10 executes the security program at the second time point TA2 of the second start time T2. Because the second time point TA2 is earlier than the first time point TA, the hacker fails to successfully attack the second time point TA2 when the microprocessor MCU is actually operating, and the starter 10 can still start the security program normally.

[0047] Because of the configuration of the random number RN, the first frequency f1 becomes a random second frequency f2 (that is, the value of the random number RN is different each time). The second frequency f2 received by the starter 10 is random each time, so the second time point TA2 is different each time. Therefore, the second time point TA2 is difficult for hackers to predict and attack, which improves the security of the working environment of the microprocessor MCU. The starter 10 can execute the secure boot program normally and then execute the legitimate program.

[0048] Please see Figure 4 This is a flowchart of the secure boot method of the present invention. Figure 4 As shown, the combination Figure 2 , Figure 3A , Figure 3C and Figure 3D The safe startup method of the present invention is described as follows: Step S1: Provide a microprocessor (MCU) with a starter 10.

[0049] S2 Step: Starter 10 Figure 3A The startup procedure is executed at the first startup time T0 based on the first frequency f1, and the safety procedure is executed at the first time point TA of the first startup time T0. The frequency adjuster 30 measures and obtains the first frequency f1.

[0050] S3 step: When the initiator 10 wants to execute the security program, it uses the random number adjuster 20 to transmit the random number RN to the frequency adjuster 30.

[0051] Step S4: Based on the random number RN, control the frequency adjuster 30 to adjust the first frequency f1 to the second frequency f2 and transmit it to the starter 10. The second frequency f2 is different from the first frequency f1.

[0052] Step S5: Based on the second frequency f2, control the starter 10 to execute the safe startup procedure at the second time point TA1 or TA2 of the second startup time T1 or T2. Wherein, if the second frequency f2 is higher than the first frequency f1, such as... Figure 3D As shown, the second startup time T2 is shorter than the first startup time T0, and the second time point TA2 is earlier than the first time point TA; if the second frequency f2 is lower than the first frequency f1, such as Figure 3C As shown, the second startup time T1 is longer than the first startup time T0, and the second time point TA1 is later than the first time point TA.

[0053] According to the secure startup method of the present invention, the operating frequency of the startup device 10 is adjusted to a random frequency (that is, the second frequency f2 is random), and the second time point TA1 or TA2 of the second startup time T1 or T2 is also random, so as to achieve the purpose of random startup time. Therefore, it is difficult for hackers to predict the second time point TA1 or TA2 to launch an attack.

[0054] As described above, the secure boot system and method of the present invention, through the random adjustment of the first time point TA by the frequency adjuster 30, avoids the possibility that hackers cannot accurately attack the second time point TA2 or TA1 when the microprocessor MCU is actually executing.

[0055] The above description is merely illustrative and not restrictive. Any equivalent modifications or alterations made without departing from the spirit and scope of this invention should be included within the scope of the appended claims.

Claims

1. A safe startup system, characterized in that, include: The program execution module executes the startup program at a corresponding first time point according to a first frequency when the safe startup system is powered on. as well as When the safety startup system is powered on and the program execution module wants to execute the safety program, the frequency generation module adjusts the first frequency to a second frequency according to a random number and transmits it to the program execution module. The program execution module then executes the safety program at a second time point corresponding to the second frequency.

2. The safe start system according to claim 1, characterized in that, Each time the security procedure is executed, the second time point corresponds to a different random number, thereby preventing the secure boot system from being attacked and thus avoiding the execution of the security procedure.

3. A safe startup system, characterized in that, include: A starter that executes a startup procedure at a first startup time according to a first frequency; Random number adjuster, sends random numbers; as well as A frequency adjuster is connected between the random number adjuster and the initiator. When the initiator wants to execute a security program, the frequency adjuster adjusts the first frequency to a second frequency according to the random number and transmits it to the initiator. The initiator then executes the security program at a second time point of a second startup time according to the second frequency.

4. The safe start system according to claim 3, characterized in that, The second frequency is higher than the first frequency, and the second startup time is shorter than the first startup time.

5. The safe start system according to claim 3, characterized in that, The second frequency is lower than the first frequency, and the second startup time is longer than the first startup time.

6. The safe start system according to claim 3, characterized in that, The starter, the random number adjuster, and the frequency adjuster are integrated into a single processor.

7. A safe startup method, characterized in that, include: The launcher executes the startup procedure at a first time point of the first startup time according to a first frequency; When the initiator wants to execute a security program, it controls the frequency adjuster to adjust the first frequency to the second frequency according to a random number and transmits it to the initiator. as well as Based on the second frequency, the starter is controlled to execute the security procedure at a second time point of the second startup time.

8. The safe startup method according to claim 7, characterized in that, The second frequency is higher than the first frequency, the second startup time is shorter than the first startup time, and the second time point is earlier than the first time point.

9. The safe startup method according to claim 7, characterized in that, The second frequency is lower than the first frequency, the second startup time is longer than the first startup time, and the second time point is later than the first time point.

Citation Information

Patent Citations

  • KR20210071241A