Presentation is loading. Please wait.

Presentation is loading. Please wait.

Assignment #7 โ€“ Solutions

Similar presentations


Presentation on theme: "Assignment #7 โ€“ Solutions"โ€” Presentation transcript:

1 Assignment #7 โ€“ Solutions

2 Problem 1a Migrating secrets between platform configurations on a single machine. TPM command to seal ๐‘†: ๐ถ=๐‘†๐‘’๐‘Ž๐‘™( ๐พ ๐ธ๐‘ƒ๐‘ˆ๐ต,๐ด ,๐‘†,๐‘ƒ๐ถ ๐‘… 0 ,๐‘ƒ๐ถ ๐‘… 1 ,๐‘ƒ๐ถ ๐‘… 2 ,๐‘ƒ๐ถ ๐‘… 3 ,๐‘ƒ๐ถ ๐‘… 4 ,๐‘ƒ๐ถ ๐‘… 5 ) TPM command to unseal ๐ถ and retrieve ๐‘†: ๐‘ˆ๐‘›๐‘ ๐‘’๐‘Ž๐‘™( ๐พ ๐ธ๐‘ƒ๐‘…๐ผ๐‘‰,๐ด ,๐ถ,๐‘ƒ๐ถ ๐‘… 0 ,๐‘ƒ๐ถ ๐‘… 1 ,๐‘ƒ๐ถ ๐‘… 2 ,๐‘ƒ๐ถ ๐‘… 3 ,๐‘ƒ๐ถ ๐‘… 4 ,๐‘ƒ๐ถ ๐‘… 5 ) 11/27/2018 Practical Aspects of Modern Cryptography

3 Problem 1b Patching part of the measured OS
Before applying the patch, the OS needs to seal ๐‘† to the set of new PCR values that match the patched OS and save this sealed value away Then, after patching, the PCR values of the patched OS will update and allow this sealed value to be unsealed. ๐‘†๐‘’๐‘Ž๐‘™( ๐พ ๐ธ๐‘ƒ๐‘ˆ๐ต,๐ด ,๐‘†,๐‘ƒ๐ถ ๐‘… 0 ,๐‘ƒ๐ถ ๐‘… 1 ,๐‘ƒ๐ถ ๐‘… 2 ,๐‘ƒ๐ถ ๐‘… 3 ,๐‘ƒ๐ถ ๐‘…โ€ฒ 4 ,๐‘ƒ๐ถ ๐‘…โ€ฒ 5 ) 11/27/2018 Practical Aspects of Modern Cryptography

4 Problem 2 Migrating secrets between machines with TPMs
Basic idea: use ๐‘†๐‘’๐‘Ž๐‘™ (without any PCR values) to encrypt ๐‘† to ๐ตโ€™s TPM. ๐ด needs a copy of ๐ตโ€™s public encryption key for ๐‘†๐‘’๐‘Ž๐‘™, so ๐ด queries the PKI (or perhaps B itself) for a copy of the PKIโ€™scertificate issued to ๐พ ๐ธ๐‘ƒ๐‘ˆ๐ต,๐ต . ๐ด verifies that the cert chains properly to the PKIโ€™s trusted root, then extracts ๐พ ๐ธ๐‘ƒ๐‘ˆ๐ต,๐ต from the certificate With ๐พ ๐ธ๐‘ƒ๐‘ˆ๐ต,๐ต , ๐ด computes ๐ถ=๐‘†๐‘’๐‘Ž๐‘™( ๐พ ๐ธ๐‘ƒ๐‘ˆ๐ต,๐ต ,๐‘†) ๐ด then sends ๐ถ to ๐ต B computes ๐‘ˆ๐‘›๐‘ ๐‘’๐‘Ž๐‘™ ๐พ ๐พ๐‘ƒ๐‘…๐ผ๐‘‰,๐ต ,๐ถ =๐‘†. 11/27/2018 Practical Aspects of Modern Cryptography

