ladar / sedutil

Use sedutil for setting up and using self encrypting drives (SEDs) that comply with the TCG OPAL 2.00 standard. This includes the requisite pre-boot authentication image.
https://trustedcomputinggroup.org/work-groups/storage/
80 stars 24 forks source link

Granular user locking range control (with ACEs) #38

Open AncientRepositoryOfKnowledge opened 1 month ago

AncientRepositoryOfKnowledge commented 1 month ago

I like the addition of being able to add users to be able to read and write lock the global locking range.

It would be great to be able to control which users can unlock which ranges. This has the benefit of effectively supporting multi-tenancy on consumer level hardware (on enterprise hardware one would just add namespaces and configure OPAL on them seperately), as each locking range's crypto can be bound to the passphrase of the user (as I understand it anyway). If the key for only one locking range is in the SED's memory, only the data in this locking will be accessible if the firmware is compromised remotely (instead of the admin key being in memory thus granting an attacker control over the whole device).

From the OPAL spec it looks like this can be done with ACE_Locking_RangeNNNN_Set_RdLocked but I see that the command --addUserToLockingACEs only adds access to the global locking range with ACE_Locking_Range_GLOBAL_Set_RdLocked.

Would such a thing able to be added (if I understand OPAL correctly)?