# Patent

## Title
Attestation using a combined measurement and its constituent measurements

## Abstract

An attestation system for asserting and verifying assertions of a known-good state of a computer system is provided. The attestation system allows a challenger and a prover to conduct an attestation so that the challenger can verify an assertion of the prover. To conduct the attestation, the prover sends, as an assertion of its state, a combined measurement of resources along with a constituent measurement of each resource to the challenger. The challenger verifies the assertion by verifying that the asserted constituent measurements represent known-good measurements and verifying that the asserted combined measurement can be generated from the asserted constituent measurements. To verify the asserted constituent measurements, the challenger determines whether each asserted constituent measurement for a resource is a known-good measurement for that resource. To verify the asserted combined measurement, the challenger generates a combined measurement from the asserted constituent measurements received from the prover.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application claims the benefit of U.S. Provisional Patent Application No. 61/938,070 entitled “FLEXIBLE AND SCALABLE ATTESTATION USING DYNAMICALLY COMPUTED WHITELISTS,” filed Feb. 10, 2014, which is incorporated herein by reference in its entirety.


BACKGROUND
Computer systems are often targets of attacks by unauthorized individuals, organizations, and states. These attacks may include the installing of malware (i.e., malicious software) onto a computer to compromise (or infect) the software (including firmware) of the computer. For example, malware may be inserted as part of the operating system kernel or may be loaded by an application program. The malware may cause the compromised software to bypass its security measures, reveal its secrets, alter its behavior, deny service to its clients, and so on.
When a computer system interacts with another computer system, each computer system may want to ensure that the other computer system has not been compromised with malware. For example, a client computer system (“client”) requesting services of a server computer system (“server”) may want to ensure that the operating system and application programs have not been compromised. To ensure that a server has not been compromised (e.g., the programs of the server have not been compromised), a client can request evidence that the server has not been compromised and the server can provide that evidence as an assertion of its state in a process known as “remote attestation.” The server typically collects the evidence during its initialization to indicate the state of the server at the time of initialization. If the evidence provided by the server is what that client expects, then the client can trust that the server has not been compromised. The server can similarly ensure that the client has not been compromised as a counter attestation of the client.
Many servers provide a trusted computing component (“TCC”), that is, hardware designed specifically to collect and maintain the evidence needed to support remote attestation. Many servers include a TCC that is a trusted platform module (“TPM”) as specified by the Trusted Computing Group (“TCG”). The TCG is a consortium of hardware and software organizations that include Intel, AMD, Microsoft, and IBM. The TPM is a hardware component of a server that can securely record the state (e.g., code and data) of the server. The state may be associated with multiple layers of the software stack, including the firmware, BIOS, boot loader, hypervisor, and operating system. A server can provide to a client the measurement (or measurements) of the state (or states) as evidence of the server's state at initialization. The measurement may be a hash of the state. A client can compare a measurement received from a server to what the client knows is a “known-good” measurement of a known-good state. Based on the results of that comparison, the client can decide whether to request services of or otherwise interact with the server.
A TPM is a secure hardware processor that can perform cryptographic operations and store cryptographic keys or other values persistently. In current implementations, a TPM is a discrete chip that interfaces with the main central processing unit (“CPU”) of a computer, but in future implementations the TPM may be integrated directly into the CPU. A TPM contains a set of fixed-size platform configuration registers (“PCRs”) that store the resulting values of cryptographic one-way hashes of state information.
Once initialized, such as after a hardware reset, a TPM only allows a PCR to be “extended” by computing a cryptographic hash of its existing value (e.g., an initial value of zero) concatenated with an additional measurement M (i.e., PCR←hash(PCR, M)). The measurement M is typically a secure hash of state information generated by a Secure Hashing Algorithm (“SHA”), such as a SHA-256, generating a hash of a region of memory. After reset, initialization code (e.g., an authenticated code module) may set a PCR (e.g., PCR18) to a measurement that is the hash of certain computer code. For example, the initialization code may generate a value for PCR18 based on individual measurements (e.g., hashes) of several components, including the BIOS and other firmware, a measured launch environment (“MLE”), such as TBOOT, along with its command line, the operating system kernel, the kernel command line, and so on. The initialization code generates a hash of state information that is a measurement for the state of a component code and extends the value in the PCR with that hash. The initialization code then may pass control to that component to continue with measuring of other state information for another component, extending the PCR with the hash, and then passing control the other component. This process is repeated until the PCR is extended to reflect the measurements defined for that PCR. Since a PCR can be modified only via such extension operations, the TPM provides a means of storing secure measurements of state information, including code, data, configuration information, and so on. The TPM can also generate a digitally signed “TPM quote” that contains its PCR values (i.e., the measurements) together with a cryptographic signature. This allows a client to verify that the measurements were generated and protected by a valid TPM of the attesting server.
A sequence of extension operations on a single PCR is useful for representing a series of measurements compactly as a single, fixed-size hash value, computed as a chain of hashes. For example, a PCR may be initially set to a hash of the firmware, followed by extending the PCR by hashes of the BIOS, boot loader, hypervisor, and operating system in sequence. The result of such a series of measurements is referred to as a combined measurement. To verify that the set of measurements combined into a single PCR represents a known-good state, a client needs access to known-good combined measurements, referred to as a “whitelist,” of known-good states. When a PCR value is constructed or generated by extending it with n individual constituent measurements M1, . . . , Mn and each measurement Mi has Gi known-good states, the size of the resulting whitelist grows multiplicatively, with G1× . . . ×Gn known-good states. Even modest values of n and Gi can result in a very large number of known-good combined measurements that require large amounts of storage and/or significant computational resources to generate. As an example, in a typical data center, there may be a few known-good versions of TBOOT, many known-good TBOOT command-line options and parameters, dozens of known-good versions of OS kernels corresponding to different operating systems, builds, optimization levels, and configurations, and hundreds of known-good kernel command lines corresponding to different valid options and parameters. A whitelist for PCR18 for such a data center may contain many thousands or millions of possible known-good PCR18 values. For example, if GTBOOT=6, GTBOOTcmd=10, GOS=30, and GOScmd=120, the number of known-good values for the PCR18 whitelist would be GTBOOT×GTBOOTcmd×GOS×GOScmd=216,000. In practice, the whitelist will continue to grow over time, as new versions of each component are released.
The maintenance of such a whitelist of known-good combined measurements in a large data center can be a challenge. When a new version of a component for a server is released, the whitelist needs to be updated and distributed to the clients. With such a release, a system administrator may need to manually load a known-good combined measurement for that version for every possible combination of versions of the other components. Continuing with the PCR18 example, if a new version of TBOOT is released, then the number of additional combinations would be GTBOOTcmd×GOS×GOScmd=36,000. Because of the overhead needed to maintain such a whitelist, an organization may implement policies that limit the diversity of hardware and software supported by the data center.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a flow diagram that illustrates the data flow between a challenger and a prover in some embodiments of the attestation system.
FIG. 2 is a block diagram that illustrates components of the attestation system in some embodiments.
FIG. 3 is a flow diagram that illustrates the processing of a verify assertion component of a challenger in some embodiments.
FIG. 4 is a flow diagram that illustrates the processing of a verify measurements component of a challenger in some embodiments.
FIG. 5 is a flow diagram that illustrates the processing of a verify combined measurement component of a challenger in some embodiments.
FIG. 6 is a flow diagram that illustrates the processing of a perform two-step attestation component of a challenger in some embodiments.
FIG. 7 is a block diagram that illustrates a process assertion request component of a prover in some embodiments.



