Firmware refreshing method and device, computer system, storage medium and program product

By verifying the public key certificate and file information of the refreshed firmware file in the computer system, the trusted root information of the processor ensures the security of BIOS refresh, solving the problem of low security after BIOS refresh, and achieving high efficiency, A secure firmware refresh process.

CN118939282APending Publication Date: 2024-11-12DAWNING INFORMATION IND (BEIJING) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310539916.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-12
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In computer systems, the security is low after BIOS refresh, and there are security problems.

Method used

By verifying the public key certificate and file information in the refreshed firmware file in the information in the solidified area in the computer system, it ensures its legality and validity. If passed, the firmware will be refreshed, and the trusted root information of the processor is used and The public key certificate is used for security verification to ensure the security of the firmware refresh process.

Benefits of technology

Improves the security of the computer system after firmware refresh, simplifies the security refresh process, saves costs, does not require manual participation, and enhances the accuracy and security of verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939282A_ABST
    Figure CN118939282A_ABST
Patent Text Reader

Abstract

The invention relates to a firmware refreshing method and device, a computer system, a storage medium and a program product. The method comprises the steps that after a firmware refreshing instruction is responded, a public key certificate and file information in a to-be-refreshed firmware file are verified according to information in a curing area in a computer system, and when the to-be-refreshed firmware file passes verification, an original firmware file of the computer system is refreshed through the to-be-refreshed firmware file. By the adoption of the method, the to-be-refreshed firmware file is verified through the information which is not prone to being tampered or lost in the curing area, the verification accuracy of the to-be-refreshed firmware file can be improved, firmware refreshing is further achieved through the to-be-refreshed file passing verification, and the firmware refreshing efficiency is improved. And the security of a computer system after firmware refreshing can be ensured to a great extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a firmware refresh method, device, computer system, storage medium and program product. Background Art

[0002] With the development of information technology, the functions of the Basic Input Output System (BIOS) of computer systems need to be constantly updated to make up for the loopholes in the BIOS in the computer system and to improve the compatibility of BIOS with other hardware such as memory, graphics card, hard disk, etc., so that the computer system can provide users with more comprehensive services and meet users' needs.

[0003] However, using the relevant technology to refresh the BIOS in the computer system may have security issues, resulting in low security of the computer system after the BIOS is refreshed. Summary of the invention

[0004] Based on this, it is necessary to provide a firmware refresh method, device, computer system, storage medium and program product to address the above technical problems, which can improve the security of the computer system after BIOS refresh.

[0005] In a first aspect, an embodiment of the present application provides a virtualization performance processing method, the method comprising:

[0006] After responding to the firmware refresh instruction, verifying the public key certificate and file information in the firmware file to be refreshed according to the information in the hardened area of ​​the computer system;

[0007] If the firmware file to be updated passes the verification, the original firmware file of the computer system is updated using the firmware file to be updated.

[0008] The technical solution in the embodiment of the present application is to verify the public key certificate and file information in the firmware file to be refreshed according to the information in the solidified area of ​​the computer system after responding to the firmware refresh instruction, and when the firmware file to be refreshed passes the verification, the original firmware file of the computer system is refreshed through the firmware file to be refreshed; the above method is used to verify the firmware file to be refreshed through the information that is not easy to be tampered with or lost in the solidified area, so as to improve the accuracy of the verification of the firmware file to be refreshed, and further realize the firmware refresh through the verified file to be refreshed, which can greatly ensure the security of the computer system after the firmware refresh; the above method can realize the security verification of the firmware file to be refreshed through the stored solidified information, so that the firmware security refresh process is relatively simple; in addition, the above method does not require human participation, which can not only save the cost of firmware security refresh, but also improve the security of the computer system after the firmware refresh.

[0009] In one embodiment, the information in the solidified area includes the trusted root information of the processor, and the file information includes the signature value of the firmware file to be refreshed; based on the information in the solidified area of ​​the computer system, the public key certificate and the file information in the firmware file to be refreshed are verified, including:

[0010] Verify the legitimacy of the public key certificate based on the trusted root information of the processor;

[0011] If the legitimacy check passes, the signature value of the firmware file to be refreshed is verified using the public key in the public key certificate;

[0012] If the signature value verification passes, it is determined that the verification of the firmware file to be updated passes.

[0013] The technical solution in the embodiment of the present application performs a legitimacy check on the public key certificate according to the trusted root information of the processor. When the legitimacy check passes, the signature value of the firmware file to be refreshed is verified by the public key in the public key certificate. When the signature value check passes, it is determined that the verification of the firmware file to be refreshed passes. The method performs a security check on the firmware file to be refreshed by solidifying the trusted root information of the processor in the area that is not easily tampered with or lost. This method can not only improve the accuracy of the security check of the firmware file to be refreshed, but also provide a secure refresh file for the firmware secure refresh to ensure the security of the firmware refresh process.

[0014] In one embodiment, the legitimacy of the public key certificate is verified based on the trusted root information of the processor, including:

