TPM 2.0 (Trusted Platform Module) provides the concept of multiple hierarchies to support different levels of security for various types of operations and to allow for separation of duties. TPM 2.0 hierarchies are:
-
Endorsement Key (EK) Hierarchy: This is a unique, unchangeable key that is used to attest to the identity and integrity of the TPM itself. It's used for platform and TPM attestation.
-
Storage Root Key (SRK) Hierarchy: This key is used to protect data that is stored in the TPM's NV (Non-Volatile) memory. The SRK is used to encrypt and decrypt keys and data that are stored in the TPM.
-
Key Storage Hierarchy: This is where user or application keys are stored. These keys can be used for encryption, decryption, signing, or verification.
-
Signing Key Hierarchy: This hierarchy is used for creating and managing keys that are used for digital signatures.
The use case for multiple hierarchies is to ensure that each type of operation can be protected and managed independently, with appropriate levels of security. For example, the SRK might be used for day-to-day operations, while the EK is reserved for higher-security tasks like remote attestation.
A concrete example of requiring different hierarchies might be in a situation where a TPM is used for both secure boot and data encryption on a device. Secure boot uses the EK hierarchy to ensure that the boot process is trusted, while data encryption uses the SRK hierarchy to encrypt the user's data. In this scenario, the EK is used for a one-time bootstrap of the system to ensure that the initial bootloader and operating system are authentic and have not been tampered with. Once the system is up and running, the SRK is used to generate and manage keys for encrypting user data. This separation of duties ensures that if the system is compromised, the keys used for data encryption are not compromised via the EK, which is used only for secure boot.