I enable the TPM in a ubuntu which is installed in vmware workstation. and then i install tpm2-tools with the following command:
sudo apt-get install tpm2-tools
then i parse the TPM event log which is in /sys/kernel/security/tpm0/binary_bios_measurement with the following commadn:
tpm2_eventlog /sys/kernel/security/tpm0/binary_bios_measurement
you can download the output in the following link: https://s16.picofile.com/file/8427251934/output.txt.html and also you can download the TPM eventlog in the following link: https://s16.picofile.com/file/8427252018/binary_bios_measurements.html
i want to know each of the events that TPM computes hash for it belongs to which file or program and also see the path of that file or program. what should i do? is there this information in TPM event log but tpm2-tools which i installed don't parse it? or this information doesn't exist in the TPM event log at all? how can obtain this information?
The
Event:
field holds the encoding of each event. The details of the encoding depend on the specific event type, so no general answer can be given.Your initial example showed two events:
The events of type
EV_IPL
are generated by the GRUB boot loader (reference).You can hex-decode the event string using e.g.
xxd
(reference):