[0015] Verify the public key certificate using the processor's trusted root information, the public key in the public key certificate, and the signature value in the public key certificate; and,

[0016] Verify the validity of the public key certificate according to the validity period in the public key certificate; and

[0017] Verify the user information in the public key certificate.

[0018] The technical solution in the embodiment of the present application verifies the public key certificate through the trusted root information of the processor, the public key in the public key certificate and the signature value in the public key certificate, and verifies the validity of the public key certificate according to the valid time in the public key certificate, and verifies the user information in the public key certificate according to the trusted root information of the processor; the method can verify the legitimacy of the public key certificate through the information in the solidified area in the hardware layer that is not easy to be tampered with or lost, which can improve the accuracy of the legitimacy verification of the public key certificate. At the same time, the method can comprehensively verify the legitimacy of the public key certificate from three aspects: the public key certificate, the validity of the public key certificate and the user information in the public key certificate, which can greatly improve the accuracy of the legitimacy verification of the public key certificate.

[0019] In one embodiment, verifying the public key certificate by using the trusted root information of the processor, the public key in the public key certificate, and the signature value in the public key certificate includes:

[0020] Decrypting the signature value in the public key certificate according to the trusted root information of the processor to obtain a first hash value;

[0021] Performing hash processing on the public key value in the public key certificate according to the hash algorithm in the public key certificate to obtain a second hash value;

[0022] If the first hash value is equal to the second hash value, the signature value in the public key certificate is verified.

[0023] The technical solution in the embodiment of the present application can decrypt the signature value in the public key certificate according to the trusted root information of the processor to obtain a first hash value, and hash the public key value in the public key certificate according to the hash algorithm in the public key certificate to obtain a second hash value. When the first hash value is equal to the second hash value, the signature value in the public key certificate passes the verification; the above method can perform security verification on the public key certificate, so as to provide an effective basis for completing accurate security verification of the firmware file to be refreshed, thereby further improving the security of firmware refreshing.

[0024] In one embodiment, the method further comprises:

[0025] Perform security verification on the startup information of the computer system;

[0026] If the verification of the startup information passes, the computer system is completely started through the startup information, and a step of verifying the firmware file to be refreshed according to the information in the solidified area of ​​the computer system is executed.

[0027] The technical solution in the embodiment of the present application performs a security check on the startup information of the computer system. When the startup information is checked, the computer system is completely started through the startup information, and the step of checking the firmware file to be refreshed is performed according to the information in the solidified area of ​​the computer system; the method can perform a security check on the startup information of the computer system, complete the safe startup of the computer system according to the startup information that passes the security check, and then, on the basis that the computer system can run safely, the firmware is securely refreshed. This process can greatly improve the security of the computer system after the firmware is securely refreshed; in addition, the above method does not require human participation, which can not only improve the accuracy of information verification, but also save verification costs, thereby reducing the cost of firmware security refresh and improving the accuracy of firmware security refresh.

[0028] In one embodiment, performing security verification on startup information of a computer system includes:

[0029] The information in the firmware layer and the system layer of the computer system is verified by using the information in the solidified area of ​​the computer system.

[0030] The technical solution in the embodiment of the present application verifies the information in the firmware layer and the system layer of the computer system through the information in the solidified area of ​​the computer system; the method can verify the information in the firmware layer and the system layer of the computer system through the information in the solidified area in the hardware layer that is not easy to be tampered with or lost, thereby improving the accuracy of the security information verification of the computer system; at the same time, the above method can realize the security information verification of the computer system through the stored solidified information, without the need for complex algorithms, making the verification process relatively simple.

[0031] In a second aspect, an embodiment of the present application provides a firmware refresh device, the device comprising:

[0032] A verification module, for verifying the public key certificate and file information in the firmware file to be refreshed according to the information in the solidified area of ​​the computer system after responding to the firmware refresh instruction;

[0033] The refresh module is used to refresh the original firmware file of the computer system through the firmware file to be refreshed when the verification result of the verification module is that the verification is passed.

[0034] In a third aspect, an embodiment of the present application further provides a computer system, the computer system comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the method of any embodiment of the first aspect when executing the computer program.

[0035] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method of any embodiment in the above-mentioned first aspect are implemented.

[0036] In a fifth aspect, an embodiment of the present application further provides a computer program product, the computer program product comprising a computer program, which, when executed by a processor, implements the steps of the method of any embodiment of the first aspect above.

[0037] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 is an internal structure diagram of a computer system in one embodiment;

[0039] Figure 2 A schematic diagram of a flow chart of an information verification method in an embodiment;

[0040] Figure 3 is a flow chart of an information verification method in another embodiment;

[0041] Figure 4 is a flow chart of an information verification method in another embodiment;

[0042] Figure 5 is a flow chart of an information verification method in another embodiment;

[0043] Figure 6 is a flow chart of an information verification method in another embodiment;