DETAILED DESCRIPTION
A method and system for asserting and verifying assertions of a known-good state of a computer system is provided. In some embodiments, an attestation system allows a challenger computer system (“challenger”) and a prover computer system (“prover”) to conduct an attestation so that the challenger can verify an assertion of the prover. To conduct the attestation, the prover sends as an assertion of its state a combined measurement of resources along with a constituent measurement of each resource to the challenger. For example, the resources may include a BIOS, a TBOOT, a TBOOT command line, an operating system kernel, and a kernel command line. The challenger verifies the assertion by verifying that the asserted constituent measurements represent known-good measurements and verifying that the asserted combined measurement can be generated from the asserted constituent measurements. The prover may send multiple combined measurements representing states of different sets of resources of the prover along with a set of constituent measurements for each combined measurement. In such a case, the challenger separately verifies each combined measurement. To verify the asserted constituent measurements, the challenger determines whether each asserted constituent measurement for a resource is a known-good measurement for that resource. For example, the challenger may maintain a whitelist for each resource that contains the known-good measurements for that resource. If each asserted constituent measurement for a resource is determined to be a known-good measurement for that resource (e.g., in the whitelist for that resource), then the asserted constituent measurements are verified. To verify the asserted combined measurement, the challenger generates a combined measurement from the asserted constituent measurements received from the prover. If the generated combined measurement is the same as the asserted combined measurement, then the asserted combined measurement is verified. The challenger does not need to compare the asserted combined measurement to a previously known-good combined measurement. Rather, the challenger dynamically generates a known-good combined measurement from the constituent measurements provided by the prover. If each asserted constituent measurement is verified and the asserted combined measurement is verified to match the generated combined measurement, then the assertion is verified. Since the challenger does not need to compare the asserted combined measurement to a known-good combined measurement, the challenger need not maintain a whitelist of known-good combined measurements and can avoid the overhead and complexity of maintaining a whitelist of all possible combined measurements and/or generating possible combined measurements from whitelists of measurements of resources.
In some embodiments, a prover employing the attestation system generates a combined measurement of its state as an assertion of its state. The prover may include a trusted platform component that stores a combined measurement that is generated from constituent measurements for resources of the prover that can be trusted as an assertion of a state of each of the resources. For example, the trusted platform component may be a trusted platform module with one or more PCRs for storing combined measurements. Each resource may have variations such as different versions of a MLE and different combinations of options of a kernel command line. A resource may be any software component (e.g., computer instructions), data structure, configuration data, hardware component, and so on that can have its state measured. The prover may generate a measurement for each resource using a hash algorithm, such as a SHA-256 hash, of that resource. The prover generates the combined measurement by using the measurements of the resources as constituent measurements of the combined measurement. The prover may generate the combined measurement as a hash chain of the measurements as the constituent measurements of the combined measurement. For example, such a combined measurement may be generated by a TPM at initialization of the prover by extending a PCR. The prover then sends to a challenger the combined measurement, which may be signed with a key of the TPM, and the constituent measurements as an assertion. The prover may also send to the challenger an indication of an algorithm used to generate the constituent measurement or the algorithm used to generate the combined measurement so that the challenger can use the same algorithm(s). The prover may also send to the challenger an indication of a variation (e.g., version number) of a software component that generates a constituent measurement. In some embodiments, the constituent measurements may be the same constituent measurements that are generated for use in generating the combined measurement. For example, each component that generates a constituent measurement when extending a combined measurement of a PCR may record its constituent measurement for sending to a challenger. Alternatively, the prover may separately generate the constituent measurements after the combined measurement is generated.
In some embodiments, a challenger employing the attestation system verifies an assertion of a prover that includes an asserted combined measurement and asserted constituent measurements. The challenger may initially send to a prover a request for an assertion of the constituent measurements of resources that the prover uses to generate a combined measurement of its resources. For example, if a challenger is a client that wants to request services of a server, the client sends to the server a request that the server provide an assertion of its constituent measurements. The challenger then receives from the prover an assertion that includes the constituent measurements. For each resource, the challenger may maintain a whitelist of known-good measurements for the resource. To verify the constituent measurements, the challenger determines whether the constituent measurement of each resource is in the whitelist for that resource. If the challenger determines that a constituent measurement for a resource is not in the whitelist for that resource, then the challenger cannot verify the constituent measurements. Without being able to verify the constituent measurements, the challenger cannot verify the assertion, may suppress further verification of the assertion, and may assume that the prover cannot be trusted. If the challenger determines that each constituent measurement for a resource is in the whitelist for that resource, then the challenger has verified the constituent measurements. The challenger also generates a combined measurement from the constituent measurements; such a combined measurement would be the same as that generated by the prover given the same constituent measurements. When the constituent measurements have been verified, the challenger sends to the prover a request for the combined measurement. When the challenger receives from the prover an assertion of the combined measurement, the challenger compares the asserted combined measurement to the combined measurement that it generated. If the combined measurements are the same, then the assertion of the prover has been verified, and the challenger may assume that the prover can be trusted. For example, when a client verifies the assertion of a server, the client may then request services of that server knowing that the server is trusted and has not been compromised.
In some embodiments, the attestation system allows a challenger performing remote attestation to determine whether a PCR represents a known-good combined measurement without having to store the whitelist of possible combined measurements. The attestation system allows the size of the whitelist that is to be stored for each PCR to be reduced from the multiplicative product of known-good measurements G1× . . . ×Gn to a much smaller size that is the additive sum of known-good measurements G1+ . . . +Gn. Moreover, if it does not need to verify a constituent measurement for a certain resource of a prover, the attestation system need not store a whitelist for that resource. In such a case, a challenger can simply proceed assuming that the measurement for that resource is verified.
The attestation system also provides a challenger an opportunity to pre-calculate some or all of the known-good combined measurements. For example, a challenger may pre-calculate and store as a whitelist the pre-calculated combined measurements for typical configurations of servers. When a challenger receives an assertion from a server, the challenger can first check to see if the asserted combined measurement is in the whitelist. If in the whitelist, the challenger has verified the assertion and can avoid the overhead of verifying the constituent measurements and generating a combined measurement. If not in the whitelist, the challenger can proceed with verifying the constituent measurements and generating a combined measurement. A challenger can base a decision on how many known-good combined measurements to pre-calculate based on a desired tradeoff between storage requirements and verification speed. For example, a server that needs to frequently verify assertions of clients may decide that the overhead of storing a large whitelist is well worth the resulting reduced overhead of the verification process. In addition, when a challenger verifies that an asserted combined measurement matches a generated combined measurement, it may cache that combined measurement as a known-good combined measurement (e.g., adding to the whitelist) to avoid the overhead of verifying the constituent measurements and generating a combined measurement when the same asserted combined measurement is subsequently received. The attestation system can be used to avoid the manually intensive process of 1) installing various combinations of variations of resources on a computer system so that the computer system can generate a combined measurement for each possible combination and then 2) storing each generated combined measurement in a whitelist of combined measurements. Thus, even if a whitelist of combined measurements is to be used, the attestation system provides a more efficient way to generate that whitelist.
In some embodiments, the attestation system may further reduce the size of a whitelist of a resource by employing a representation that is more compact than storing each known-good measurement individually. For a given resource, a challenger may store known-good measurements for sub-resources of that resource. For example, if the resource is a software system, then the challenger may store a measurement for each module that makes up the software system. If a prover asserts a constituent measurement for a resource along with sub-constituent measurements for sub-resources of that resource, then a challenger can verify the asserted sub-constituent measurements of the sub-resources using the whitelists, generate a constituent measurement from the sub-constituent measurements, and verify whether the generated constituent measurement matches the asserted constituent measurement. This process of storing sub-resources of resources may be recursively applied to any level (e.g., sub-sub-resources of sub-resources of resources). In addition, the attestation system may store known-good measurements or other data associated with resources or sub-resources using compact patterns, such as regular expressions. In some embodiments, a prover may assert to a challenger raw data from which the challenger needs to generate a constituent measurement Mi.
The process of verifying asserted constituent measurements, generating a combined measurement from the asserted constituent measurements, and comparing the generated combined measurement to the asserted combined measurement to verify the assertion is referred to as “dynamic whitelisting.” Dynamic whitelisting is achieved by effectively simulating the TPM PCR extension operation in software, using the individual measurements Mi as inputs. Thus, in addition to a TPM quote containing signed PCR values, a prover also supplies the constituent measurements for all of the resources that were used to compute each PCR value. The prover may also provide metadata describing the constituent resources, such as version numbers. For some resources, such as a short command-line string, the prover may even include some or all of the raw data of a resource itself. The constituent measurements, metadata, and data are referred to collectively as assertions of the constituent measurements. A prover may also supply an identifier that specifies which measurement algorithm a TPM used for PCR extension to accommodate potential differences across diverse TPM implementations or generations. For example, TPM 1.2 uses the SHA-1 secure hash algorithm, while TPM 2.0 supports the SHA-256 algorithm, and some versions may even support downloading custom algorithms into the TPM processor.
A prover may also supply metadata that includes identifiers, such as component version numbers, to specify the particular algorithms used by the various software components to generate constituent measurements. The metadata may be used as inputs for TPM PCR extension because measurement algorithm details may vary across both components and component versions. As one example, TBOOT software measures both the kernel and the kernel command line. However, some versions of TBOOT make additional measurements, for example, the Launch Control Policy of the TPM's non-volatile memory. In general, component-specific measurement algorithms may use different hash functions, make different measurements, and permute the order in which measurements are performed. The prover may provide this metadata to a challenger to ensure that the challenger uses compatible algorithms when verifying the constituent measurements.
As an example of the computational savings of the attestation system, if a TPM of a prover employs hash chaining extensions of a fixed-length PCR value, the extensions will take the form SHA(current PCR value∥new value). If there are n=10 resources and each of the 10 resources has on average G=5 known-good measurements, then there would be G^n=5^10=9,765,625 possible combined measurements in a typical whitelist of combined measurements. With the attestation system, however, only G×n=5×10=50 possible measurements need be stored using dynamic whitelisting in one embodiment. For example, if GTBOOT=6, GTBOOTcmd=10, GOS=30, and GOScmd=120, then storage for the whitelist would be reduced from GTBOOT×GTBOOTcmd×GOS×GOScmd=216,000 to GTBOOT+GTBOOTcmd+GOS+GOScmd=166, which is a savings of more than 99.9%. In addition, the attestation system can provide the identification of the specific resource whose measurement could not be verified.
As described above, the attestation system can reduce the size of the whitelists of some resources by computing their measurements dynamically from sub-resource data or measurements. For example, the list of all GOScmd known-good measurements for the OS kernel command line may itself be large. In practice, the command line may even include data specific to a single physical server, for example, the “root=[Disk UUID]” parameter commonly used for booting Ubuntu Linux kernels. In such cases, the attestation system may ensure that the parameter is well-formed, for example, by pattern-matching using a regular expression to verify the measurement for the sub-resource. This approach to verification allows a challenger to compute the known-good measurement for a resource dynamically, using sub-resource data, such as portions of the command-line string, as inputs.
Once all of the constituent measurements have been verified, a challenger may compute the expected final PCR value, using the specified measurement algorithm. As one example, for PCR18, the challenger first verifies the TBOOT measurement. Based on the particular TBOOT measurement, the challenger determines which resource that specific version of TBOOT should measure next (such as the OS kernel), as well as the specific hash function that should be used to perform the measurement (such as SHA-1). The challenger then generates this measurement in software. This PCR computation approach yields the chained hash resulting from a series of simulated TPM extension operations of the form PCR←hash(PCR, Mi). If the dynamically computed PCR value matches the PCR value obtained using the TPM quote operation (i.e., the asserted combined measurement), then the assertion is verified. If it does not match, the assertion is not verified.
In some embodiments, the attestation system may use a modified remote-attestation protocol that allows various assertions such as the constituent measurements Mi for resources or sub-resources measurement algorithm identifiers, resource or sub-resource data for generating measurements, or other auxiliary data. Alternatively, the attestation system may support sending such assertions out-of-band, for example, as a separate step, prior to the conventional attestation protocol. The attestation system does not need to require that such assertions be sent securely. If an assertion is modified (e.g., intentionally or inadvertently corrupted) in transit, then the dynamically computed combined measurement for a PCR value will not match the TPM quoted PCR value. A secure channel may nevertheless be needed to ensure that the confidentiality of any secret data is protected.
The attestation system simplifies whitelist generation because a system administrator need not collect TPM PCR values generated by a computer system having the known-good resources installed and load a combined measurement for each combination of known-good constituent measurements for each combination of known-good resources. Instead, the attestation system generates individual constituent measurements independently. The attestation system can generate these measurements using software that simulates the TPM PCR extension operations without the need for any hardware support that is specific to such operations.
The attestation system can efficiently allow the measurement of resources containing data that is unique to each individual prover. The use of such measurements in prior systems was generally not practical because unique data such as a random value could not have been captured in advance and measured into a PCR value. For example, a server may randomly generate a new public key to be used for secure, encrypted communication with clients. In this case, there is no known-good measurement for this key and thus no need for a client to maintain a whitelist of known-good measurements for this resource. Nevertheless, the client still can verify that the key provided by the server matches the key used to generate the PCR value. A client can accept any measurement of the key, as long as the PCR value generated by the client using the measurement of the key matches the asserted PCR value. In other words, if the client's dynamically computed PCR value, which includes a measurement of the asserted key, matches the TPM-quoted PCR value, then the client knows that the asserted key is correct.
FIG. 1 is a flow diagram that illustrates the data flow between a challenger and a prover in some embodiments of the attestation system. At initialization, the prover generates and records constituent measurements of resources and the combined measurement of the resources. The combined measurement may be recorded in a platform configuration register of a trusted platform module. A challenger 110 initiates the attestation process by sending 111 a request for measurements to a prover 120. Upon receiving 121 the request, the prover retrieves 122 the constituent measurements that were recorded at initialization. The prover then sends 123 the constituent measurements to the challenger as an assertion by the prover of the constituent measurements of the combined measurement. When the challenger receives 112 the assertion of the constituent measurements, the challenger verifies 113 the asserted constituent measurements by comparing the constituent measurements for each resource to known-good measurements for that resource. If the challenger verifies the constituent measurements, the challenger sends 114 a request for a combined measurement to the prover. Upon receiving 124 the request for the combined measurement, the prover retrieves 125 the combined measurement generated at initialization, for example, from a platform configuration register of a trusted platform module. The prover then sends 126 the combined measurement as an assertion to the challenger. Upon receiving 115 the assertion of the combined measurement, the challenger generates 116 a combined measurement from the asserted constituent measurements previously received and compares 117 the generated combined measurement to the asserted combined measurement. If the combined measurements match, then the challenger indicates 118 that the assertion is verified, else the challenger indicates that the assertion is not verified. In some embodiments, the challenger may send a single request for both the constituent measurements and the combined measurement, and the prover may send a single response that contains both, referred to as a single-step attestation. The sending of separate requests for the constituent measurements and for the combined measurement is referred to as a two-step attestation.
FIG. 2 is a block diagram that illustrates components of the attestation system in some embodiments. The attestation system 200 includes components from a challenger 210 and a prover 220. The challenger includes a verify assertion component 211, a verify measurements component 212, a verify combined measurement component 213, and a measurement repository 214. The challenger invokes the verify assertion component to verify an assertion of the prover. The verify assertion component invokes the verify measurements component to verify the asserted constituent measurements and invokes the verify combined measurement component to verify the asserted combined measurement. The measurement repository 214 includes whitelists for various resources that indicate known-good measurements values for the resources. The prover includes a trusted computing module 221, firmware 222, a BIOS 223, a boot loader 224, an operating system 225, and a process assertion request component 226. The trusted computing module may include platform configuration registers for storing combined measurements of resources of the prover. The resources may include components of a software stack that includes the firmware, BIOS, boot loader, and operating system. The process assertion request component receives requests for assertions sent from a challenger via communication channel 230 and retrieves the constituent measurements of the combined measurement generated at initialization by extending a platform configuration register of the trusted computing module. At initialization, the prover may generate the constituent measurements and the combined measurement by an authenticated code module of the firmware generating a constituent measurement for the BIOS for extending a PCR. Control may then be passed to a module of the BIOS to generate a constituent measurement for next component of the software stack (e.g., the boot loader) for extending the PCR. This process continues up the software stack until the PCR has been extended to include all the measurements defined for that PCR. The process assertion request component sends the combined measurement and the constituent measurements as an assertion to the challenger. In some embodiments, the constituent measurements may be provided by a computer system other than the prover. For example, such a computer system may maintain the constituent measurement for each resource of a prover. Whenever the configuration of a prover changes, the computer system may update the constituent measurements. In this way, existing servers need not be modified to support attestation using dynamic whitelisting. Also, when a server initializes, it may provide its asserted combined measurement to a computer system for distribution to challengers. Alternatively, the computer system may verify the asserted combined measurement and notify clients whether the server can be trusted. In such a case, the computer system is considered to be the challenger.
The computing devices (i.e., computer systems) on which the attestation system may be implemented may include a central processing unit, input devices, output devices (e.g., display devices and speakers), storage devices (e.g., memory and disk drives), network interfaces, graphics processing units, accelerometers, cellular radio link interfaces, global positioning system devices, trusted platform modules, and so on. The input devices may include keyboards, pointing devices, touch screens, gesture recognition devices (e.g., for air gestures), head and eye tracking devices, microphones for voice recognition, and so on. The computing devices may include desktop computers, laptops, tablets, e-readers, personal digital assistants, smartphones, gaming devices, servers, and computer systems such as massively parallel systems. The computing devices may access computer-readable media that include computer-readable storage media and data transmission media. The computer-readable storage media are tangible storage means that do not include a transitory, propagating signal. Examples of computer-readable storage media include memory such as primary memory, cache memory, and secondary memory (e.g., DVD) and include other storage means. The computer-readable storage media may have recorded upon or may be encoded with computer-executable instructions or logic that implements the attestation system. The data transmission media is used for transmitting data via transitory, propagating signals or carrier waves (e.g., electromagnetism) via a wired or wireless connection.
The attestation system may be described in the general context of computer-executable instructions, such as program modules and components, executed by one or more computers, processors, or other devices. Generally, program modules or components include routines, programs, objects, data structures, and so on that perform particular tasks or implement particular data types. Typically, the functionality of the program modules may be combined or distributed as desired in various embodiments. Aspects of the attestation system may be implemented in hardware using, for example, an application-specific integrated circuit (“ASIC”).
FIG. 3 is a flow diagram that illustrates the processing of a verify assertion component of a challenger in some embodiments. The verify assertion component 300 receives an assertion provided by a prover that includes a combined measurement and constituent measurements and determines whether the assertion can be verified. In block 301, the component invokes the verify measurements component to verify the asserted constituent measurements. In decision block 302, if the asserted constituent measurements can be verified, then the component continues at block 303, else the component returns an indication that the asserted constituent measurements cannot be verified. In block 303, the component invokes a verify combined measurement component to verify the asserted combined measurement. In decision block 304, if the asserted combined measurement can be verified, then the component returns an indication that the assertion is verified, else the component returns an indication that the asserted combined measurement cannot verified to match the generated combined measurement.
FIG. 4 is a flow diagram that illustrates the processing of a verify measurements component of a challenger in some embodiments. The verify measurements component 400 is provided asserted constituent measurements and verifies whether all the asserted constituent measurements are known-good measurements. In block 401, the component selects the next asserted constituent measurement. In decision block 402, if all the asserted constituent measurements have already been selected, then the component returns an indication that the asserted constituent measurements have been verified, else the component continues at block 403. In block 403, the component selects the next known-good measurement for the resource of the selected asserted constituent measurement. In decision block 404, if all such known-good measurements have already been selected, then no known-good measurement has been found for the selected asserted constituent measurement and the component returns an indication that the asserted constituent measurements are not verified, else the component continues at block 405. In decision block 405, if the selected asserted constituent measurement matches the selected known-good measurement, then the selected asserted constituent measurement has been verified and the component loops to block 401 to select the next asserted constituent measurement, else the component loops to block 403 to select the next known-good measurement for the resource of the selected asserted constituent measurement.
FIG. 5 is a flow diagram that illustrates the processing of a verify combined measurement component of a challenger in some embodiments. The verify combined measurement component 500 receives an asserted combined measurement and asserted constituent measurements and verifies whether a combined measurement generated from the asserted constituent measurements matches the asserted combined measurement. In block 501, the component selects the next asserted constituent measurement. In decision block 502, if all the asserted constituent measurements have already been selected, then the component continues at block 504, else the component continues at block 503. In block 503, the component generates the combined measurement by hashing the previously generated combined measurement with the selected asserted constituent measurement and then loops to block 501 to select the next asserted constituent measurement. In decision block 504, if the generated combined measurement matches the asserted combined measurement, then the component returns an indication that the assertion has been verified, else the component returns an indication that the assertion has not been verified. In some embodiments, the component may cache a combined measurement for an assertion that has been verified in a cached whitelist of combined measurements and use that cached whitelist to verify a subsequent assertion of that combined measurement without having to regenerate that combined measurement. The attestation system may also be used to pre-calculate a whitelist of combined measurements. To pre-calculate a whitelist, the attestation system may perform the processing of blocks 501-503 for each possible combination of constituent measurements and store the combined measurements in the whitelist. The whitelist can be provided to a challenger to verify assertions without having to regenerate combined measurements.
FIG. 6 is a flow diagram that illustrates the processing of a perform two-step attestation component of a challenger in some embodiments. The perform two-step attestation component 600 is invoked by a challenger to perform a two-step attestation process that includes first requesting a prover to provide asserted constituent measurements and verifying the asserted constituent measurements and then requesting the prover to provide an asserted combined measurement and verifying the asserted combined measurement. In block 601, the component sends a request for the constituent measurements. In block 602, after receiving the assertion of the constituent measurements for the prover, the component invokes a verify measurements component to verify the asserted constituent measurements. In decision block 603, if the asserted measurements are verified, then the component continues at block 604, else the component returns an indication that the asserted constituent measurements have not been verified. In block 604, the component sends to the prover a request for a combined measurement. In block 605, after receiving the assertion of the combined measurement, the component checks the signature of the asserted combined measurement to ensure that it was signed by the prover. For example, the prover may sign the asserted combined measurement with a private key and the challenger may use the corresponding public key to check the signature. In decision block 606, if the signature is valid, then the component continues at block 607, else the component returns an indication that the signature is not valid. In block 607, the component invokes the verify combined measurement component to verify the asserted combined measurement. In decision block 608, if the asserted combined measurement is verified, then the component returns an indication that the asserted combined measurement has been verified, else the component returns an indication that the asserted combined measurement has not been verified.
FIG. 7 is a block diagram that illustrates components of a process assertion request of a prover in some embodiments. The process assertion request component 700 is provided a request for an assertion sent by a challenger and generates and sends the corresponding assertion. In block 701, the component retrieves the constituent measurements of the combined measurement. In block 702, the component retrieves the combined measurement, for example, from a platform configuration register of a trusted computing module. The combined measurement may be signed by the trusted computing module. In block 703, the component sends the constituent measurements and the combined measurement as an assertion to the challenger and then completes.
From the foregoing, it will be appreciated that specific embodiments of the invention have been described herein for purposes of illustration, but that various modifications may be made without deviating from the scope of the invention. As one example, in some embodiments, the attestation system may make policy decisions based on “blacklists” of “known-bad” measurements of malware, instead of whitelists of known-good measurements of valid resources. For each resource, however, the number of known-bad measurements will often be much larger than the number of known-good measurements. As a result, in existing systems, the storage requirements for blacklists for combined measurements would be even larger than for whitelists. The attestation system may allow blacklists to be employed to identify bad resources (e.g., malware) using resource-specific blacklists to avoid the high storage requirements and without needing to perform the complete PCR computation. In some embodiments, the attestation system may use a combination of both whitelists and blacklists or may use rules or algorithms to classify computer systems based on asserted measurements. Accordingly, the invention is not limited except as by the appended claims.

