Platform firmware protection and recovery security management method

By verifying and executing the unlock and lock instructions generated by the BIOS through the mail controller in the hardware root of trust chip, the security concerns caused by unauthorized access in the Aspeed PFR system are solved, and the legal control of the secondary register status is achieved. It reduces the risk of malicious tampering and ensures high-security platform firmware protection.

CN118862080APending Publication Date: 2024-10-29MITAC COMP (SHUN DE) LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310489023.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Aspeed PFR system's access to the platform path controller on the operating system side without authorization may lead to security concerns, such as the system repeatedly entering burning mode or being replaced with harmful firmware, resulting in compromised server security.

Method used

Without changing the hardware circuit, the mail controller in the hardware root of trust chip generates and verifies unlocking and locking instructions according to the basic input and output system (BIOS), and controls the secondary buffer to switch between unlocking and locking states to ensure Only legal instructions can change the state, thereby reducing the risk of malicious tampering.

Benefits of technology

It effectively reduces the risk of the secondary cache being tampered with by malicious persons or malware, provides a highly secure platform firmware protection and recovery management method, and ensures that the system operates normally under legal instructions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862080A_ABST
    Figure CN118862080A_ABST
Patent Text Reader

Abstract

The invention discloses a platform firmware protection and recovery security management method. A basic input / output system firmware executed by a central processing unit generates and transmits an unlocking / locking instruction to a system management bus controller of a platform path controller. The system management bus controller transmits the unlocking / locking instruction to a mail controller of a hardware root of trust chip. And the mail controller judges whether the unlocking / locking instruction is legal or not. When it is judged that the unlocking / locking instruction is legal, the mail controller controls a plurality of auxiliary buffers of the hardware root-of-trust chip to be switched to an unlocking / locking state according to the unlocking / locking instruction, and updates a state flag of a main buffer of the hardware root-of-trust chip to indicate that the auxiliary buffers are in the unlocking / locking state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for accessing data by protecting a platform, and more particularly to a method for protecting and restoring security management of platform firmware. Background Art

[0002] The server's Platform Firmware Resilience (PFR) can protect the firmware from unauthorized modifications by detecting whether the firmware and key data are damaged, and restore the damaged firmware from a good image when necessary, thereby providing firmware resilience.

[0003] PFR is implemented with a Hardware Root-of-Trust (HRoT) chip. The HRoT chip used to implement Intel's (hereinafter referred to as Intel) PFR contains an Intel Field Programmable Gate Array (hereinafter referred to as FPGA), while the Aspeed PFR for non-Intel platforms is implemented using an HRoT chip containing a non-Intel FPGA.

[0004] Intel PFR's HRoT chip communicates with the CPU via a Serial Presence Detect (SPD) System Management Bus (SMBus). The SPD SMBus is only accessible to authenticated Basic Input / Output System (BIOS) firmware.

[0005] However, unlike Intel PFR, Aspeed PFR's HRoT chip communicates with the Platform Controller Hub (PCH) via a host (hereinafter referred to as HOST) SMBus. In addition to being accessible to authenticated BIOS firmware, the HOSTSMBus can also be accessed by unauthenticated operating system (OS) utilities.

[0006] Therefore, in the case of Aspeed PFR, if someone or malicious software accesses the PCH from the OS side and causes unexpected behavior on the platform, such as causing the system to repeatedly enter the burning mode, making the system unable to provide services, or replacing it with harmful firmware, the server will have security concerns. Summary of the invention

[0007] Therefore, the purpose of the present invention is to provide a platform firmware protection and recovery security management method with high security.

[0008] Therefore, the platform firmware protection and recovery security management method of the present invention is executed by a computer device, which includes a hardware trusted root chip, a platform path controller, and a central processing unit. The hardware trusted root chip includes a main cache, multiple sub-caches, and a mail controller electrically connected to the main cache and the sub-caches. The mail controller can control the sub-caches to switch between a locked state and an unlocked state. In the locked state, the sub-caches cannot be read and written. In the unlocked state, the sub-caches can be read and written. The main register stores a status flag indicating that the sub-registers are in one of the locked state and the unlocked state. The sub-registers are in the locked state by default, and the status flag indicates that the sub-registers are in the locked state by default. The platform path controller includes a system management bus controller electrically connected to the mail controller and the central processing unit. The method includes a step (A), a step (B), a step (C), a step (D), a step (E), a step (F), a step (G), and a step (H).

[0009] In the step (A), a BIOS firmware executed by the CPU generates and transmits an unlock command to the system management bus controller of the platform path controller.

[0010] In the step (B), the system management bus controller of the platform path controller transmits the unlocking instruction to the mail controller of the hardware trusted root chip.

