Who is responsible for calculating the Platform Configuration Register (PCR) value? Is the operation system or the TPM?
What if the operating system is hacked? Can the hacked system always calculate the "right" PCR value to fool the verifier?
Who is responsible for calculating the Platform Configuration Register (PCR) value? Is the operation system or the TPM?
What if the operating system is hacked? Can the hacked system always calculate the "right" PCR value to fool the verifier?
The TCG PC Client Platform Firmware Profile specification defines these usages. It depends on which PCRs you're discussing.
If BIOS/UEFI code is hacked, then the hacked code is able to pretend that it's not by replaying legit PCR measurements. This is why it's important to have a Hardware Root of Trust which checks the signature of the first mutable code that runs on the processor. For PCs, this is BIOS/UEFI code. AMD's answer for this is AMD Secure Boot. Intel's is Boot Guard. ARM has CryptoCell.