PCR registers:
0 - Core system firmware executable code
1 - Core system firmware data/host platform configuration
4 - Boot loader and additional drivers
5 - GPT/Partition table
7 - SecureBoot state
8 - GRUB - Commands and kernel command line
9 - GRUB - All files read (including kernel image)
Check if SecureBoot is enabled:
Detecting the TPM 2.0 device:
Enrolling the hardware token, binding to PCRs 0, 1, 4, 5, 7, 8, 9:
verify:
show LUKS keyslots:
verify used PCRs:
Append /etc/crypttab with "tpm2-device=auto"
Install tmp2-tss:
Upgrade GRUB config:
Upgrade initramfs:
Verify initramfs:
read the SHA-256 PCR bank:
check TPM2 event log:
Kernel update
Kernel update changes 1,4,8,9 PCRs.
Need to perform once agin:
Disclaimer:
For better security use UKI instead of GRUB in your Ubuntu setup.