[0044] Figure 7 1 is a structural block diagram of an information verification device in an embodiment. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] In the computer field, the functions of the BIOS of a computer system need to be constantly updated to make up for the loopholes in the BIOS of the computer system and to improve the compatibility of the BIOS with other hardware such as memory, graphics card, hard disk, etc., so that the computer system can provide users with more comprehensive services and meet the needs of users. Therefore, the BIOS of a computer system may need to be refreshed from time to time. However, using relevant technologies to refresh the BIOS in a computer system will have security issues, resulting in lower security of the computer system after the BIOS is refreshed.

[0047] Based on this, an embodiment of the present application provides a firmware refresh method that can improve the security of the computer system after the BIOS is refreshed.

[0048] The firmware refresh method provided in the embodiment of the present application can be applied to Figure 1 The computer system shown. Optionally, the computer system can be a computer device or a server, etc.; the processor includes but is not limited to a microcontroller unit (MCU), a central processing unit (CPU), an embedded processor (Digital Signal Processing, DSP), a programmable logic device (Field-Programmable Gate Array, FPGA), etc., and the embodiment of the present application does not limit this. The specific process of the firmware refresh method is introduced below with the processor in the computer system as the execution subject.

[0049] like Figure 2 FIG. 1 is a flow chart of a firmware refresh method provided in an embodiment of the present application, and the method can be implemented by the following steps:

[0050] S100: After responding to the firmware refresh instruction, verify the public key certificate and file information in the firmware file to be refreshed according to the information in the solidified area of ​​the computer system.

[0051] In actual applications, the user can input a firmware refresh instruction to the computer system. Specifically, the user can input the firmware refresh instruction to the computer system through voice, gestures, actions, etc. In addition, the user can also input the firmware refresh instruction to the computer system through an input device. Correspondingly, after the processor in the computer system receives and responds to the firmware refresh instruction, it verifies the public key certificate and file information in the firmware file to be refreshed according to the information in the solidified area of ​​the computer system, so as to further complete the secure refresh of its current BIOS, that is, to securely update its current BIOS.

[0052] Among them, the solidified area in the computer system can be understood as a storage area in the processor of the computer system that cannot be changed permanently after the information is written. The information in the solidified area is relatively safe, that is, after the information is written to the solidified area, the information is not easy to be tampered with or lost. Optionally, the information written to the solidified area may include the built-in code of the processor in the computer system and related information of other hardware structures, etc., which is not limited in the embodiments of the present application. In the embodiments of the present application, the information in the solidified area can be understood as solidified information.

[0053] In practical applications, in order to ensure the safe operation of the computer system and effectively prevent the firmware file to be refreshed with potential safety hazards from being refreshed, the computer system can obtain information in the processor solidification area under the premise of safe startup of the computer system, and verify the public key certificate and file information in the firmware file to be refreshed according to the information in the solidification area of ​​the computer system, so as to prepare for the firmware security refresh. Optionally, the firmware file to be refreshed can be a BIOS file to be refreshed.

[0054] In one embodiment, the method for verifying the public key certificate and file information in the firmware file to be refreshed based on the information in the solidified area of ​​the computer system can be to pre-train an algorithm model, and then input the information in the solidified area, the public key certificate and file information in the firmware file to be refreshed into the algorithm model, and the algorithm model outputs the verification result of the public key certificate and file information in the firmware file to be refreshed.

[0055] In another embodiment, the method of verifying the public key certificate and file information in the firmware file to be refreshed according to the information in the solidified area of ​​the computer system can also be to decrypt the public key certificate and file information in the firmware file to be refreshed according to the information in the solidified area, respectively, and compare the obtained decryption processing results with the preset decryption value. If each decryption processing result is equal to the preset decryption value, it is determined that the public key certificate and file information verification have passed. If the decryption processing result of the public key certificate is equal to the preset decryption value and the decryption processing result of the file information is not equal to the preset decryption value, it is determined that the public key certificate verification has passed. If the decryption processing result of the file information is equal to the preset decryption value and the decryption processing result of the public key certificate is not equal to the preset decryption value, it is determined that the file information verification has passed.

[0056] It should be noted here that when the public key certificate and the file information in the firmware file to be refreshed are verified, it can be determined that the firmware file to be refreshed has passed the verification, otherwise, it is determined that the firmware file to be refreshed has failed the verification.

[0057] S200: If the firmware file to be updated passes verification, the original firmware file of the computer system is updated using the firmware file to be updated.

[0058] Based on the above verification result, when it is determined that the firmware file to be refreshed has passed the verification, the original firmware file of the computer system can be refreshed using the firmware file to be refreshed that has passed the verification.

[0059] The technical solution in the embodiment of the present application is to verify the public key certificate and file information in the firmware file to be refreshed according to the information in the solidified area of ​​the computer system after responding to the firmware refresh instruction, and when the firmware file to be refreshed passes the verification, the original firmware file of the computer system is refreshed through the firmware file to be refreshed; the above method is used to verify the firmware file to be refreshed through the information that is not easy to be tampered with or lost in the solidified area, so as to improve the accuracy of the verification of the firmware file to be refreshed, and further realize the firmware refresh through the verified file to be refreshed, which can greatly ensure the security of the computer system after the firmware refresh; the above method can realize the security verification of the firmware file to be refreshed through the stored solidified information, so that the firmware security refresh process is relatively simple; in addition, the above method does not require human participation, which can not only save the cost of firmware security refresh, but also improve the security of the computer system after the firmware refresh.