[0011] In the step (C), the mail controller of the hardware trusted root chip determines whether the unlock instruction is legal.

[0012] In the step (D), when the unlock instruction is determined to be legal, the mail controller of the hardware trusted root chip controls the sub-registers to switch to the unlock state according to the unlock instruction, and updates the status flag of the main register to indicate that the sub-registers are in the unlock state.

[0013] In the step (E), the BIOS firmware executed by the CPU generates and transmits a lock command to the system management bus controller of the platform path controller.

[0014] In the step (F), the system management bus controller of the platform path controller transmits the locking instruction to the mail controller of the hardware trusted root chip.

[0015] In the step (G), the mail controller of the hardware trusted root chip determines whether the locking instruction is legal.

[0016] In the step (H), when it is determined that the locking instruction is legal, the mail controller of the hardware trusted root chip controls the sub-buffers to switch to the locked state according to the locking instruction, and updates the status flag of the main buffer to indicate that the sub-buffers are in the locked state.

[0017] Compared with the prior art, the platform firmware protection and recovery security management method of the present invention generates the unlock / lock instruction by the basic input / output system firmware, and switches the sub-registers to the unlock / lock state only when the mail controller determines that the unlock / lock instruction is legal. Without changing the hardware circuit, the risk of the sub-registers being tampered with by malicious persons or malicious software can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Other features and effects of the present invention will be clearly presented in the embodiments with reference to the accompanying drawings, in which: Figure 1 is a block diagram illustrating a computer device for implementing the platform firmware protection and recovery security management method of the present invention; Figure 2 is a flow chart illustrating a first embodiment of the platform firmware protection and recovery security management method of the present invention; Figure 3 is a flow chart illustrating a second embodiment of the platform firmware protection and recovery security management method of the present invention; and Figure 4 is a flow chart illustrating a third embodiment of the platform firmware protection and recovery security management method of the present invention. DETAILED DESCRIPTION

[0019] Before the present invention is described in detail, it should be noted that similar elements are denoted by the same reference numerals in the following description.

[0020] See also Figure 1, a computer device 1 for implementing the remote login method of the present invention is described, comprising a flash memory 10, a hardware trusted root chip 11, a platform path controller 12, and a central processing unit 13. The computer device 1 is, for example, a server, but is not limited thereto.

[0021] The flash memory 10 stores a basic input / output system firmware 100 .

[0022] The hardware trusted root chip 11 includes a main register 111, a plurality of sub-registers 112, and a mail controller 113 electrically connected to the main register 111 and the sub-registers 112. The mail controller 113 can control the sub-registers 112 to switch between a locked state and an unlocked state. In the locked state, the sub-registers 112 cannot be read or written; in the unlocked state, the sub-registers 112 can be read or written. The main register 111 stores a state flag indicating that the sub-registers 112 are in one of the locked state and the unlocked state. The sub-registers 112 are in the locked state by default, and the state flag indicates that the sub-registers 112 are in the locked state by default.

[0023] It should be noted that in this embodiment, when the flag value of the status flag is 1, it indicates that the sub-registers 112 are in the locked state, and when the flag value of the status flag is 0, it indicates that the sub-registers 112 are in the unlocked state, but the present invention is not limited thereto.

[0024] The platform path controller 12 includes a system management bus controller 121 electrically connected to the flash memory 10 , the mail controller 113 , and the CPU 13 .

[0025] The CPU 13 executes the BIOS firmware 100 via the system management bus controller 121 .

[0026] See also Figure 1 , 2 , a first embodiment of the platform firmware protection and recovery security management method of the present invention, the steps included in the first embodiment will be described below.

[0027] In step 200, the BIOS firmware 100 executed by the CPU 13 performs a power-on self-test (POST).

[0028] In step 201 , the BIOS firmware 100 executed by the CPU 13 generates and transmits an unlock command to the SMBC 121 of the platform path controller 12 .

[0029] It is worth noting that, since only the BIOS firmware 100 is executed during the POST phase, there is no security concern, and therefore the BIOS firmware 100 executed by the CPU 13 generates and transmits the unlock command.

[0030] In step 202 , the system management bus controller 121 of the platform path controller 12 transmits the unlocking instruction to the mail controller 113 of the hardware trusted root chip 11 .

[0031] In step 203, the mail controller 113 of the hardware trusted root chip 11 determines whether the unlock instruction is legal. When the unlock instruction is determined to be legal, the process proceeds to step 204; and when the unlock instruction is determined to be illegal, the process ends.

[0032] It is worth noting that in the present embodiment, the mail controller 113 of the hardware trusted root chip 11 determines whether the unlock instruction includes a specific character set to determine whether the unlock instruction is legal. When the unlock instruction includes the specific character set, the mail controller 113 of the hardware trusted root chip 11 determines that the unlock instruction is legal; when the unlock instruction does not include the specific character set, the mail controller 113 of the hardware trusted root chip 11 determines that the unlock instruction is illegal, but not limited to this.