## Claims

1. A method performed by a challenger computer system (“challenger”) to verify an assertion of a prover computer system (“prover”), the method comprising:
receiving from the prover an assertion asserting a combined measurement of constituent measurements of resources and a constituent measurement for each of the resources;
checking whether a list of known-good combined measurements includes the asserted combined measurement;
in response to the list including the asserted combined measurement, indicating that the assertion is verified; and
in response to the list not including the asserted combined measurement,
for each of the asserted constituent measurements of resources, determining whether that constituent measurement matches a known-good constituent measurement for the corresponding resource;
generating a combined measurement from the asserted constituent measurements;
determining whether the asserted combined measurement matches the generated combined measurement; and
in response to each constituent measurement matching a known-good measurement and the asserted combined measurement matches the generated combined measurement, indicating that the assertion is verified; and
adding the asserted combined measurement to the list to avoid the overhead of verifying the asserted constituent measurements and generating a combined measurement when the same asserted combined measurement is subsequently received.

2. The method of claim 1 wherein the asserted combined measurement is a value from a platform configuration register of the prover.

3. The method of claim 1 wherein the generated combined measurement is generated as a chain of hashes of asserted constituent measurements.

4. The method of claim 1 wherein the asserted combined measurement is generated by a trusted computing platform of a computing system of the prover.