[0060] The verification process of the firmware file to be refreshed is described below. In one embodiment, the information in the above-mentioned solidified area includes the trusted root information of the processor, and the file information includes the signature value of the firmware file to be refreshed; Figure 3 As shown, the step of verifying the public key certificate and file information in the firmware file to be refreshed according to the information in the hardened area of ​​the computer system in S100 can be implemented in the following manner:

[0061] S110. Perform a validity check on the public key certificate according to the trusted root information of the processor.

[0062] Specifically, the computer system may use an information verification algorithm to verify the legitimacy of the public key certificate in the firmware file to be refreshed. Optionally, the information verification algorithm may be a cyclic redundancy check method, a parity check method, a Hamming code check method, and the like.

[0063] In addition, the computer system can also process the public key certificate in the firmware file to be refreshed to obtain a first verification value, and then compare the first verification value with a preset first verification threshold, and determine whether the public key certificate has passed the verification based on the comparison result. If the first verification value is equal to the preset first verification threshold, it is determined that the public key certificate has passed the verification; if the first verification value is equal to the preset first verification threshold, it is determined that the public key certificate has failed the verification. Optionally, the preset first verification threshold can be determined by user-defined or based on historical experience, which is not limited in the embodiments of the present application.

[0064] In an embodiment of the present application, the firmware file to be refreshed is a signed BIOS file, that is, a bin file generated by compiling the BIOS code, namely, a BIOS ROM file, wherein the BIOS ROM file may include a public key certificate, a BIOS public key, a signature value of the BIOS public key, a signature algorithm, a hash value, a hash algorithm, manufacturer information, the validity period of the certificate issuance, and the like.

[0065] It should be noted here that the firmware file to be refreshed can be generated through the BIOS manufacturer's server, and the generation process does not require the participation of developers. Therefore, if the firmware file to be refreshed includes a public key certificate, the developer's contact with the public key certificate can be reduced during the generation process of the firmware file to be refreshed, thereby reducing the possibility of each certificate being tampered with or lost.

[0066] Optionally, the BIOS manufacturer server can generate a BIOS public key and private key through a signing tool, and send the BIOS public key and BIOS user information to the CPU manufacturer server. The CPU manufacturer server performs identity authentication through the BIOS user information to determine whether the BIOS manufacturer server is in its own supplier list. If so, it is determined that the identity verification has passed. The CPU manufacturer server further generates a public key certificate based on the BIOS public key, and then sends the public key certificate to the corresponding BIOS manufacturer server based on the BIOS user information.

[0067] Correspondingly, the BIOS manufacturer server can read the compiled BIOS code file through the signature tool, parse the compiled BIOS code file to obtain the key information of the BIOS in the compiled BIOS code file, and then calculate the hash value of the compiled BIOS code file based on the key information of the BIOS, and then sign the hash value of the compiled BIOS code file through the private key to obtain the signature value, and then write the signature value and the public key certificate into the compiled BIOS code file to obtain the signed BIOS file. Optionally, the compiled BIOS code file can be understood as the BIOS file to be signed.

[0068] S120: If the legality check passes, the signature value of the firmware file to be refreshed is verified using the public key in the public key certificate.

[0069] When it is determined that the public key certificate has passed the verification, the computer system may use an information verification algorithm to verify the signature value of the firmware file to be refreshed through the public key in the public key certificate.

[0070] In addition, the computer system can also process the signature value in the firmware file to be refreshed and the public key in the public key certificate to obtain a second verification value, and then compare the second verification value with a preset second verification threshold, and determine whether the signature value of the firmware file to be refreshed has passed the verification based on the comparison result.

[0071] Among them, if the second check value is equal to the preset second check threshold, it is determined that the signature value check of the firmware file to be refreshed has passed; if the second check value is not equal to the preset second check threshold, it is determined that the signature value of the firmware file to be refreshed has not passed. Optionally, the preset second check threshold can also be determined by user-defined, or can be determined based on historical experience values. In the embodiment of the present application, the preset first check threshold and the preset second check threshold can be equal or unequal, and the embodiment of the present application does not limit this.

[0072] S130: If the signature value verification passes, it is determined that the verification of the firmware file to be updated passes.

[0073] In the embodiment of the present application, if it is determined that the signature value of the firmware file to be refreshed has passed the verification, it can be determined that the verification of the firmware file to be refreshed has passed.

