Method for securely updating software
Patent Information
- Application Number
- CN202210517318.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-02-11
- Filing Date
- 2022-05-12
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2042-05-12
AI Technical Summary
现有技术在更新计算系统的固件时,存在恶意用户可能解编译固件并获取源代码的安全风险,导致更新过程不安全且耗时。
By generating an encrypted version of the software and a decryption key, the software is encrypted using the first decryption key and transmitted to the computing system, ensuring that only the designated user can decrypt it and preventing unauthorized access.
It enables secure firmware updates on computing systems, prevents unauthorized users from obtaining source code, and improves the security and efficiency of the update process.
Smart Images

Figure CN116628644B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for updating software, and more particularly to a method for securely updating firmware installed on a computing system. Background Technology
[0002] Computing systems (e.g., servers) typically require software updates to ensure continued reliability during operation. For example, computing systems typically include controllers with firmware (e.g., Basic Input / Output System, BIOS) or a Unified Extensible Firmware Interface (UEFI) (e.g., Baseboard Management Controller, BMC) that control the basic functions of the computing system. If firmware updates are needed, vendors can host a software package on a publicly accessible website, making it available for users of the computer system to download and update the firmware. The software package typically includes the firmware update version, along with any other combination of software and / or files required to install the firmware update. However, if the software package is publicly available, malicious users (e.g., hackers) could potentially decompile the firmware and access the source code, which is generally undesirable. However, current technologies for securely providing users with access to firmware updates (e.g., sending emails, providing specific download links, etc.) are often cumbersome and time-consuming. Therefore, new methods are needed to securely update software on computing systems. Summary of the Invention
[0003] The terms "implementation," "configuration," and similar terms (e.g., implementation, configuration, aspect, example, and option) are intended to refer generally to all subject matter of this disclosure and the following claims. Discussions containing these terms should not be construed as limiting the subject matter described in this disclosure or limiting the meaning or scope of the following claims. The embodiments of this disclosure covered by this disclosure are defined by the following claims, and not by this inventive summary. This inventive summary is an advanced overview of various aspects of this disclosure and introduces some concepts further described in the following embodiments. This inventive summary is not intended to identify key or essential features of the claimed target. Nor is this inventive summary intended solely for determining the scope of the claimed target. The target should be understood by referring to appropriate portions of the entire specification of this disclosure, any or all of the drawings, and the respective claims.
[0004] According to a specific aspect of this disclosure, a method for updating software includes transmitting a first version of the software and a first decryption key to a computing system. The method also includes generating a second version of the software and a second decryption key. The method further includes encrypting the second version of the software and the second decryption key. The encrypted second version of the software is used to be decrypted using the first decryption key instead of the second decryption key. The method also includes transmitting the encrypted second version of the software and the encrypted second decryption key to the computing system.
[0005] In some implementations, the method further includes generating a third version of the software and a third decryption key. The method also includes encrypting the third version of the software and the third decryption key. The third version of the software is used to be decrypted using a second decryption key instead of the first or third decryption key. The method further includes transmitting the encrypted third version of the software and the encrypted third decryption key to a computing system.
[0006] In some implementations, the encrypted version of the first decryption key and the encrypted second decryption key are transmitted to the computing system along with the encrypted third version of the software and the encrypted third decryption key.
[0007] In some implementations, the method further includes: after transmitting the encrypted third version of the software, retransmitting the encrypted second version of the software to the computing system. The encrypted second version of the software is used to decrypt using the previously transmitted first decryption key.
[0008] In some implementations, the first version of the software is the initial version of the software installed on the computing system.
[0009] In some implementations, the first decryption key is not encrypted when it is transmitted to the computing system.
[0010] In some implementations, the first version of the software and the first decryption key are encrypted when transmitted to the computing system.
[0011] In some implementations, the encrypted first version of the software is used to decrypt it using a prior decryption key instead of the first decryption key. The prior decryption key is transmitted to the computing system before the encrypted first version of the software and the encrypted first decryption key are transmitted.
[0012] In some implementations, the step of generating a second version of the software and a second decryption key includes generating a software package having a second version of the software and a second decryption key.
[0013] In some implementations, the action of a second version of the encrypted software and a second decryption key includes encrypting the software suite. The encrypted software suite is then used to decrypt using the first decryption key instead of the second decryption key.
[0014] In some implementations, the act of transmitting an encrypted second version of the software and an encrypted second decryption key to the computing system includes transmitting the encrypted software suite.
[0015] In some implementations, the action of generating a software suite containing a second version of the software and a second decryption key includes generating source code for the second version of the software. The action of generating the software suite also includes packaging the second decryption key into the source code of the second version of the software to form modified source code. The action of generating the software suite further includes compiling the modified source code to form a software suite having the second version of the software and the second decryption key.
[0016] In some implementations, the software is firmware of an electronic device or electronic system.
[0017] In some implementations, this firmware is the Basic Input / Output System (BIOS) of the computing system or the Unified Extensible Firmware Interface (UEFI) of the computing system.
[0018] In some implementations, a second version of the software and a second decryption key are encrypted using a hash table.
[0019] In some implementations, a second version of the software is used to install on a computing system, replacing the first version of the software.
[0020] In some implementations, the software is the firmware of the computing system. When the computing system is in system management mode, a second version of the software is used to decrypt the computing system and install it on the computing system.
[0021] In some implementations, a second version of the software is used to trigger a system management interrupt on the computing system when the encrypted second version of the software is transmitted to the computing system.
[0022] In some implementations, a system management interrupt is used to put the computing system into system management mode and use the first decryption key to decrypt the second version of the software.
[0023] In some implementations, the encrypted second version of the software is hosted on a publicly available network location.
[0024] According to some aspects of this disclosure, a method for updating software includes initially receiving a first version of the software and a decryption key. The method also includes installing the first version of the software on a computing system. The method further includes, after the foregoing steps, receiving an encrypted software suite having a second version of the software. The method also includes decrypting the encrypted software suite using the previously received decryption key. The method further includes installing the second version of the software on the computing system to replace the first version of the software.
[0025] The foregoing summary is not intended to represent every embodiment or aspect of this disclosure. Rather, it provides only examples of some novel aspects and features set forth in this disclosure. The foregoing features and advantages, as well as others, will become apparent from the following detailed description of representative embodiments and modes of implementation of the invention when taken in conjunction with the accompanying drawings and the appended claims. Other aspects of this disclosure will be apparent to those skilled in the art from the detailed description of the various embodiments with reference to the drawings and the brief description provided below.
[0026] To provide a better understanding of the above and other aspects of the present invention, specific embodiments are described below in conjunction with the accompanying drawings. Attached Figure Description
[0027] This disclosure, its advantages, and the accompanying drawings will be readily understood from the following description of representative embodiments taken in conjunction with the accompanying drawings. These drawings depict only representative embodiments and should not be considered as limiting the scope of the various embodiments or the claims.
[0028] Figure 1 This is a flowchart of a method for providing an encrypted software suite based on some aspects of this disclosure.
[0029] Figure 2 This is based on the use of certain aspects of this disclosure. Figure 1 A flowchart illustrating a method for updating software on a target device using an encrypted software suite.
[0030] Figure 3 The illustrations illustrate some aspects of the use of this disclosure. Figure 1 The encrypted software suite is used to install software updates for two cycles of the computing system.
[0031] Figure 4This is a flowchart of a method for generating an encrypted software suite based on some aspects of this disclosure.
[0032] Figure 5 This is a flowchart illustrating a method for updating software using an encrypted software suite, based on some aspects of this disclosure.
[0033] Figure label:
[0034] 100, 200, 300: Flowchart
[0035] 102: Source Code
[0036] 104A, PREV_KEY: The decryption key for the second version
[0037] 104B,CURR_KEY: The decryption key for version 3
[0038] 104C, NEXT_KEY: The decryption key for version 4
[0039] 104D: The decryption key for the first version
[0040] 106: Revised source code
[0041] 108,202: Software Suite
[0042] 110,306,NEXT_encrypted_BIOS: Encrypted software suite
[0043] 204,310: Square
[0044] 302A: Current version's runtime cycle
[0045] 302B: The next version's runtime cycle
[0046] 304A, PREV_KEY: Decryption key for previous versions
[0047] 304B,CURR_KEY: The decryption key for the current version.
[0048] 304C, NEXT_KEY: The decryption key for the first next version.
[0049] 304D,NEXT_NEXT_KEY: The decryption key for the second version.
[0050] 308, NEXT_BIOS: Unencrypted software suite
[0051] 400, 500: Method
[0052] 402,404,406,408,502,504,506,508,510: Steps Detailed Implementation
[0053] Computing systems (e.g., servers) utilize firmware to control basic operations. Computing systems can have different types of firmware, including Basic Input / Output System (BIOS), Unified Extensible Firmware Interface (UEFI) (sometimes called UEFI BIOS), and other types. This disclosure provides a method for securely updating firmware installed on a computing system without allowing unintended users to inadvertently access an unencrypted version of the firmware. This method typically involves encrypting a software package containing the firmware update version (and any other software and / or files required to update the firmware) and sending the encrypted package to the intended user (e.g., to the intended user's computing device). The user already possesses a decryption key, which can be used to decrypt the encrypted software package. Generally, the decryption key is sent in advance as part of a previous software package. This previous software package will contain the firmware version currently installed on the computing system. Therefore, the decryption key previously sent to the user can be used to decrypt the subsequent software package.
[0054] The accompanying drawings illustrate various embodiments, wherein the same element symbols used throughout the drawings are used to denote similar or identical elements. The drawings are not necessarily drawn to scale and are for illustrative purposes only. While those skilled in the art will recognize that these aspects and features can be implemented using other relationships or methods without one or more specific details, this disclosure sets forth numerous specific details, relationships, and methods to provide a full understanding of some aspects and features of this disclosure. In some cases, well-known structures or operations are not shown in detail for illustrative purposes. Because some actions can occur in different orders and / or simultaneously with other actions or events, the various embodiments disclosed herein are not necessarily limited to the order of the actions or events shown. Furthermore, not all actions or events shown require the implementation of some aspects and features of this disclosure.
[0055] Unless expressly denied, for the purposes of this detailed description, and where appropriate, the singular includes the plural, and vice versa. The word “including” means “including, but not limited to”. Furthermore, the words “approximately,” “almost,” “substantially,” “near,” and similar terms used herein may mean “located in,” “close to,” or “approaching,” or “within 3 to 5 percent,” or “within acceptable manufacturing tolerances,” or any logical combination thereof. Similarly, the terms “vertical” or “horizontal” are intended to additionally include “within 3 to 5 percent” in the vertical or horizontal direction, respectively. Additionally, directional terms such as “top,” “bottom,” “left,” “right,” “above,” and “below” are intended to relate to the equivalent directions depicted in the referenced figures; the context should be understood from the referenced object or element, such as from its usual location or as described in this disclosure.
[0056] Figure 1 A flowchart 100 illustrates a method for providing a user-downloadable secure software package. This disclosure generally describes and illustrates a method for updating the BIOS of a computing system. However, those skilled in the art will understand that the principles disclosed herein can also be used to update other types of firmware (e.g., UEFI) used with computing systems, as well as other types of software besides firmware. In the example shown in flowchart 100, a second version of the BIOS is installed on the computing system, and a third version of the BIOS is ready for secure download to the user. This method first generates source code 102 for the third version of the BIOS, denoted as "BIOS Source Code Ver. 3". Source code 102 can typically be any suitable human-readable programming language, such as C, C++, Java, Python, etc.
[0057] Next, decryption keys for different versions of the BIOS are generated. In the example provided, the decryption keys include a second version decryption key 104A (also denoted as PREV_KEY), a third version decryption key 104B (also denoted as CURR_KEY), and a fourth version decryption key 104C (also denoted as NEXT_KEY). Users of the computing system can use decryption keys 104A-104C to decrypt software packages, including updated versions of the BIOS. As described in more detail in this disclosure, a new decryption key is generated for each new version of the BIOS. Generally, when generating decryption keys, they are checked against previous decryption keys to ensure they are not too similar. In some implementations, once decryption keys 104A-104C are transmitted to the computing system, they are stored on the computing system, and the computing system automatically uses decryption keys 104A-104C to decrypt software packages received by the computing system.
[0058] The second version of the decryption key 104A can be used to decrypt previous versions of the BIOS that contain a BIOS version relative to source code 102 (e.g., in...). Figure 1 The software suite (e.g., the second version of the BIOS). The third version's decryption key 104B can be used to decrypt the BIOS version containing source code 102 (e.g., in...). Figure 1 The example BIOS version 3 software suite. The fourth version decryption key 104C can be used to decrypt future versions of the BIOS (e.g., in...) containing a BIOS version relative to source code 102. Figure 1 The example BIOS (a future fourth version) software suite.
[0059] Next, decryption keys 104A-104C can be packaged into source code 102 to form modified source code 106. For example... Figure 1As shown, decryption keys 104A-104C (e.g., decryption keys for previous versions of the BIOS, the current version of the BIOS, and the next version of the BIOS) are packaged into the source code 102 of a third version of the BIOS (e.g., the BIOS version that the computing system will update to). The result is that the revised source code 106 includes the source code 102 of the next version of the BIOS and decryption keys 104A-104C, which can be used to decrypt various software packages containing different versions of the BIOS. Generally, decryption keys 104A-104C are packaged into source code 102 such that decryption keys 104A-104C are built into the next version of the BIOS itself. As described in more detail in this disclosure, when a BIOS version with built-in decryption keys is installed on a computing system, the BIOS version (at installation time) can manage the decryption keys and automatically use them to decrypt encrypted software packages containing subsequent versions of the BIOS.
[0060] Then, the modified source code 106 is compiled to form software suite 108. Modified source code 106 can be compiled using any suitable compiler, which can be used to compile the source code of the programming language used and written in the modified source code 106 (and source code 102). As described above, decryption keys 104A-104C are packaged into source code 102 such that when the modified source code 106 is compiled, software suite 108 forms a BIOS update version containing decryption keys 104A-104C, which can be installed on a computing system.
[0061] Finally, software suite 108 is encrypted to form encrypted software suite 110. Encrypted software suite 110 includes a compiled version of modified source code 106, which includes source code 102 for the BIOS update and decryption keys 104A-104C. Any suitable encryption technology can be used to encrypt software suite 108, allowing the corresponding decryption keys to be packaged into the source code and compiled and encrypted. Other encryption technologies may also be used. Once software suite 108 is encrypted to form encrypted software suite 110, encrypted software suite 110 can be delivered to the user (e.g., to a computing system intended for installing a BIOS update).
[0062] In some implementations, a hash table is used to encrypt software suite 108 to form encrypted software suite 110. A hash table is a table that can be used to replace each group of 8 bits (e.g., each byte) of software suite 108 with an 8-bit value (e.g., a 1-byte value) to form encrypted software suite 110. A hash table typically includes 256 distinct positions numbered from 0 to 255. Each position contains a unique two-digit hexadecimal value ranging from 00 to FF. A single hexadecimal value (ranging from 0 to F, where AF follows 0-9) is equivalent to a 4-bit binary value, so the two-digit hexadecimal value in each position of the table represents an 8-bit binary value. Hexadecimal value 00 represents binary 00000000 and decimal 0 (e.g., base 10). Hexadecimal value FF represents binary 11111111 and decimal 255. Because the range of two hexadecimal values is from 0 to 255 in decimal, hexadecimal and / or binary values can also be used to represent positions within the hash table itself. Therefore, position 0 in the hash table can also be represented as position 00 (hexadecimal) and position 00000000 (binary). Similarly, position 255 in the hash table can also be represented as position FF (hexadecimal) and position 11111111 (binary). Generally, any hash table used for decryption based on this disclosure will have a unique 2-digit hexadecimal value at each position. And since there are 256 possible 2-digit hexadecimal values and 256 positions in the hash table, each possible 2-digit hexadecimal value will be located in one of the positions in the hash table.
[0063] To encrypt software suite 108, each 8-bit group of software suite 108 is first located in a hash table. Then, the 8 bits of software suite 108 are replaced with the 8 bits at their positions within the hash table. Because every possible two-digit hexadecimal value is located within an entry in the hash table, it is impossible for a group of 8 bits in software suite 108 to fail to locate and replace. For example, a group of 8 bits in software suite 108 could be the binary 10001011, which is equivalent to hexadecimal 8B. In the example hash table, the value 8B is at position 238. Decimal 238 is equivalent to hexadecimal EE, and binary 11101110. Therefore, the 8-bit value 10001011 in software suite 108 is replaced with the adjusted 8-bit value 11101110 in software suite 110.
[0064] To decrypt the encrypted software suite 110, the hash table can be used in reverse. An 8-bit set in the encrypted software suite 110 is replaced with an 8-bit value (e.g., a 2-digit hexadecimal value) located in an entry in the hash table corresponding to the 8-bit value used to encrypt the software suite. Therefore, if an 8-bit set in the encrypted software suite 110 is 11011010 (equivalent to hexadecimal DA and decimal 218), these 8 bits will be replaced with the 8-bit value (e.g., a 2-digit hexadecimal value) of entry 218 in the hash table. Thus, the decryption key for a given encrypted software suite typically contains at least a hash table used to encrypt the software suite and form the encrypted software suite. Since a hash table has 256 individual positions, 256! (256 factorial, or 256*255*254*…*3*2*1) hash tables with different 256 positions can be generated. Therefore, it is virtually impossible for a malicious third party to decrypt the encrypted software suite if they do not possess the required decryption key.
[0065] Decryption keys (e.g., decryption keys 104A-104C) are packaged into source code 102 to form modified source code 106, such that when the modified source code 106 is compiled into software suite 108, software suite 108 itself can be installed as the next version of the BIOS, and these decryption keys are built into the BIOS itself. Therefore, the BIOS can automatically use the decryption keys as needed to decrypt the encrypted software suite. In implementations that use hash tables to encrypt software suite 108, the modified source code 106 typically includes a hash table contained within the source code (e.g., the source code directly declares the table in the source code header file).
[0066] Although Figure 1 The encrypted software package 110 is shown to include three different decryption keys 104A-104C, but in other embodiments, the encrypted software package 110 may include only the fourth version of the decryption key 104C. Therefore, in these embodiments, the third version of the BIOS source code may be packaged only with the fourth version of the decryption key 104C. Future computing systems can use the fourth version of the decryption key 104C to decrypt future encrypted software packages containing the fourth version of the BIOS. In other embodiments, the encrypted software package 110 may contain any number of decryption keys as long as it includes the fourth version of the decryption key 104C.
[0067] Figure 2 A flowchart 200 illustrates a method for updating a BIOS version installed on a computing system using an encrypted software suite 110. In the example illustrated in flowchart 200, the computing system has received an encrypted software suite 110 (which includes a third version of the BIOS) and has a currently installed second version of the BIOS. The encrypted software suite 110 also includes a decryption key 104A for a second version of the encrypted software suite with the second version of the BIOS, a decryption key 104B for a third version of the encrypted software suite (e.g., encrypted software suite 110) with the third version of the BIOS, and a decryption key 104C for a fourth version of the encrypted software suite with a future fourth version of the BIOS. As described in this disclosure, decryption keys 104A-104C are embedded in the third version of the BIOS itself.
[0068] The second version of the BIOS currently installed on the computing system was previously delivered to the computing system as part of software package 202. Software package 202 includes the second version of the BIOS and three decryption keys built into the second version of the BIOS. As described in more detail in this disclosure, software package 202 was previously delivered to the computing system in one of two different ways. First, software package 202 could be delivered to the computing system in unencrypted form. Second, software package 202 could have been delivered to the computing system in encrypted form, and the computing system already possessed the decryption keys required to decrypt software package 202 (e.g., when software package 202 was previously received, the decryption keys required to decrypt software package 202 were already built into the BIOS installed on the computing system).
[0069] The three decryption keys previously sent with software suite 202 include a first version decryption key 104D for decrypting the first version of the encrypted software suite with BIOS, a second version decryption key 104A (which can be used to decrypt the second version of the encrypted software suite with BIOS), and a third version decryption key 104B (which can be used to decrypt the third version of the encrypted software suite with BIOS).
[0070] Because the third-version decryption key 104B accompanying the third version of the BIOS is encrypted within the encrypted software suite 110, the third-version decryption key 104B cannot be used to decrypt the encrypted software suite 110. However, the software suite 202 previously sent to the computing system also includes the third-version decryption key 104B. Therefore, the third-version decryption key 104B is already built into the second version of the BIOS currently installed on the computing system. Therefore, the computing system can use the previously received third-version decryption key 104B (e.g., the decryption key of the BIOS version previously installed on the computing system when the encrypted software suite 110 was previously received) to decrypt the encrypted software suite 110. Figure 2 As shown, after decrypting the encrypted software suite 110, a software suite 108 is provided to the computing system. This software suite 108 contains the third version of the BIOS and decryption keys 104A to 104C. The third version of the BIOS can then be installed on the computing system, as shown in block 204. Furthermore, since the computing system currently possesses the fourth version decryption key 104C, the computing system will be able to decrypt future encrypted software suites containing the fourth version of the BIOS. Figure 1 Similarly, Figure 2 The encrypted software suite 110 is shown to include three different decryption keys 104A to 104C. In other embodiments, the encrypted software suite 110 may include any number of decryption keys as long as it includes a fourth version of the decryption key 104C.
[0071] Therefore, as Figure 1 and Figure 2 As shown, before transmitting encrypted software packages, a decryption key for decrypting a specific encrypted software package is pre-transmitted to the computing system. Then, when the computing system subsequently receives an encrypted software package containing a BIOS update, it already possesses the decryption key needed to decrypt the encrypted software package. Therefore, the encrypted software packages form a chain of encrypted software packages containing decryption keys and BIOS versions. Each encrypted software package transmitted to the computing system contains the decryption key for the next encrypted software package to be transmitted, enabling the computing system to decrypt the next encrypted software package it receives. Furthermore, the computing system possesses the necessary decryption key upon receiving an encrypted software package.
[0072] Generally, the encrypted software suite chain will begin with an unencrypted initial decryption key (e.g., the initial decryption key itself is not encrypted within some other software suite). The computing system will access this unencrypted initial decryption key, enabling it to decrypt the first encrypted software suite in the chain (this chain will contain the next version of the BIOS, and the decryption key for the second encrypted software suite).
[0073] In some implementations, the computing system is built with an initial version of the BIOS, and an unencrypted initial decryption key (which will be used to decrypt an encrypted software suite containing a subsequent version of the BIOS) is built into this initial version of the BIOS. Therefore, when a user initially obtains and begins using the computing system, the system will contain the unencrypted initial decryption key, which will be used to decrypt the first encrypted software suite in the chain. This software suite will contain the next version of the BIOS (e.g., the first update of the BIOS), and the decryption key required for the next encrypted software suite in the chain will be built into that next version of the BIOS.
[0074] In other implementations, the vendor can provide an unencrypted initial decryption key in a manner that ensures only the intended recipient (e.g., a verified user of the computing system) receives the unencrypted initial decryption key. These implementations may include sending a specific download link to each verified recipient, directly sending the unencrypted initial decryption key to the verified recipient via email, and other techniques. In these implementations, the user of the computing system may take steps to install or otherwise include the decryption key in the BIOS version currently installed on the computing system.
[0075] In any of these implementations, it is difficult for a third party (e.g., an unintended recipient such as a hacker) to obtain access to the unencrypted initial decryption key. Furthermore, since all subsequent decryption keys are encrypted within other software components, even if the encrypted software component containing the BIOS is publicly available, a third party will not have access to the BIOS source code within the software component.
[0076] Figure 3The diagram illustrates two runtime cycles of a computing system using decryption keys to update the BIOS currently installed on the computing system. Flowchart 300 includes runtime cycle 302A for the current version of the BIOS and runtime cycle 302B for the next version of the BIOS. Runtime cycle 302A is denoted as runtime CURR_BIOS, and runtime cycle 302B is denoted as runtime NEXT_BIOS. As shown in runtime cycle 302A, the computing system already possesses the previous version decryption key 304A (denoted as PREV_KEY), the current version decryption key 304B (denoted as CURR_KEY), and the first next version decryption key 304C (denoted as NEXT_KEY). The computing system first receives these decryption keys and embeds them into the current version of the BIOS in unencrypted form. (See reference...) Figure 1 and Figure 2 For example, decryption keys 304A to 304C correspond to decryption keys 104A to 104C respectively.
[0077] In cycle 302A, the computing system has received the encrypted software suite 306 (denoted as NEXT_encrypted_BIOS). The encrypted software suite 306 contains the next version of the BIOS, which will be installed on the computing system. The current version of the BIOS can decrypt the encrypted software suite 306 using the next version's decryption key 304C. The computing device first receives the next version's decryption key 304C and embeds it in unencrypted form into the current version of the BIOS. Therefore, the current version of the BIOS uses the next version's decryption key 304C to decrypt the encrypted software suite 306, forming an unencrypted software suite 308. The unencrypted software suite 308 (denoted as NEXT_BIOS) contains the next version of the BIOS and multiple decryption keys.
[0078] In cycle 302B, the computing system has installed the next version of the BIOS (sometimes called a flash BIOS) to replace the current version of the BIOS, as shown in block 310 spanning cycles 302A and 302B. As illustrated, the unencrypted software suite 308 contains three decryption keys: a decryption key 304B for the current version, a decryption key 304C for the first next version, and a second next version decryption key 304D (denoted as NEXT_NEXT_KEY). The second next version decryption key 304D can be used to decrypt future encrypted software suites, including subsequent versions of the BIOS (e.g., NEXT_NEXT_BIOS).
[0079] In some implementations, when the computing system is in system management mode, the next version of the BIOS is decrypted and installed. When the encrypted software suite 306 is delivered to the computing system and stored in its memory, the current version of the BIOS installed on the computing system triggers a system management interrupt. The system management interrupt puts the computing system into system management mode. In system management mode, the computing system uses the next decryption key 304C to decrypt the encrypted software suite 306 and install the next version of the BIOS. Alternatively, the computing system can use other decryption keys included in a particular software suite to flash back to a previous version of the BIOS.
[0080] Figure 4 A flowchart illustrating method 400 for generating an encrypted software suite is provided. Method 400 utilizes information disclosed herein. Figures 1 to 3 The principles discussed. In some implementations, the software is firmware for an electronic device or system. For example, as disclosed herein, the software may be the BIOS or UEFI of a computing system. However, method 400 can also be used to update other types of software. In step 402 of method 400, a first version of the software and a first decryption key are transmitted to the destination device. In some cases, the destination device is a computing system, and the software is the firmware of the computing system (e.g., BIOS or UEFI). The first decryption key is used to decrypt a future software suite containing a second version of the software, which will be sent to the destination device.
[0081] In some implementations, the first version of the software and / or the first decryption key is not encrypted when transmitted to the destination device. In some of these implementations, the first version of the software is an initial version of the software installed on the destination device (e.g., the first version of a BIOS or UEFI installed on a computing device), and transmitting the first version of the software may include the initial software installation program on the destination device. The first decryption key is typically a first decryption key used by the destination device to decrypt future versions of the software (e.g., future versions of BIOS or UEFI). In other implementations, the first version of the software and the first decryption key are encrypted. In these implementations, the first version of the software and the first decryption key are typically part of a chain of software versions and decryption keys. The destination device typically already possesses a prior decryption key for decrypting the first version of the software and the first decryption key.
[0082] In step 404 of method 400, a second version of the software and a second version of the decryption key are generated using any suitable technique. In some embodiments, generating the second version of the software and the second decryption key includes generating source code for the second version of the software, packaging the second decryption key to the source code to form a modified source code, and compiling the modified source code into a software suite having the second version of the software and the second decryption key.
[0083] In step 406 of method 400, a second version of the software and a second decryption key are encrypted to form an encrypted software suite. The software suite is used to decrypt using a first decryption key (which is pre-transmitted to the destination device) rather than the second decryption key. In other embodiments, the second version of the software and the second decryption key may be encrypted individually, or they may be encrypted together without creating a software suite (e.g., a folder or ZIP file containing the second version of the software and the second decryption key may be encrypted). In either case, encryption is performed such that the first decryption key, rather than the second decryption key, can be used to decrypt the second version of the software and the second decryption key.
[0084] In step 408 of method 400, an encrypted second version of the software and a encrypted second decryption key are transmitted to the destination device. In some cases, the encrypted second version of the software and the encrypted second decryption key are hosted at a publicly available network location. The destination device can use the previously transmitted first decryption key to decrypt the second version of the software and the second decryption key. The second version of the software can then be installed on the destination device to replace the first version of the software. In an embodiment that packages the second version of the software and the second decryption key into a software package, step 408 includes transmitting the encrypted software package to the destination device. The destination device can use the previously transmitted first decryption key to decrypt the encrypted software package.
[0085] In some embodiments, the steps of method 400 form part of a chain of software versions and decryption keys. Therefore, in these embodiments, method 400 may further include generating a third version of the software and a third decryption key. The third version of the software and the third decryption key are then encrypted such that they can be decrypted by the previously transmitted second decryption key, rather than by either the first or third decryption key. The encrypted third version of the software and the encrypted third decryption key (which may be packaged into the encrypted software suite) can be transmitted to the destination device. Since the destination device has previously received the second decryption key (received along with the second version of the software) and used the first decryption key to decrypt the second decryption key, the destination device can now use the second decryption key to decrypt the third version of the software and the third decryption key.
[0086] Figure 5 A flowchart illustrating method 500 for updating software using an encrypted software suite from the perspective of a target device is provided. Generally, method 500 is the counterpart to method 400. Therefore, the software can be firmware of an electronic device or system, such as the BIOS or UEFI of a computing system. In step 502 of method 500, the target device receives a first version of the software and a decryption key. The first version of the software and / or the first decryption key may initially be installed on the target device, or may be received subsequently. The target device is capable of receiving the first version of the software and / or the first decryption key in unencrypted or encrypted form (in the case of encrypted form, the target device typically possesses the decryption key required to decrypt the first version of the software and / or the first decryption key).
[0087] In step 504 of method 500, a first version of the software is installed onto the destination device. If the first version of the software is encrypted, it is decrypted and installed. In step 506 of method 500, the destination device receives an encrypted second version of the software. In some embodiments, the second version of the software forms part of an encrypted software suite. This software suite may include an additional decryption key. In step 508 of method 500, the destination device uses the decryption key previously received in step 502 to decrypt the encrypted second version of the software. In embodiments where the second version of the software is located within an encrypted software suite, step 508 includes decrypting the encrypted second suite using the previously received decryption key. In step 510 of method 500, the second version of the software is installed onto the destination device, replacing the first version of the software.
[0088] Although disclosed embodiments with respect to one or more implementations have been shown and described, equivalent changes and modifications will be made or understood by others of common general knowledge in the art upon reading and understanding this specification and the accompanying drawings. Furthermore, while specific features of the invention have been disclosed with respect to only one of the various implementations, such features may be combined with one or more other features of other implementations, which may be desirable and advantageous for any given or particular application.
[0089] While various embodiments of this disclosure have been described above, it should be understood that they are presented as examples only and not as limitations. Many changes can be made to the disclosed embodiments based on the content of this disclosure without departing from the spirit or scope of this disclosure. Therefore, the breadth and scope of this disclosure should not be limited to any of the above-described embodiments. Rather, the scope of this disclosure should be defined in accordance with the following claims and their equivalents.
[0090] In summary, although the present invention has been disclosed above with reference to embodiments, it is not intended to limit the invention. Those skilled in the art can make various modifications and refinements without departing from the spirit and scope of the invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.
Claims
1. A method for updating software, the method comprising: Transmit the first version of the software and the first decryption key to the computing system; Generate a second version of the software and a second decryption key; The second version of the software is encrypted with a second decryption key, and the encrypted second version of the software is used to be decrypted using the first decryption key instead of the second decryption key; as well as The encrypted second version of the software and the encrypted second decryption key are transmitted to the computing system; Generate a third version of the software and a third decryption key; The third version of the software is encrypted with the third decryption key, wherein the third version of the software is used to be decrypted using the second decryption key instead of the first decryption key or the third decryption key; as well as The encrypted third version of the software and the encrypted third decryption key are transmitted to the computing system; The encrypted version of the first decryption key and the encrypted second decryption key are transmitted to the computing system together with the encrypted third version of the software and the encrypted third decryption key.
2. The method as described in claim 1, wherein, The first version of the software is an initial version of the software installed on the computing system, and the first decryption key was not encrypted when it was transmitted to the computing system.
3. The method as described in claim 1, wherein, The first version of the software and the first decryption key are encrypted when transmitted to the computing system; and The encrypted first version of the software is used to be decrypted using a previously decrypted key instead of the first decrypted key, which is transmitted to the computing system before the encrypted first version of the software and the encrypted first decrypted key are transmitted.
4. The method of claim 1, wherein, The step of generating the second version of the software and the second decryption key includes generating a software suite having the second version of the software and the second decryption key; The action of encrypting the second version of the software and the second decryption key includes encrypting the software suite, wherein the encrypted software suite is used to be decrypted using the first decryption key instead of the second decryption key; The action of transmitting the encrypted second version of the software and the encrypted second decryption key to the computing system includes transmitting the encrypted software suite; and The action of generating the software suite containing the second version of the software and the second decryption key includes: Generate the source code for the second version of the software; Package the second decryption key into the source code of the second version of the software to form the revised source code; and The modified source code is compiled to form the software suite having the second version of the software and the second decryption key.
5. The method of claim 1, wherein, The software is the firmware of an electronic device or electronic system, which is the Basic Input / Output System (BIOS) of the computing system or the Unified Extensible Firmware Interface (UEFI) of the computing system.
6. The method of claim 1, wherein, The second version of the software and the second decryption key are encrypted using a hash table; and The second version of the software is used to install on the computing system, replacing the first version of the software.
7. The method of claim 1, wherein, The software is the firmware of the computing system, and wherein when the computing system is in system management mode, the second version of the software is used to be decrypted by the computing system and installed on the computing system; The second version of the software is used to trigger a system management interrupt on the computing system when the encrypted second version of the software is transmitted to the computing system. The system management interrupt is used to put the computing system into the system management mode and use the first decryption key to decrypt the second version of the software.
8. The method of claim 1, wherein, The encrypted second version of the software is managed at a publicly accessible network location.
9. A method for updating software, the method comprising: Initially receive the first version of the software and the first decryption key; Install the first version of the software on the computing system; Following the above steps, an encrypted software suite having a second version of the software is received, the second version of the encrypted software suite including an encrypted second version and an encrypted second decryption key; Use the previously received first decryption key to decrypt the second version of the encrypted software suite; as well as Install the second version of the software onto the computing system to replace the first version of the software; Following the above steps, a third version of the encrypted software suite is received, the third version of the encrypted software suite including the encrypted third version and the encrypted third decryption key, the third version of the encrypted software suite being decrypted using the second decryption key instead of the first decryption key or the third decryption key; The encrypted version of the first decryption key and the encrypted second decryption key are received together with the encrypted third version of the software and the encrypted third decryption key.
Citation Information
Patent Citations
Secure software updates
CA2616358A1
Method and system for securely updating firmware in a computing device
CN103679004A
