Trusted Platform Module Part 4

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *

Already have an account? Sign In »

8 hours 10 minutes
Video Transcription
Hi, I'm Matthew Clark and this is lesson for 10 trusted platform module, Part four.
In this lesson, we'll talk about TPM states and the C R T M.
We'll also talk more about the PCR and measured boot and then we'll tie everything we've learned in the last four lessons together. So let's get started. OK, so let's do a quick review. Let's talk about certification authorities and the ownership process
within certification authorities. There's really two main that we've talked about. The trusted platform module entity or TPM. Me and the privacy. See A So let's talk about the TPM me it creates in signs of certificate called an endorsement credential, and the TPM E is usually the TPM manufacturer.
The science certificate provides assurance that the public key is properly tied to the private key
that the private KIIS securely held within the TPM and that the TPM properly follows the TCG standards.
The Prophecy C A is used for creation of at a station identity keys or ai cakes.
So the privacy see a receives a request from the TPM for the creation of an ai que and the TPM uses AI case as aliases for the endorsement key. To be able to establish identity,
the TPM sends its public endorsement key to the privacy. C A. And remember, the the endorsements key is only used for two reasons but taking ownership in creating a I cakes.
So then the privacy see a creates the ai Que, which gives third party assurance that the trusted components
PCR entries can be trusted to attest to the state of the trusted platform or, in other words, the TPM. PCR injuries can be trusted to test the state of the platform.
Let's talk about the take ownership process. This process creates the owner authorization data, which is like a password for the owner to use,
and it creates a storage root key. Both of these air on Leah's good as long as the owner has possession of the trusted platform.
So let's talk about TPM states. A TPM can exist in several states and some of these at the same time. The first state is if the TPM is owned or unknown.
Unknown is the default state. The TPM is shipped down.
If owned, then the take ownership process has been executed and all TPM operations are available. This requires an endorsement key pair from the TPM E and a secret owner authorization data that's set by the owner during the take ownership process.
The second state is if the TPM is activated or deactivated.
If activated, that all features air available. If deactivated, then this is similar to the disabled state. With the exception that states can change, it can switch to activated
and and you can change ownership. Of course, this requires the secret owner authorization data.
The third state is if the TPM is disabled or enabled.
If disabled, the TPM restricts all operations except the ability to report the TPM capabilities and the ability to accept updates to the P. C. R s.
If enabled, then all features air available proving providing that ownership has been established, meaning the TPM has to be in a owned state.
Now the TPM can exist in conflicting states where one state allows for an operation and the other state disallows it,
such as disabled and owned. Where disabled restricts all the operations and owned, enables the operations in these cases the most restrictive state winds.
And let's talk a little bit about the code root of trust for measurement. The C R T M.
We first introduced this concept in less than 4.7 when we learned about the measured boot process. It contains the instructions executed by the platform when it acts as the RTM. The route trust of for measurement,
the code root of trust for measurement, uses program code, which refers to the code that is used to start the device or, in other words, the firmware.
The court mom also adheres to the root of trust principal
as long as the program code is stored permanently in a tamper proof location than it was considered trustworthy. And there's no need to check the integrity of the code because it's installed securely during the manufacturing process.
However, the TPM can be configured to perform a self test on the RTM.
The C R TM can be stored either inside the TPM or outside the TPM in a secure storage associated with a typical boot operations such as a rahm. And this is most likely the location where we stored
Can the CRT M B changed with CRT M is injected during manufacturing and it can be immutable, meaning it's never changed after manufacturing, which is probably the preferred method, or it can be changed. But that would require a secure process to be built to change it
with appropriate cryptographic techniques in order to update it while in the field.
A router trust for measurement on RTM is different than the code router Trust for measurement. The C R T M
don't get confused by the 21 is the root of trust and the others program code.
So let's talk a little bit about platform configuration registers or PCR s. We've spoken so much about PCR s that they almost feels like an old friend.
The primary purpose of the PCR is to provide a method to cryptographic Lee record or measure the software state. Both the software running on the platform and the configuration data used by that software,
integrity measurements or metrics stored in these registers measure the integrity of any code from BIOS, tap locations and typically before the code is executed.
So I know the PCR stores data and the Ai Ki ai que signs the data in the PCR. But how does the PCR work? Well, that's a great question.
The PCR stores data and set registers and I'll show you the example of register in a minute
when a new calculation is made, the existing data and the register is not deleted. Instead, the register is extended through a process called and extend, which is a one way hash so measurements can't be removed.
The understanding that process is really beyond the scope of this class. Just know that PCR data is not deleted
was extended
and PCR stored in volatile Ram. There's there's a minimum of 12, 120 bit registers,
and PCR is removed when the power is removed from the TPM,
so registers must be reset whenever the system loses power or restarts.
If not, then the previous integrity metrics might remain in storage.
The TPM never passes judgment on the measurements
internally. It really doesn't know which measurements are quote good or bad,
much less if a process is mawr or less secure or trusted. All it knows is the values that it's measured.
It takes an added station process in order to pass judgment,
and T PM's can typically use of Shaw one or another hashing algorithm.
The PCR uses registers, the store values and the locations air pre defined by the implementation. So this is just merely an example.
Each location in the register can be programmed to record a specific function,
and the PCR axes a retainer. For those measurements, which represent a safe boot process, the values in the PCR again are not overridden but their extended.
In this example, you can see where the PCR registry zero through 15 or map to very specific functions. Where PCR zero is mapped to the BIOS code, PCR one is mapped, the BIOS, configuration and so forth and so on.
So here we are at the measured boot process. Ah, lot of what we've been talking about throughout the TPM lessons have laid the groundwork for our final topic.
This is where we ended our first lesson, and this is where we'll end our last lesson on this topic.
Measured boot built off the premise of a root of trust. It uses ah hardware root of trust.
The TPM component adds other routes of trust, which eventually enabled measured boot.
This process measures each of the components in the next stage of the boot process to verify that components integrity,
the overall purpose of a measured boot is to detect unauthorized software or configurations,
so let's talk about how it works. The TPM measured boot process begins when the device is booted. It starts with a core root of trust for measurement. The CRT M, which is the first piece of code to run it stored and protected secure storage either inside or outside of the TPM and a trusted boot block.
The C R T M is considered trusted because the code is injected during a trusted manufacturing process.
The RTM integrity is not measured by any external code.
The first action is that the RTM may conduct a self test, but this is not required.
When completed, the TPM will measure the BIOS and send the hash value to the platform configuration register the PCR bank.
The PCR Acts is a retainer for measurements which represent a safe boot process.
The values and the PCR not over written their extended
and each time a PCR is extended. Ah, long entry is made in the TCG event log.
The TCG event log allows you to reconstruct individually the PCR interests. So you have a method to see all the changes and to reconstruct changes from single entries.
The PCR can then verify that the measurements are correct.
If the measurements do not match, then an action can occur, such as a rollback procedure to return the module to the last known good before moving on to the next measurement step.
Remember, vendors have the ability to implement TPM anyway that they wished so long as they follow the TCG standard for TPM.
This process continues with the TPM measuring the boot loader next and then the next component and so forth with each preceding component in the boot chain measuring the following component until the devices successfully booted. So the CRT M measures the BIOS.
The BIOS measures the boot loader. The boot loader measures C. O S
and the OS measures the applications. Unlike a secure boot process, Ah, measured boot does not inhibit the usage of the system.
Insecure boot. If the component does not match, then the process halts.
The TPM process tracks the last known good state of the system.
Advanced implementations can roll back modules that have aberrations from previous measurements.
A ni O T devices ability to self heal by rolling back to the last known good state is a vital attribute especially when most coyote devices are deployed outside of a defined security perimeter.
Okay, so this is probably one of the longest lessons that we have so far, but it's important to pull it all together, and I'd like to end with this word cloud. It's really great. So here's all the all the different words that we've been using, and the amount of times that we've been using them
and I use a lot of resource is in my lessons. But sometimes a resource just absolutely stands out for its clarity and ability to really communicate a topic. And I'd like to call out Alan Tom Wilson, a professor at Virginia Tech. I have a reference to his paper introduction to the TPM and the reference section
Absolutely worth the read.
Please go read his paper.
If you ever get to take a class from him, I bet it is amazing.
I'd like to thank him for helping me personally understand several. These concepts and his writings, which I feel I've leaned liberally on, have really helped me learn this topic
again. Thanks for hanging in there.
In this lesson, we completed our trip into the mysterious world of trusted platform modules. We discussed the TPM state and the code root of trust. We moved onto platform configuration registers and finally we reviewed it all. So I'll see you next time.
Up Next