[0074] The technical solution in the embodiment of the present application performs a legitimacy check on the public key certificate according to the trusted root information of the processor. When the legitimacy check passes, the signature value of the firmware file to be refreshed is verified by the public key in the public key certificate. When the signature value check passes, it is determined that the verification of the firmware file to be refreshed passes. The method performs a security check on the firmware file to be refreshed by solidifying the trusted root information of the processor in the area that is not easily tampered with or lost. This method can not only improve the accuracy of the security check of the firmware file to be refreshed, but also provide a secure refresh file for the firmware secure refresh to ensure the security of the firmware refresh process.

[0075] The following is an explanation of the process of verifying the legitimacy of the public key certificate based on the trusted root information of the processor. Figure 4 As shown, the steps in S110 above can be implemented in the following manner:

[0076] S111. Verify the public key certificate using the trusted root information of the processor, the public key in the public key certificate, and the signature value in the public key certificate.

[0077] In an embodiment of the present application, the above-mentioned public key certificate can be understood as a BIOS public key certificate, which may include information such as the BIOS public key, public key length, signature algorithm, hash algorithm and signature value; in addition, the trusted root information of the above-mentioned processor can also be understood as the root private key information of the processor.

[0078] In practical applications, the computer system can use the root private key information of the processor to use the SM2 digital signature algorithm to sign the public key in the public key certificate to generate the signature value in the public key certificate. The signature algorithm here corresponds to the signature algorithm in the public key certificate. Among them, the signature value in the above public key certificate can be understood as an encrypted signature value.

[0079] Specifically, the computer system can pre-train an algorithm model, and then input the trusted root information, the public key in the public key certificate, and the signature value in the public key certificate into the algorithm model to verify the public key certificate. The algorithm model outputs the verification result of the public key certificate.

[0080] Alternatively, the computer system may verify the public key certificate using the SM2 digital signature algorithm through the trusted root information of the processor, the public key in the public key certificate, and the signature value in the public key certificate.

[0081] In addition, the computer system may also verify the public key certificate using the SM2 digital signature algorithm based on the trusted root information, the public key in the public key certificate, and the signature value in the public key certificate.

[0082] S112: Verify the validity of the public key certificate according to the validity period in the public key certificate.

[0083] Among them, the computer system can compare the validity time in the public key certificate with the current time. If the current time does not exceed the validity time in the public key certificate, it is determined that the validity check of the public key certificate has passed; otherwise, it is determined that the validity check of the public key certificate has failed.

[0084] S113. Verify the user information in the public key certificate.

[0085] Specifically, the computer system may use an information verification algorithm to verify the user information in the public key certificate. Optionally, the user information in the public key certificate may include the identification information (ie, ID) of the manufacturer of the public key certificate and the version number of the key, etc.

[0086] In the embodiment of the present application, the computer system compares the user information in the public key certificate with the user information on the programming storage module in the processor. If the two are equal, it is determined that the user information in the public key certificate has passed the verification. In actual applications, each type of information in the user information is verified one by one. If each information in the user information passes the verification, it is determined that the user information in the public key certificate has passed the verification.

[0087] Optionally, the programming storage module (i.e., FUSE) can be understood as a one-time fuse hardware with a relatively small memory inside the processor, wherein the information written into FUSE cannot be tampered with. FUSE can store information such as the manufacturer's identification information (i.e., ID) of the public key certificate and the version number of the key.

[0088] It should be noted that the execution order of the above steps S111, S112 and S113 can be interchanged, and this is not limited in the embodiment of the present application. Figure 4 The sequence of S111, S112 and S113 is used as an example.

[0089] The technical solution in the embodiment of the present application verifies the public key certificate through the trusted root information of the processor, the public key in the public key certificate and the signature value in the public key certificate, and verifies the validity of the public key certificate according to the valid time in the public key certificate, and verifies the user information in the public key certificate according to the trusted root information of the processor; the method can verify the legitimacy of the public key certificate through the information in the solidified area in the hardware layer that is not easy to be tampered with or lost, which can improve the accuracy of the legitimacy verification of the public key certificate. At the same time, the method can comprehensively verify the legitimacy of the public key certificate from three aspects: the public key certificate, the validity of the public key certificate and the user information in the public key certificate, which can greatly improve the accuracy of the legitimacy verification of the public key certificate.

[0090] In some scenarios, an asymmetric encryption algorithm may be used to verify the public key certificate. The following describes the process of verifying the public key certificate. Figure 5 As shown, the step of verifying the public key certificate by using the trusted root information of the processor, the public key in the public key certificate, and the signature value in the public key certificate in the above S111 may include:

[0091] S1111. Decrypt the signature value in the public key certificate according to the trusted root information of the processor to obtain a first hash value.

[0092] In an embodiment of the present application, the computer system uses an asymmetric public key decryption algorithm to decrypt the signature value in the public key certificate according to the trusted root information of the processor to obtain a first hash value.

[0093] S1112. Perform hash processing on the public key value in the public key certificate according to the hash algorithm in the public key certificate to obtain a second hash value.

