-
Notifications
You must be signed in to change notification settings - Fork 44
Description
If pycreateuserpkg is used to change the password of an existing Secure Token holder on a Mac with a Secure Enclave (SEP), things get into not immediately obvious broken state. The user will still appear as if they have a Secure Token (when checked with sysadminctl -secureTokenStatus, but they will not be able to do Secure Token actions, such as enable a Secure Token for another user. Also, they will no longer be able to change their own password via System Preferences. I've attached a picture showing both of these errors. I have not tested what happens if FileVault were enabled. I suspect that the user password may no longer work to unlock FileVault which would be very bad.
I have currently only tested this on a T2 Mac, but I would suspect the same issue would occur on an Apple Silicon Mac. I'm not sure if the Secure Enclave T1 Macs are used for password and Secure Token storage in the same was as T2 or Apple Silicon though.
Unless there is some way to get things back in sync, I think the safest course of action would be to prevent pycreateuserpkg from changing passwords on Secure Token holding accounts on Macs with Secure Enclaves.
I had hoped that maybe running diskutil apfs updatePreboot / could help get things back in sync. And while it did complete successfully, it did not fix the issue.
