OSDev.org

The Place to Start for Operating System Developers
It is currently Mon May 06, 2024 4:17 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: TPM (Trusted Platform Module) - Multiple OS Any experience?
PostPosted: Wed Sep 23, 2020 1:22 am 
Offline
Member
Member

Joined: Tue Jun 30, 2020 2:09 pm
Posts: 33
Location: Langeskov, Denmark
Hi,

I'm currently investigating some details about TPM and how they work.
I know the functionality the chips provide, so my question is more in the sense,
if/how they can operate if one has a dual boot environment.

For example Microsoft states that Windows will automatically take "ownership" of the chip, which will mean that anything in the chip will be cleared?
(https://docs.microsoft.com/en-us/window ... e-overview)

So if I have my favorite Operating System installed which has ownership over the TPM and have stored keys for my disk encryption,
if I then later install Windows, will Windows then automatically clear the TPM and take ownership, leaving me with a encrypted partition for my favorite system I can no longer decrypt?

Anyone who has experience in this direction? Or maybe knows some good sources?
Also if it is possible to use the TPM cross Operating Systems.

Cheers,
Rhodez


Top
 Profile  
 
 Post subject: Re: TPM (Trusted Platform Module) - Multiple OS Any experien
PostPosted: Wed Sep 23, 2020 8:23 pm 
Offline
Member
Member

Joined: Wed Nov 18, 2015 3:04 pm
Posts: 396
Location: San Jose San Francisco Bay Area
I studied several years and despite small size, it is extremely complicated device and still had not understood it fully.
It logs the BIOS's various component's hash measurement in a daisy chained manner to establish root of trust from the system power on. And trust goes on until OS finishes booting. Meaning of any of the components measure and hashed changes, it raises flag.
There is part of it that O/S can use it to store pub/priv(sealed) key in the chip and use it to encrypt disk i.e. bitlocker. There are myriad of other applications.

So there is a storage area to store these assymetrical keys and registers to store hashes. Since device is small and not powerful, it only seems to provide seed from which other keys can be derived and use for various purpose.
It also providers function to generate random numbers.

_________________
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails


Top
 Profile  
 
 Post subject: Re: TPM (Trusted Platform Module) - Multiple OS Any experien
PostPosted: Fri Sep 25, 2020 2:58 pm 
Offline
Member
Member

Joined: Tue Jun 30, 2020 2:09 pm
Posts: 33
Location: Langeskov, Denmark
Thanks for the reply ggodw000.

What you have wrote are also my understanding of the chip.

Today I finally managed to "talk" with the chip from Linux with tpm2-tools.
I'm pretty sure that I managed to take "ownership" over the chip, and set some owner password and lockout password.
I don't know in how much detail you have examined it. As you say, it is extremely complicated.

But even if i try to set the disableClear attribute. Which I have understood should say that the chip cannot be cleared without a valid password.
I can still clear the entire chip from the "UEFI/BIOS"-settings without any form of validation.
Is it really true that I cannot possibly set a password or create a secret, which has to be present if a clear should happen in any way, also directly at the machines UEFI/BIOS-settings?

I just ask if someone should know it by chance?

Cheers Rhodez


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group