[0094] Among them, the hash algorithm in the public key certificate can be obtained, and the public key value in the public key certificate is hashed according to the hash algorithm in the public key certificate to obtain a second hash value. Optionally, the above hash algorithm can be an irreversible encryption algorithm (such as MD5 algorithm), a data verification algorithm (such as CRC algorithm) or a secure hash algorithm (such as SHA-1 algorithm, international SHA1 algorithm, SHA256 algorithm, SHA284 algorithm, SHA512 algorithm, national secret SM3 algorithm) and the like.

[0095] S1113. If the first hash value is equal to the second hash value, the signature value in the public key certificate is verified.

[0096] Based on the first hash value and the second hash value obtained in the previous steps, it can be determined whether the first hash value is equal to the second hash value. If the first hash value is equal to the second hash value, it is determined that the signature value in the public key certificate has passed the verification.

[0097] The technical solution in the embodiment of the present application can decrypt the signature value in the public key certificate according to the trusted root information of the processor to obtain a first hash value, and hash the public key value in the public key certificate according to the hash algorithm in the public key certificate to obtain a second hash value. When the first hash value is equal to the second hash value, the signature value in the public key certificate passes the verification; the above method can perform security verification on the public key certificate, so as to provide an effective basis for completing accurate security verification of the firmware file to be refreshed, thereby further improving the security of firmware refreshing.

[0098] In some scenarios, in order to greatly improve the security of the computer system after the firmware is refreshed, it is necessary not only to ensure the firmware is refreshed securely, but also to ensure the security of the computer system before the firmware is refreshed securely. Based on this, the startup information of the computer system can be security-verified. After the startup information is verified, it can be ensured that the computer system has completed a secure startup. In one embodiment, before executing the steps in S100 above, Figure 6 As shown, the above method may further include the following steps:

[0099] S300: Perform security check on startup information of the computer system.

[0100] Specifically, the processor in the computer system can use an information verification algorithm to perform security verification on the startup information of the computer system. Optionally, the startup information of the computer system can be initialization parameter configuration information of the computer system, underlying hardware startup information and / or normal operation configuration information of the computer system, etc.

[0101] S400: If the verification of the startup information passes, the computer system is completely started according to the startup information, and a step of verifying the firmware file to be refreshed according to the information in the solidified area of ​​the computer system is executed.

[0102] In the embodiment of the present application, if the startup information of the computer system passes the verification, the computer system is further started up through the startup information, and then the step in the above S100 is executed.

[0103] The technical solution in the embodiment of the present application performs a security check on the startup information of the computer system. When the startup information is checked, the computer system is completely started through the startup information, and the step of checking the firmware file to be refreshed is performed according to the information in the solidified area of ​​the computer system; the method can perform a security check on the startup information of the computer system, complete the safe startup of the computer system according to the startup information that passes the security check, and then, on the basis that the computer system can run safely, the firmware is securely refreshed. This process can greatly improve the security of the computer system after the firmware is securely refreshed; in addition, the above method does not require human participation, which can not only improve the accuracy of information verification, but also save verification costs, thereby reducing the cost of firmware security refresh and improving the accuracy of firmware security refresh.

[0104] The process of performing security verification on the startup information of the computer system is described below. In one embodiment, the step in S300 may include: verifying information in the firmware layer and the system layer of the computer system through information in the solidified area of ​​the computer system.

[0105] Specifically, when the hardware layer of the computer system is started, the processor in the computer system can first obtain the information in the solidified area in the hardware layer, and verify the information in the firmware layer and system layer of the computer system through the information in the solidified area. When the information in the firmware layer and system layer of the computer system is verified, it is determined that the startup information verification of the computer system is completed.

[0106] Among them, the computer system may include a hardware layer, a firmware layer, and a system layer. Only when the hardware layer, the firmware layer, and the system layer are securely started, can the computer system complete a secure startup. Naturally, in order to achieve a secure startup of the computer system, it is necessary to perform a security check on the information in the hardware layer, the firmware layer, and the system layer. After the check is passed, the secure startup of the computer system is completed through the information in the hardware layer, the firmware layer, and the system layer.

[0107] It should be noted here that the hardware layer of the computer system may include multiple hardware structures, such as an arithmetic unit, a controller, a memory, a motherboard, an input device, and an output device. However, the core hardware structure of the hardware layer in the computer system is the processor. Therefore, in the embodiment of the present application, the hardware layer startup of the computer system can be understood as the startup of the processor of the computer system.

[0108] Optionally, the information in the hardware layer of the computer system can be the built-in code of the processor in the hardware layer; since the built-in code written into the solidified area is usually not easy to be tampered with or lost, there is no need to perform security verification on the built-in code of the processor. After the computer system is powered on, the built-in code of the processor can be automatically run to enable the hardware layer of the computer system to start safely. Optionally, the built-in code of the processor can perform operations such as CPU memory initialization, user registration information filling, and pin parameter initialization of chips in the computer system.

[0109] In practical applications, in order to strengthen the secure startup of computer systems and effectively prevent the operation of unauthorized or potentially unsafe information in the firmware and system layers, when the hardware layer of the computer system is securely started, the processor in the computer system can obtain the information in its own solidified area, and perform security checks on the information in the firmware and system layers of the computer system based on the information in the solidified area, in preparation for the secure startup of the computer system.

