Is the macOS 27 App Attest SIP check a csr_check() wrapper, or is SIP state actually attested?

On macOS 27, App Attest attestations include a key access control property (the aclBlob, OID 1.2.840.113635.100.8.6) that Apple says reflects SIP and Full Security mode being enabled. Is this just a wrapper around the CSR check (csr_check / what csrutil status reads) at attestation time, or is the SIP state actually enforced by the Secure Enclave and bound to the attested key?

Is this just a wrapper around the CSR check (csr_check / what csrutil status reads) at attestation time, or is the SIP state actually enforced by the Secure Enclave and bound to the attested key?

It is the latter - there is no CSR check involved. The SIP and full security enabled properties are attached to the key generated by App Attest. When the attestation API is invoked, the key is decoded by the SEP. At this point, the SEP uses the SIP + full security state that it captured at boot time and compares it with the policy that is required on the key.

So, if the value of the 1.2.840.113635.100.8.6 OID is not the same as the value outlined in this section, it cannot be trusted.