Modern computer systems typically include a read-only memory (ROM) to store various types of information, such as operating system routines. Certain computer systems include electronically programmable non-volatile memories which may include various device technologies such as electronically erasable programmable read-only memory (EEPROM) or Flash, for example.
For a more complete understanding of various examples, reference is now made to the following description taken in connection with the accompanying drawings in which:
Example systems and methods described herein may be used to verify the ROM firmware in production environments for any computing device. The example systems and methods may be used to verify that the system ROM firmware has not been tampered with, thus protecting against threats including malware, Trojan Horses and viruses in computing devices such as servers. Various methods include generating a master hash code using a hash algorithm such as a version of the Secure Hash Algorithm (e.g., SHA256) for multiple system ROM families. In various examples, a mapping table is developed that identifies chosen portions of the system ROMs in order to calculate the binary data from multiple different system ROMs that include various specialized code from many different Original Equipment Manufacturers or OEMs. The mapping table, in various examples, may be an embedded table of information for each server system, including different system ROM families and different system ROM versions within each ROM family. Using methods described herein, a user can easily detect whether their server system ROMs are compliant are original ROM images or whether they have been tampered with.
The mapping tables may, in various examples, include static portions that are common to all versions from different OEMs and may exclude variable portions that may be expected to be legitimately modified by OEMs and the like. The mapping table may be based on a mapping of the binary ROM file sections to system ROM locations. These ROM file sections may be verified against the production binary sections by computing a checksum or hash code (referred to from herein as a hash code without loss of generality) for each ROM section and comparing it with a master hash code from the verified master system ROM. The method may be fully automated. A user may only need to run the ROM verification tool to compare the user's system ROM with the stored hash codes from the master ROM to validate the authenticity and integrity. The verification may be accomplished during production of the computing device, during system updates, etc.
Currently, there is no reliable and simple way to detect that a computer operating system contained in read-only-memory (ROM) has not been tampered with by hackers. What is needed is a method to check and validate the installed system ROM image of a computing device and validate its integrity. Currently there is no way to detect or inspect an installed system ROM. The only currently reliable method for curing a system ROM that has been tampered with is re-flashing the system ROM with a new system ROM image when a user suspects that something could be wrong. There is no known method of verifying the integrity of the active production system ROMs without a need to re-flash.
Referring now to
The example server device 100 may include a server CPU (central processing unit) 110, at least one memory device 115 and a power supply 140. The power supply 140 is coupled to an electrical interface 145 that is coupled to an external power supply such as an AC power supply 150. The server device 100 may also include an operating system component including, for example, an operating system driver component 155 and a system firmware component 160 such as, for example, a pre-boot BIOS (Basic Input/Output System) component stored in ROM (read only memory), and coupled to the CPU 110. In various examples, the CPU 110 may have a non-transitory memory device 115. In various examples, the memory device 115 may be integrally formed with the CPU 110 or may be an external memory device. The memory device 115 may include program code that may be executed by the CPU 110. For example, at least one process may be performed to execute a user control interface 180 and/or other software applications 135.
In various examples, the system firmware component 160 provides a pre-boot environment. The pre-boot environment allows applications, e.g., the software applications 180, and drivers, e.g., the operating system driver component 155, to be executed as part of a system bootstrap sequence, which may include the automatic loading of a pre-defined set of modules (e.g., drivers and applications). As an alternative to automatic loading, the bootstrap sequence, or a portion thereof, could be triggered by user intervention (e.g. by pressing a key on a keyboard) before the operating system driver 155 boots. The list of modules to be loaded may, in various examples, be hard-coded into system ROM. The example server device 100, after initial boot, will be controlled by the operating system component 155.
The server device 100 may also include a network interface 165 and other hardware 170 known to those skilled in the art. The network interface 165 may be coupled to a network such as an intranet, a local area network (LAN), a wireless local area network (WLAN), the Internet, etc.
The example firmware inspector module 125 determines a hash code for predetermined portions of the system ROM contained in the system firmware component 160 where the firmware map table 130 identifies these predetermined portions. The predetermined portions identified in the firmware map table 130 may be the same for every version of a specific ROM family whereas the hash codes may vary from version to version. If the predetermined portions change from version to version within a ROM family, the firmware map table 130 identifies separate predetermined portions for the different versions, as needed. In various examples, a SHA256 algorithm is used to calculate a hash code for a master binary image of each version of each system ROM family. Two hashes may be calculated including one hash code for the main ROM portion of the system firmware 160 and a second hash for a boot block section. In both cases, portions of the main ROM and boot block portion that are known to be variable (e.g., due to OEM specific code, user specific code or System Locked Pre-installation (SLP) code) are skipped. In other words, all static portions of the main ROM and boot block are grouped into separate binary images upon which a hash code is calculated while the variable portions are omitted. System Locked Pre-installation (SLP), is a procedure used by OEM computer manufacturers to pre-activate operating systems such as Microsoft's Windows XP®, Windows Server 2003® and Windows Vista® before mass distribution.
The firmware inspector module 125 determines a first set of master hash codes based on a master system ROM (e.g., in the production line) and these master hash codes are embedded in the firmware hash table 132. When checking a specific system version of a ROM family for tampering, the firmware inspector module 125 determines a second set of hash codes, verification hash codes, based on a binary image created from a certain version of a ROM family on a specific server device 100 and compares the second set of verification hash codes to the first set of master hash codes previously calculated for the certain version of the ROM family and embedded in the firmware hash table 132. If the hash codes agree, it may safely be determined that the system firmware 160 has not been altered from the master system ROM. If the hash codes do not agree, the firmware inspector module 125 generates a signal that the system firmware 160 may have been tampered with and the entire system firmware may be downloaded to memory for inspection. The downloaded copy of the system firmware 160 may be saved in a file that includes a serial number of the server device 100 that may have been tampered with.
The firmware inspector module 125 may be run periodically, when system updates are made, or may be chosen to be run manually by a user. The server device 100 may be a cloud device that uploads system firmware from another computing device and performs the firmware inspection remotely.
In some instances, the firmware map table 130 may not include a correct firmware map for a given ROM family and/or version of system firmware 160. In this case, the firmware inspector module 125 may indicate that no matching system ROM and associated hash codes are available in the firmware map table 130 or the firmware hash table 132, respectively, and that a validation of the system firmware 160 was not made. In this case, the firmware inspector module 125 may dump a copy of the full ROM images of the system firmware 160 into binary files for inspection using a system serial number as part of the filename.
The first and second system firmware ROMs 205-1 and 205-2 are each comprised of a main ROM portion 210-1 and 210-2 and a boot block portion 225-1 and 225-2. The main ROM portions 210-1 and 210-2, in this example, are comprised of four static portions 215-1 and 215-2 and three variable portions 220-1 and 220-2. The variable portions 220-1 and 220-2 may include code that varies from device to device, depending on OEM specific code, user specific code, SLP code, etc.
In contrast to the boot block portions 225-1 and 225-2 of the first example ROM memory block diagram 200, the boot block portions 275-1 and 275-2 each include two static portions 280-1 and 280-2 and one variable portion 285-1 and 285-2. The first and second example ROM memory block diagrams 200 and 250 of
In order to identify which portions of a given ROM memory are static portions and which are variable, the firmware map table 130 of
The firmware map table 130 may also indicate which static and/or variable portions of the ROM memory are part of the main ROM and which are portions of a boot block, or other portion of ROM. In this way, the firmware inspector module 125 may identify the main ROM static portions and calculate a first hash code, identify the boot block static portions (and/or other portion of ROM for which a hash code comparison may be made) and calculate a second hash code and then compare the first and second hash codes to first and second master hash codes previously calculated for an official version of the specific ROM memory and stored in the firmware hash table 132 in association with the specific ROM memory address entries stored in the firmware table map 130 for a certain ROM family. Multiple sets of the master hash codes, one for each version of system ROM in a ROM family, may be stored in the firmware hash table 132 and these master hash codes may differ for each version of system ROM in the ROM family.
Referring now to
At block 310, a determination is made as to which portions of the system firmware 160 are static and which portions are variable. This determination may be made manually and embedded into the firmware map table 130 as data indicative of a set of memory addresses (e.g., hexadecimal addresses) listing the starting and stopping points of both the static portions and the variable portions and data indicative of whether each portion is static or variable. Alternatively, the determination of static and variable portions at block 310 may be automated to be performed by the firmware inspector module 125. The static and variable portions may, in various examples, be consistent across all versions of firmware within a ROM family. In these examples, a single set of addresses may suffice for all versions. Alternatively, some versions of a ROM family may have different static and or variable portions and, in these examples, two or more sets of address may be embedded into the firmware map table 130.
At block 320, the firmware inspector module 125 retrieves portions of the main ROM of the system firmware 160 indicated by the firmware map table 130 generated at block 310 to be static portions and omits retrieval of the main ROM portions indicated to be variable. The static portions may be combined to form a combined portion upon which a master hash code may be calculated. The combined portion may be formed by placing the static portions back to back based on an address location, or in any other predetermined order.
At block 330, the firmware inspector module 125 calculates a first master hash code for the combined portion of the main ROM using an algorithm such as, in various examples, the SHA256 algorithm. The firmware inspector module 125 stores the first master hash code in the firmware hash table 132 in association with the firmware map table entries determined at block 310. This first master hash code may be used at a later date to verify that another main ROM of a deployed version of the system firmware 160 has not been hacked or otherwise corrupted.
At block 340, the firmware inspector module 125 retrieves portions of the boot block ROM of the system firmware 160 indicated by the firmware map table 130 generated at block 310 to be static portions and omits retrieval of the boot block ROM portions indicated to be variable. The static portions may be combined to form a combined portion upon which a master hash code may be calculated. The combined portion may be formed by placing the static portions back to back based on an address location, or in any other predetermined order.
At block 350, the firmware inspector module 125 calculates a second master hash code for the combined portion of the boot block ROM using an algorithm such as, in various examples, the SHA256 algorithm. The firmware inspector module 125 stores the second master hash code in the firmware hash table 132 association with the firmware map table entries determined at block 310. This second master hash code may be used at a later date to verify that another boot block ROM of a deployed version of the system firmware 160 has not been hacked or otherwise corrupted.
At decision block 360, the firmware inspector module determines if there are other main ROM and/or other boot block ROM portions of the system firmware 160 for which other master hash codes may be calculated. For example, in various examples, as illustrated by the ROM system block diagrams 200 and 250 of
The firmware map table 130 and firmware hash table 132 developed using the process 300, including the static and variable portions addresses as well as the master hash codes, may be embedded in firmware inspector modules 125 of other server devices for later use in verifying the authenticity of the system firmware of the other server devices or for verifying the authenticity of remote server devices using a cloud based server device.
Referring now to
At block 405, the firmware inspector module 125 determines, for a server device 100 or other computing device (referred to from herein as the computing device), a ROM family of a system firmware 160 and possibly a version number of the system firmware 160 of the computing device. Based on the ROM family and possibly the version number, the firmware inspector module 125 searches for a corresponding ROM family and possibly version number for a firmware map contained in the firmware map table 130, decision block 410.
The search at decision block 410 may be made for each main ROM portion and/or boot block portion of the system firmware 160. If any corresponding ROM family and possibly version number for any of the main ROM and/or boot block portion is not found in the firmware MAP table 130, the process continues to block 415, where the firmware inspector module 125 generates a warning message indicating that a main ROM and/or boot block version is not supported by the firmware map table 130 or a message indicating that the ROM family and possibly version number could not be validated using data in the firmware map table 130. The process 400 may then end.
At block 420, the firmware inspector module 125 determines which portions of the main ROM and/or boot block portions of the system firmware 160 are static portions based on the data contained in the firmware map table 130 for the identified ROM family and possibly version number.
At block 425, the firmware inspector module 125 retrieves copies of the static portions of the main ROM portions of the system firmware 160 of the computing device based on the address entries in the firmware map table 130 and copies the static portions into a hash code buffer and calculates first verification hash codes for each main ROM portion of the system firmware 160.
At block 430, the firmware inspector module 125 retrieves copies of the static portions of the boot block portions of the system firmware 160 of the computing device based on the address entries in the firmware map table 130 and copies these static portions into a hash code buffer and calculates second verification hash codes for each boot block portion of the system firmware 160.
At block 435, the firmware inspector module 125 retrieves master hash codes embedded in the firmware hash table 132 in association with the firmware map data contained in the firmware map table 130 for the identified ROM family and possibly version number. At decision block 440, the firmware inspector module 125 determines if any of the verification hash codes calculated at blocks 425 or 430 do not match the associated master hash codes retrieved at block 435. If any of the verification hash codes do not match the associated master hash code, this is an indication that the static portions of the system firmware 160 have changed from the official version upon which the master hash codes were determined, and the firmware inspector module 125 dumps the full ROM area of the system firmware 160 into a binary file of the memory 115, or other memory, and generates a message to investigate the suspect ROM, block 445.
If all verification hash codes match respective master hash codes at decision block 440, the firmware inspector module 125 generates a message indicating successful verification of all static ROM portions in the system firmware 160, block 450. The process 400 may then end.
Various examples described herein are described in the general context of method steps or processes, which may be implemented in one example by a software program product or component, embodied in a machine-readable medium, including executable instructions, such as program code, executed by entities in networked environments. Generally, program modules may include routines, programs, objects, components, data structures, etc. which may be designed to perform particular tasks or implement particular abstract data types. Executable instructions, associated data structures, and program modules represent examples of program code for executing steps of the methods disclosed herein. The particular sequence of such executable instructions or associated data structures represents examples of corresponding acts for implementing the functions described in such steps or processes.
Software implementations of various examples can be accomplished with standard programming techniques with rule-based logic and other logic to accomplish various database searching steps or processes, correlation steps or processes, comparison steps or processes and decision steps or processes.
The foregoing description of various examples has been presented for purposes of illustration and description. The foregoing description is not intended to be exhaustive or limiting to the examples disclosed, and modifications and variations are possible in light of the above teachings or may be acquired from practice of various examples. The examples discussed herein were chosen and described in order to explain the principles and the nature of various examples of the present disclosure and its practical application to enable one skilled in the art to utilize the present disclosure in various examples and with various modifications as are suited to the particular use contemplated. The features of the examples described herein may be combined in all possible combinations of methods, apparatus, modules, systems, and computer program products.
It is also noted herein that while the above describes examples, these descriptions should not be viewed in a limiting sense. Rather, there are several variations and modifications which may be made without departing from the scope as defined in the appended claims.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/US2015/026428 | 4/17/2015 | WO | 00 |