[0110] In one embodiment, a method for performing security verification on information in the firmware layer and system layer of a computer system based on information in a solidified area may be to pre-train an algorithm model, and then input the information in the solidified area, the firmware layer and system layer of the computer system into the algorithm model, and the algorithm model outputs the verification result of the information in the firmware layer and system layer of the computer system.

[0111] In another embodiment, the method for performing security verification on the information in the firmware layer and system layer of the computer system based on the information in the solidified area can also be to decrypt the information in the firmware layer and system layer of the computer system based on the information in the solidified area, and compare the decryption processing result with the preset decryption value. If the two are equal, it is determined that the verification has passed; if the two are not equal, it is determined that the verification has failed.

[0112] In practical applications, when the information in the firmware layer and the system layer of the computer system are verified, it can be determined that the startup information verification of the computer system is completed.

[0113] The technical solution in the embodiment of the present application verifies the information in the firmware layer and the system layer of the computer system through the information in the solidified area of ​​the computer system; the method can verify the information in the firmware layer and the system layer of the computer system through the information in the solidified area in the hardware layer that is not easy to be tampered with or lost, thereby improving the accuracy of the security information verification of the computer system; at the same time, the above method can realize the security information verification of the computer system through the stored solidified information, without the need for complex algorithms, making the verification process relatively simple; in addition, the method can perform a security check on the startup process of the computer system before performing a security check on the firmware file to be refreshed, thereby establishing a complete trust chain for the firmware refresh process, and ultimately improving the security of the computer system after the firmware is securely refreshed.

[0114] In one embodiment, the present application also provides a firmware refresh method, which includes the following process:

[0115] (1) Verify the information in the firmware layer and system layer of the computer system through the information in the solidified area of ​​the computer system.

[0116] (2) If the startup information passes the verification, the computer system is completely started through the startup information.

[0117] (3) After responding to the firmware refresh instruction, the public key certificate is verified for legitimacy based on the trusted root information of the processor.

[0118] The step of verifying the legitimacy of the public key certificate according to the trusted root information of the processor in the above step (3) may include:

[0119] (31) Decrypt the signature value in the public key certificate according to the trusted root information of the processor to obtain a first hash value.

[0120] (32) According to the hash algorithm in the public key certificate, the public key value in the public key certificate is hashed to obtain a second hash value.

[0121] (33) If the first hash value is equal to the second hash value, the signature value in the public key certificate is verified. And,

[0122] (34) Verify the validity of the public key certificate based on the validity period in the public key certificate. And,

[0123] (35) Verify the user information in the public key certificate.

[0124] (4) If the legitimacy check passes, the signature value of the firmware file to be refreshed is verified using the public key in the public key certificate.

[0125] (5) If the signature value verification passes, it is determined that the verification of the firmware file to be updated passes.

[0126] (6) If the firmware file to be updated passes the verification, the original firmware file of the computer system is updated using the firmware file to be updated.

[0127] The execution process of the above (1) to (6) can be specifically referred to the description of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here.

[0128] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0129] Based on the same inventive concept, the embodiment of the present application also provides a firmware refresh device for implementing the firmware refresh method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more firmware refresh device embodiments provided below can refer to the limitations on the firmware refresh method above, and will not be repeated here.

[0130] In one embodiment, Figure 7 FIG. 1 is a schematic diagram of the structure of a firmware refresh device in one embodiment of the present application. Figure 7 As shown, the firmware refresh device of the embodiment of the present application may include: a verification module 11 and a refresh module 12, wherein:

[0131] A verification module 11 is used to verify the public key certificate and file information in the firmware file to be refreshed according to the information in the solidified area of ​​the computer system after responding to the firmware refresh instruction;

[0132] The refreshing module 12 is used to refresh the original firmware file of the computer system by using the firmware file to be refreshed when the verification result of the verification module is that the verification is passed.

[0133] The firmware refresh device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned firmware refresh method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0134] In one embodiment, the information in the solidification area includes the trusted root information of the processor, and the file information includes the signature value of the firmware file to be refreshed; the verification module 11 includes: a legality verification unit and a verification result determination unit, wherein:

[0135] A legitimacy verification unit, used to verify the legitimacy of the public key certificate according to the trusted root information of the processor;

[0136] The signature value verification unit is used to verify the signature value of the firmware file to be refreshed by using the public key in the public key certificate when the result of the legality verification unit is verification passed;

[0137] The verification result determination unit is used to determine whether the verification of the firmware file to be refreshed has passed when the result of the signature value verification unit is that the verification has passed.

[0138] The firmware refresh device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned firmware refresh method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0139] In one embodiment, the legitimacy checking unit includes: a first check subunit, a second check subunit and a third check subunit, wherein:

[0140] A first verification subunit is used to verify the public key certificate through the trusted root information of the processor, the public key in the public key certificate and the signature value in the public key certificate; and

