Apple T2: Public APIs for independent watchdog control and rollback-resistant application state?

Hello,

I am developing a safety-critical, automated application on a MacBook Air (Retina, 13-inch, 2020, Intel) running macOS 15.

I am investigating whether the Apple T2 Security Chip can provide a hardware-backed trust boundary independent of the host macOS kernel.

I have reviewed Apple's Platform Security documentation and the public Security and CryptoKit APIs for Secure Enclave key protection.

I would appreciate clarification on two specific questions:

1. Independent watchdog control

Is there any public, supported API that allows a third-party macOS application to configure a hardware-backed watchdog that remains effective when the entire host macOS kernel becomes unresponsive?

If so, can it enforce a bounded-time host reset or shutdown independently of host OS execution?

2. Rollback-resistant application state

Does the T2 or its Secure Enclave expose a public, supported mechanism for maintaining an application-defined monotonic counter or small persistent state record that cannot be rolled back by restoring an older host filesystem or database snapshot on the same Mac?

Specifically, I need to distinguish the latest committed application state from an older, previously valid state, including after a crash or reboot.

I understand that hardware-backed signatures and non-exportable private keys alone do not necessarily establish state freshness or prevent replay of previously signed records.

If neither capability is available through public, supported APIs on Intel-based T2 Macs, an explicit clarification would also be very helpful.

I am not requesting private APIs, firmware modifications, reverse engineering, or changes to macOS security settings.

Thank you for your technical guidance.

Answered by DTS Engineer in 919241022

Is there any public, supported API that allows a third-party macOS application to configure a hardware-backed watchdog that remains effective when the entire host macOS kernel becomes unresponsive?

No.

If you’d like to see such support added in the future, I encourage you to file an enhancement request describing your requirements.

And if you do file such an ER, please post your bug number, just for the record.

Does the T2 or its Secure Enclave expose a public, supported mechanism for maintaining an application-defined monotonic counter or small persistent state record that cannot be rolled back by restoring an older host filesystem or database snapshot on the same Mac?

An SE-protected key should work for this. When you erase the Mac the new iteration of the SE won’t work with keys created by the old iteration.

This does, of course, assume that SIP is disabled. If you disable SIP then you can’t trust your own code, which undermines any security guarantees that you think you have.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Is there any public, supported API that allows a third-party macOS application to configure a hardware-backed watchdog that remains effective when the entire host macOS kernel becomes unresponsive?

No.

If you’d like to see such support added in the future, I encourage you to file an enhancement request describing your requirements.

And if you do file such an ER, please post your bug number, just for the record.

Does the T2 or its Secure Enclave expose a public, supported mechanism for maintaining an application-defined monotonic counter or small persistent state record that cannot be rolled back by restoring an older host filesystem or database snapshot on the same Mac?

An SE-protected key should work for this. When you erase the Mac the new iteration of the SE won’t work with keys created by the old iteration.

This does, of course, assume that SIP is disabled. If you disable SIP then you can’t trust your own code, which undermines any security guarantees that you think you have.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"