5. The method of claim 4 wherein the asserted combined measurement is a value from a platform configuration register of the trusted computing platform.

6. The method of claim 1 wherein the resources include software components of the prover.

7. The method of claim 1, further comprising, when an asserted constituent measurement does not match a known-good measurement, indicating that the assertion is not verified.

8. The method of claim 7, further comprising, when an asserted constituent measurement does not match a known-good measurement, suppressing the generating of the combined measurement.

9. The method of claim 1 wherein the challenger and prover are computer systems.

10. A prover computer system (“prover”) comprising:
a trusted platform component for storing a combined measurement, in a list of known-good combined measurements, that is generated from constituent measurements for resources of the prover that can be trusted as representing the resources;
a storage medium storing computer-executable instructions that send to a challenger computer system (“challenger”) the combined measurement and the constituent measurements as assertions of the prover so that the challenger can check whether the asserted combined measurement is a known-good combined measurement by checking whether the list includes the asserted combined measurement, and in response to the list not including the asserted combined measurement, for each of the asserted constituent measurements of resources, determining whether that constituent measurement matches a known-good constituent measurement for the corresponding resource; generating a combined measurement from the asserted constituent measurements; determining whether the asserted combined measurement matches the generated combined measurements; and in response to each constituent measurement matches a known-good measurement and the asserted combined measurement matches the generated combined measurement, indicating that the assertion is verified; and adding the asserted combined measurement to the list to avoid the overhead of verifying the asserted constituent measurements and generating a combined measurement when the same asserted combined measurement is subsequently received; and
a processor for executing the computer-executable instructions stored in the storage medium.