[0141] A second verification subunit is used to verify the validity of the public key certificate according to the validity period in the public key certificate; and

[0142] The third verification subunit is used to verify the user information in the public key certificate.

[0143] The firmware refresh device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned firmware refresh method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0144] In one embodiment, the first syndrome unit is specifically used for:

[0145] Decrypting the signature value in the public key certificate according to the trusted root information of the processor to obtain a first hash value;

[0146] Performing hash processing on the public key value in the public key certificate according to the hash algorithm in the public key certificate to obtain a second hash value;

[0147] If the first hash value is equal to the second hash value, the signature value in the public key certificate is verified.

[0148] The firmware refresh device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned firmware refresh method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0149] In one embodiment, the firmware refresh device further includes: a startup information verification module and a determination execution unit, wherein:

[0150] A startup information verification module is used to perform security verification on the startup information of the computer system;

[0151] The execution unit is determined to start the computer system completely through the startup information when the verification result of the startup information verification module is verification passed, and to execute the step of verifying the firmware file to be refreshed according to the information in the solidified area of ​​the computer system.

[0152] The firmware refresh device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned firmware refresh method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0153] In one embodiment, the startup information verification module is specifically used to:

[0154] The information in the firmware layer and the system layer of the computer system is verified by using the information in the solidified area of ​​the computer system.

[0155] The firmware refresh device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned firmware refresh method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0156] For the specific definition of the firmware refresh device, please refer to the definition of the firmware refresh method above, which will not be repeated here. Each module in the above-mentioned firmware refresh device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer system in the form of hardware, or can be stored in the memory of the computer system in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0157] In one embodiment, a computer system is also provided. The computer system may be a server, and its internal structure diagram may be as shown in FIG. Figure 1As shown. The computer system includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer system is used to provide processing capabilities. The memory of the computer system includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer system is used to store the trusted root information of the processor. The network interface of the computer system is used to communicate with an external endpoint through a network connection. When the computer program is executed by the processor, a firmware refresh method is implemented.

[0158] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer system to which the scheme of the present application is applied. The specific computer system may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0159] In one embodiment, a computer system is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the technical solution in the above-mentioned firmware refresh method embodiment of the present application is implemented. The implementation principle and technical effect are similar and will not be repeated here.

[0160] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the technical solution of the above-mentioned firmware refresh method of the present application is implemented. The implementation principle and technical effect are similar and will not be repeated here.

[0161] In one embodiment, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the technical solution of the above-mentioned firmware refresh method of the present application. Its implementation principle and technical effect are similar and will not be repeated here.

[0162] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0163] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0164] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A firmware refresh method, characterized in that: The method comprises: After responding to the firmware refresh instruction, verifying the public key certificate and file information in the firmware file to be refreshed according to the information in the hardened area of ​​the computer system; If the firmware file to be updated passes the verification, the original firmware file of the computer system is updated using the firmware file to be updated.

2. The method according to claim 1, characterized in that The information in the solidified area includes the trusted root information of the processor, and the file information includes the signature value of the firmware file to be refreshed; and verifying the public key certificate and the file information in the firmware file to be refreshed according to the information in the solidified area in the computer system includes: Performing a legitimacy check on the public key certificate according to the trusted root information of the processor; If the legality check passes, the signature value of the firmware file to be updated is verified using the public key in the public key certificate; If the signature value verification passes, it is determined that the verification of the firmware file to be updated passes.

3. The method according to claim 2, characterized in that The step of verifying the legitimacy of the public key certificate according to the trusted root information of the processor includes: Verifying the public key certificate by using the trusted root information of the processor, the public key in the public key certificate, and the signature value in the public key certificate; and, Verifying the validity of the public key certificate according to the validity period in the public key certificate; and The user information in the public key certificate is verified.

4. The method according to claim 3, characterized in that The verifying the public key certificate by using the trusted root information of the processor, the public key in the public key certificate, and the signature value in the public key certificate includes: Decrypting the signature value in the public key certificate according to the trusted root information of the processor to obtain a first hash value; Performing hash processing on the public key value in the public key certificate according to the hash algorithm in the public key certificate to obtain a second hash value; If the first hash value is equal to the second hash value, the signature value in the public key certificate is verified successfully.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Performing security verification on startup information of the computer system; If the verification of the startup information passes, the computer system is completely started according to the startup information, and the step of verifying the firmware file to be refreshed according to the information in the solidified area of ​​the computer system is performed.

6. The method according to claim 5, characterized in that The performing security verification on the startup information of the computer system includes: The information in the firmware layer and the system layer of the computer system is verified by using the information in the solidified area of ​​the computer system.

7. A firmware updating device, characterized in that: The device comprises: A verification module, for verifying the public key certificate and file information in the firmware file to be refreshed according to the information in the solidified area of ​​the computer system after responding to the firmware refresh instruction; The refresh module is used to refresh the original firmware file of the computer system through the firmware file to be refreshed when the verification result of the verification module is verification passed.

8. A computer system comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.