[0033] It should be noted that the specific character set is, for example, a supplier code and / or a product code, but is not limited thereto.

[0034] In step 204 , the mail controller 113 of the hardware trusted root chip 11 controls the secondary registers 112 to switch to the unlocked state according to the unlock instruction, and updates the state flag of the primary register 111 to indicate that the secondary registers 112 are in the unlocked state.

[0035] In step 205, the BIOS firmware 100 executed by the CPU ends the POST phase.

[0036] In step 206 , the BIOS firmware 100 executed by the CPU 13 generates and transmits a lock command to the SMBC 121 of the platform path controller 12 .

[0037] It is worth noting that in this embodiment, after the POST phase is completed, the BIOS firmware 100 will load a bootable device under the OS, that is, the user can run unauthorized software under the OS, which raises security concerns. Therefore, the BIOS firmware 100 executed by the CPU 13 generates and transmits the lock command.

[0038] In step 207 , the system management bus controller 121 of the platform path controller 12 transmits the locking instruction to the mail controller 113 of the hardware trusted root chip 11 .

[0039] In step 208, the mail controller 113 of the hardware trusted root chip 11 determines whether the locking instruction is legal. When the locking instruction is determined to be legal, the process proceeds to step 208; and when the locking instruction is determined to be illegal, the process ends.

[0040] It is worth noting that in the present embodiment, the mail controller 113 of the hardware trusted root chip 11 determines whether the locking instruction includes the specific character set to determine whether the locking instruction is legal. When the locking instruction includes the specific character set, the mail controller 113 of the hardware trusted root chip 11 determines that the locking instruction is legal; when the locking instruction does not include the specific character set, the mail controller 113 of the hardware trusted root chip 11 determines that the locking instruction is illegal, but not limited to this.

[0041] In step 209 , the mail controller 113 of the hardware trusted root chip 11 controls the secondary buffers 112 to switch to the locked state according to the locking instruction, and updates the state flag of the primary buffer 111 to indicate that the secondary buffers 112 are in the locked state.

[0042] For example, the unlock instruction generated in step 201 is, for example, 0xAF 0x2B 0x00 0x03 0x000x00. Among them, the first to third bytes 0xAF 0x2B 0x00 are the supplier number, the fourth and fifth bytes 0x03 0x00 are the product number, and the sixth byte 0x00 indicates the unlock action. In step 203, the mail controller 113 determines whether the specific character set of the supplier number and the product number is contained according to the first to fifth bytes of the unlock instruction to determine whether the unlock instruction is legal. If it is determined to be legal, in step 204, the mail controller 113 controls the sub-buffers 112 to switch to the unlock state according to the sixth byte of the unlock instruction, and updates the flag value of the state flag of the main buffer 111 to 0.

[0043] Similarly, the locking instruction generated in step 206 is, for example, 0xAF 0x2B 0x00 0x03 0x00 0x01. Among them, the 6th byte 0x01 represents the locking action. In step 208, the mail controller 113 determines whether the specific character set of the supplier number and the product number is contained according to the 1st to 5th bytes of the locking instruction to determine whether the locking instruction is legal. When it is determined to be legal, in step 209, the mail controller 113 controls the sub-buffers 112 to switch to the locked state according to the 6th byte of the locking instruction, and updates the flag value of the state flag of the main buffer 111 to 1.

[0044] See also Figure 1 , 3 A second embodiment of the platform firmware protection and recovery security management method of the present invention includes steps 300 to 309. The second embodiment is similar to the first embodiment, wherein steps 301 to 309 are respectively the same as steps 201 to 209. The difference is that: In step 300, the BIOS firmware 100 executed by the CPU executes a BIOS setup menu.

[0045] See also Figure 1 , 4 A third embodiment of the platform firmware protection and recovery security management method of the present invention includes steps 400 to 409. The second embodiment is similar to the first embodiment, wherein steps 401 to 404 and 406 to 409 are respectively the same as steps 401 to 404 and 406 to 409. The difference is that: In step 400 , the BIOS firmware 100 executed by the CPU 13 receives an unlock request issued by an authentication utility program.

[0046] In step 405 , the BIOS firmware 100 executed by the CPU 13 receives a lock request issued by the authentication utility program.

[0047] It is worth noting that in this embodiment, the authentication public program is, for example, an AFU (AMI Firmware Update) public program. Since the function code used by AFU is defined in BIOS, the user can issue an unlocking / locking request through the AFU function code, but is not limited to this.