5 Problem 3 Migrating secrets between machines with TPMs with assurance of equivalent software stacks Before sending ๐‘† to ๐ต (in any form), ๐ด should receive from ๐ต some proof that ๐ต โ€ฒ ๐‘  OS boot sequence (measured by PCRs 0-5) is the same as ๐ด โ€ฒ ๐‘ . When ๐‘† is transmitted to ๐ต, ๐ด should ensure that ๐‘† will only be accessible on ๐ต if the same software stack is running on ๐ต as on ๐ด at the time the migration begins. 11/27/2018 Practical Aspects of Modern Cryptography

6 Problem 3a โ€œBefore sending ๐‘† to ๐ต (in any form), ๐ด should receive from ๐ต some proof that ๐ต โ€ฒ ๐‘  OS boot sequence (measured by PCRs 0-5) is the same as ๐ด โ€ฒ ๐‘ .โ€ ๐ด can request an attestation from ๐ต to something that includes PCRs 0-5. To make sure the attestation is โ€œfreshโ€, ๐ด should send a random challenge value to ๐ต and ask ๐ต to ๐‘„๐‘ข๐‘œ๐‘ก๐‘’ that. ๐ด ๏ƒ  ๐ต: random value ๐‘… (say 128 bits of random) ๐ต ๏ƒ  ๐ด: ๐‘„=๐‘„๐‘ข๐‘œ๐‘ก๐‘’( ๐พ ๐‘†๐‘†๐ผ๐บ,๐ต ,๐‘…, ๐‘ƒ๐ถ ๐‘… 0 ,๐‘ƒ๐ถ ๐‘… 1 ,โ€ฆ, ๐‘ƒ๐ถ ๐‘… 5 ) ๐ด verifies the signature on ๐‘„, checks ๐‘… hasnโ€™t changed, checks ๐‘ƒ๐ถ ๐‘… 0 ,โ€ฆ, ๐‘ƒ๐ถ ๐‘… 5 . 11/27/2018 Practical Aspects of Modern Cryptography

7 Problem 3b ๐ด uses ๐‘†๐‘’๐‘Ž๐‘™ to encrypt ๐‘† to ๐ต and the values of PCRs 0-5
โ€œWhen ๐‘† is transmitted to ๐ต, ๐ด should ensure that ๐‘† will only be accessible on ๐ต if the same software stack is running on ๐ต as on ๐ด at the time the migration begins.โ€ ๐ด uses ๐‘†๐‘’๐‘Ž๐‘™ to encrypt ๐‘† to ๐ต and the values of PCRs 0-5 We assume ๐ด has a copy of ๐ต โ€ฒ ๐‘  public encryption key ๐พ ๐ธ๐‘ƒ๐‘ˆ๐ต,๐ต Using ๐พ ๐ธ๐‘ƒ๐‘ˆ๐ต,๐ต , ๐ด computes ๐ถ=๐‘†๐‘’๐‘Ž๐‘™( ๐พ ๐ธ๐‘ƒ๐‘ˆ๐ต,๐ต ,๐‘†, ๐‘ƒ๐ถ ๐‘… 0 ,๐‘ƒ๐ถ ๐‘… 1 ,โ€ฆ, ๐‘ƒ๐ถ ๐‘… 5 ) ๐ด then sends ๐ถ to ๐ต B computes ๐‘ˆ๐‘›๐‘ ๐‘’๐‘Ž๐‘™ ๐พ ๐พ๐‘ƒ๐‘…๐ผ๐‘‰,๐ต ,๐ถ, ๐‘ƒ๐ถ ๐‘… 0 , ๐‘ƒ๐ถ ๐‘… 1 , โ€ฆ, ๐‘ƒ๐ถ ๐‘… 5 =๐‘†. 11/27/2018 Practical Aspects of Modern Cryptography


Download ppt "Assignment #7 โ€“ Solutions"

Similar presentations


Ads by Google