11. The prover of claim 10 wherein the computer-executable instructions further send to the challenger an indication of an algorithm used to generate a constituent measurement.

12. The prover of claim 10 wherein the computer-executable instructions further send to the challenger a version number associated with a software component that generates a constituent measurement.

13. The prover of claim 10 wherein the resources include computer instructions and configuration information.

14. The prover of claim 10 wherein the resources include a measured launch environment and an operating system kernel.

15. The prover of claim 10 wherein the trusted platform component generates the combined measurement using a hash chaining of the constituent measurements.

16. The prover of claim 10 wherein the computer-executable instructions further generate a constituent measurement independently of the trusted platform component.

17. A computer-readable storage medium storing computer-executable instructions for controlling a challenger computer system (“challenger”) to verify an assertion of a prover computer system (“prover”), the computer-executable instructions comprising instructions that:
receive the assertion of the prover asserting a combined measurement of constituent measurements of resources of the prover generated by a trusted platform module of the prover and, for at least some of the resources, asserting constituent measurements for the resources;
determining whether a list of known-good combined measurements includes the asserted combined measurement;
in response to the list including the asserted combined measurement, indicating that the assertion is verified; and
in response to the list not including the asserted combined measurement for each of the asserted constituent measurements of the resources, determining whether the constituent measurement matches a known-good constituent measurement for the corresponding resource; generating a combined measurement from the asserted constituent measurements; determining whether the asserted combined measurement matches the generated combined measurement; and in response to each of the asserted constituent measurements matching a known-good constituent measurement and the asserted combined measurement matching a combined measurement generated from the asserted constituent measurements, indicating that the assertion is verified, and that the asserted combined measurement is a known-good combined measurement, and adding the asserted combined measurement to the list to avoid the overhead of verifying the asserted constituent measurements and generating a combined measurement when the same asserted combined measurement is subsequently received.

18. The computer-readable storage medium of claim 17 wherein the asserted constituent measurements are output by the trusted platform module.

19. The computer-readable storage medium of claim 17 wherein the asserted constituent measurements are generated by software of the prover that is not part of the trusted platform module.

20. The computer-readable storage medium of claim 17, further comprising instructions that generate a known-good measurement for a resource from sub-constituent measurements of sub-resources of the resource asserted by the prover.