[0048] In summary, the platform firmware protection and recovery security management method of the present invention generates the unlock / lock instruction by the basic input / output system firmware 100, and switches the sub-registers 112 to the unlock / lock state only when the mail controller 113 determines that the unlock / lock instruction is legal. Without changing the hardware circuit, the risk of the sub-registers 112 being tampered with by malicious persons or malicious software can be reduced, so the purpose of the present invention can be achieved.

[0049] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A platform firmware protection and recovery security management method, executed by a computer device, the computer device comprising a flash memory, a hardware trusted root chip, a platform path controller, and a central processing unit, the hardware trusted root chip comprising a main register, a plurality of sub-registers, and a mail controller electrically connected to the main register and the sub-registers, the mail controller being capable of controlling the sub-registers to switch between a locked state and an unlocked state, in which the sub-registers cannot be read and written, and in which the sub-registers are capable of being read and written, the main register storing a state flag indicating that the sub-registers are in one of the locked state and the unlocked state, the sub-registers being in the locked state by default, and the state flag indicating that the sub-registers are in the locked state by default, the platform path controller comprising a system management bus controller electrically connected to the flash memory, the mail controller, and the central processing unit, the flash memory storing a basic input / output system firmware, the central processing unit executing the basic input / output system firmware through the system management bus controller, It is characterized in that The method comprises the following steps: (A) the BIOS firmware executed by the CPU generates and transmits an unlock command to the system management bus controller of the platform path controller; (B) the system management bus controller of the platform path controller transmits the unlock instruction to the mail controller of the hardware trusted root chip; (C) the mail controller of the hardware trusted root chip determines whether the unlocking instruction is legal; (D) when it is determined that the unlock instruction is legal, the mail controller of the hardware trusted root chip controls the secondary registers to switch to the unlock state according to the unlock instruction, and updates the state flag of the primary register to indicate that the secondary registers are in the unlock state; (E) the BIOS firmware executed by the CPU generates and transmits a lock command to the system management bus controller of the platform path controller; (F) the system management bus controller of the platform path controller transmits the locking instruction to the mail controller of the hardware trusted root chip; (G) the mail controller of the hardware trusted root chip determines whether the locking instruction is legal; and (H) When it is determined that the locking instruction is legal, the mail controller of the hardware trusted root chip controls the sub-buffers to switch to the locked state according to the locking instruction, and updates the status flag of the main buffer to indicate that the sub-buffers are in the locked state.

2. The platform firmware protection and recovery security management method according to claim 1, It is characterized in that In step (A), when the basic input-output system firmware executed by the central processing unit performs a power-on self-test phase, the central processing unit generates and transmits the unlocking instruction. In step (E), when the basic input-output system firmware executed by the central processing unit ends the power-on self-test phase, the basic input-output system firmware executed by the central processing unit generates and transmits the locking instruction.

3. The platform firmware protection and recovery security management method according to claim 1, It is characterized in that In step (A), when the BIOS firmware executed by the CPU executes a BIOS setup menu, the CPU generates and transmits the unlock command. In step (E), when the BIOS firmware executed by the CPU ends a power-on self-test phase, the BIOS firmware executed by the CPU generates and transmits the lock command.

4. The platform firmware protection and recovery security management method according to claim 1, It is characterized in that In step (A), when the basic input / output system firmware executed by the central processing unit receives an unlocking request issued by an authentication public program, the basic input / output system firmware executed by the central processing unit generates and transmits the unlocking instruction. In step (E), when the basic input / output system firmware executed by the central processing unit receives a locking request issued by the authentication public program, the basic input / output system firmware executed by the central processing unit generates and transmits the locking instruction.

5. The platform firmware protection and recovery security management method according to claim 1, It is characterized in that In step (C), the mail controller of the hardware trusted root chip determines whether the unlock instruction includes a specific character set to determine whether the unlock instruction is legal. When the unlock instruction includes the specific character set, the mail controller of the hardware trusted root chip determines that the unlock instruction is legal. When the unlock instruction does not include the specific character set, the mail controller of the hardware trusted root chip determines that the unlock instruction is illegal. In step (G), the mail controller of the hardware trusted root chip determines whether the locking instruction includes the specific character set to determine whether the locking instruction is legal. When the locking instruction includes the specific character set, the mail controller of the hardware trusted root chip determines that the locking instruction is legal. When the locking instruction does not include the specific character set, the mail controller of the hardware trusted root chip determines that the locking instruction is illegal.

6. The platform firmware protection and recovery security management method according to claim 5, It is characterized in that In step (C), the specific character set includes at least one of a supplier number and a product number.

7. The platform firmware protection and recovery security management method according to claim 5, It is characterized in that In step (C) and step (G), the specific character set is a specific byte.