App Attest keys stop working after reboot on macOS 27.2.1
On macOS 27.2.1 (26B131), I can reproduce the following in a Developer ID macOS app:
- Generate and attest a new App Attest key.
- Generate assertions successfully, including across separate app launches.
- Reboot the Mac and log back into the same account.
- Call generateAssertion with the same key ID: it fails with DeviceCheck error 0.
I tested two fresh keys created on this OS version; both worked before reboot and failed afterwards. The app and key IDs were unchanged, and isSupported remained true.
System logs show:
SecKeyCreateSignature failed
CryptoTokenKit Code=-3: unable to sign digest
AKSError=-536362989
A similar failure with the same signing error is reported here:
https://github.com/Layr-Labs/d-inference/issues/1161#issuecomment-5824088914
Their workaround involves generating and attesting replacement keys.
Is this a known issue? Is there a supported way to keep existing App Attest keys usable across reboots?
Reported through Feedback Assistant: FB25075690