Web Authorization Protocol K. McGuinness Internet-Draft Independent Intended status: Standards Track 31 October 2026 Expires: 4 May 2027 Attested Instance Keys for Client ID Metadata Document Software Statements draft-mcguinness-oauth-cimd-sw-stmt-attested-latest Abstract A software statement for a Client ID Metadata Document (CIMD) binds a review of client software to the exact bytes of that document. It does not, by itself, bind an installation of that software to a key. This specification defines an instance-binding extension in which an independently trusted client attester attests an installation's key for the reviewed document. The client proves that key through attestation-based client authentication when opening and continuing an authorization code grant. When an attester can verify which software controls an installation's key, as on managed devices, this specification permits native applications, including command-line clients, to use loopback redirects while satisfying a policy requiring reviewed software. The specification defines attestation and metadata requirements, processing at the pushed authorization request and token endpoints, and the exceptions to the base software statement rules needed for attested keys. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 4 May 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction 1.1. Protocol Overview 2. Conventions and Definitions 3. Scope and Profile Selection 3.1. Required Binding 4. Client Metadata 4.1. Loopback Redirects 5. Attester Trust and Evidence 6. Instance Attestation 6.1. Validation 6.2. Proof of Possession 7. Runtime Admission 7.1. Pushed Authorization Request 7.2. Establishment 7.3. Browser Authorization 7.4. Authorization Code Redemption 8. Refresh 9. Withdrawal and Trust Changes 10. Exceptions to Software Statement Processing 11. Error Responses 11.1. Error Codes 11.2. Error Precedence and Disclosure 11.3. Authorization Endpoint 12. Examples 12.1. Reviewed Client Metadata 12.2. Instance Attestation 12.3. Pushed Authorization Request and Code Redemption 12.4. Refresh and Replacement 13. Authorization Server Metadata 14. Implementation Considerations 14.1. Bounding Establishments and Pending Requests 14.2. Grant State 14.3. Signing Brokers 14.4. User Interface, Audit, and Logging 15. Deployment Considerations 15.1. Revocation and Enforcement Latency 15.2. Attester Enrollment 15.3. Evidence Age and Token Lifetime 16. Security Considerations 16.1. Software Evidence and Key Use 16.2. Loopback and Transaction Theft 16.3. Downgrade Prevention 16.4. Artifact Substitution and Key Separation 16.5. Freshness and Availability 16.6. Resource Exhaustion 17. Privacy Considerations 18. IANA Considerations 18.1. OAuth Dynamic Client Registration Metadata Registry 18.2. OAuth Authorization Server Metadata Registry 18.3. JSON Web Token Claims Registry 18.4. Media Type Registration 18.5. Values Defined Elsewhere 19. References 19.1. Normative References 19.2. Informative References Appendix A. Managed Command-Line Client Deployment A.1. Example: macOS Appendix B. Operational Consequences Acknowledgments Author's Address 1. Introduction A native application's installations cannot safely authenticate by a private key distributed in every copy of the software. Each installation can generate its own key, but possession of that key establishes continuity, not the identity of the software using it. A copied Client ID Metadata Document (CIMD) URL [CIMD] and software statement can be presented with an attacker's own key. [STATEMENT] therefore treats a presentation under a document containing a redirection URI that another application on the same device could claim as review-only: the server evaluates the statement but admits nothing on it, and such a presentation cannot satisfy a policy requiring reviewed software. This excludes loopback redirects, even though they are an established response-delivery mechanism for native applications under [RFC8252]. Existing mechanisms do not provide reviewed-software admission for loopback clients. Loopback redirects with Proof Key for Code Exchange (PKCE) [RFC7636] protect an authorization code from interception, but any application can start a transaction with a native client's identifier, the client impersonation that Section 8.6 of [RFC8252] describes. Attestation-based client authentication [ABCA] alone shows that an installation holds a key an attester vouches for, not that the installation runs the software a statement issuer approved for a particular document. The public-client binding of [STATEMENT] relies on redirection URIs no other application can claim, which loopback URIs are not. This specification defines an alternative binding made of three elements, which stay separate even when one organization operates both issuing roles: * The software statement records approval of the software, as its publisher identifies it (Section 5), and its exact metadata. * An instance attestation, from an independently trusted client attester under an evidence policy the authorization server accepts, associates an installation's key with that software and metadata. * A proof under attestation-based client authentication demonstrates possession of that key. The callback delivers the authorization response; it supplies no evidence of the presenter's software identity. This specification serves authorization code flows using pushed authorization requests (PAR) [RFC9126] and refresh of the resulting grants. It defines neither registration nor new token-endpoint presentations for other grants. [REGISTRATION] is unchanged: it rejects loopback redirects, so a document selecting this profile is never registered, whatever the statement_uses claim of a statement over it permits. Neither [STATEMENT] nor [REGISTRATION] depends on this specification. The binding is only as strong as the attester's evidence that the software, not merely the device or the user, controls the key (Section 16.1). Such evidence is available today mainly on managed devices, through an enterprise agent or launcher (Appendix A). On an unmanaged desktop, or for an interpreted command-line client, an attester typically cannot meet the requirements of Section 5, and the client remains review-only under [STATEMENT]. 1.1. Protocol Overview The following non-normative sequence summarizes admission under this profile: 1. A publisher serves a CIMD that selects this profile and declares attestation-based client authentication and loopback redirects. A statement issuer signs a software statement over its exact bytes. 2. An installation obtains an attestation from an accepted attester. The attestation names the client identifier URL, metadata digest, instance key, and evidence policy. 3. The installation sends a pushed authorization request with PKCE, the attestation, and a Demonstrating Proof of Possession (DPoP) proof. It supplies the software statement or lets the server pull it. 4. The server validates both trust decisions (in the statement issuer and in the attester) and their bindings before returning a request_uri. 5. The user authorizes in an external browser. The code returns over loopback and is redeemed with the PKCE verifier and the attested key. 6. Refresh requires the proven key, a current instance attestation, and a current software statement. A different key requires a new grant. 2. Conventions and Definitions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. This specification uses terminology from [RFC6749], [RFC7591], [CIMD], and [ABCA], the terms defined in Section 2 of [STATEMENT], and the terms defined in [LIFECYCLE]. An installation is a Client Instance as defined by [ABCA]. This specification depends on [LIFECYCLE], because continuous review and replacement are part of its security model: every refresh requires a current statement, refusal records are enforced at code redemption and refresh, and a replacement statement keeps a grant in step with a later review (Section 8, Section 9). This specification defines the following terms: Instance Attestation: A Client Attestation JWT under [ABCA], profiled by Section 6. It records an attester's association of a key with a client identifier URL and metadata digest under a named evidence policy. An instance attestation is current while its exp has not passed and its attester and evidence policy remain accepted. Evidence Policy: A versioned set of requirements for establishing the association between software, an instance key, and reviewed metadata. It covers evidence collection, verification, freshness, and protection of key use. Attested Key: The key an instance attestation's cnf claim names. The software statement's issuer and the client attester are separate roles. One entity can perform both, but neither role implies trust in the other. 3. Scope and Profile Selection An authorization server implementing this specification MUST support PAR, PKCE with S256 [RFC7636], DPoP [RFC9449], and the attest_jwt_client_auth_dpop method of [ABCA], which uses a DPoP proof as the proof of possession (Sections 5.2 and 7.3 of [ABCA]). Clients MUST use that method at the PAR endpoint and at every token request under this specification. This profile does not support the Client Attestation PoP JWT (Section 5.1 of [ABCA]). Each installation holds its own credential, the attested key, so a client under this profile is a confidential client although it is a native application, as Section 8.4 of [RFC8252] contemplates for per- instance credentials. The client selects this profile by publishing the software_statement_instance_binding client metadata member with the value true in its reviewed document (Section 4). A server creates a new establishment under the profile only if the server supports this specification, the reviewed document selects the profile, and all admission checks succeed. Once an establishment is created, its recorded binding selects the profile for every continuation. Selection MUST NOT depend on whether a continuation happens to include an attestation or on a newly fetched document omitting the selection member. Such omissions fail the request; they do not change the grant's binding. This specification permits only the authorization code grant opened through PAR, and refresh of that grant. It does not authorize private-use URI schemes, localhost hostnames, non-loopback redirects, implicit responses, device authorization, client credentials, or assertion grants. Other specifications can define additional bindings without changing the behavior of this profile. 3.1. Required Binding A server requiring reviewed software for a client namespace or tenant MUST enforce that requirement even when the requester omits every review artifact or presents a statement over an earlier document. A server requiring this binding MUST reject attempts to open a grant under an alternative authentication method, through a direct authorization request, or through another grant type. These requirements MUST be based on server policy, not inferred only from artifacts a requester can withhold. The server MUST enforce the reviewed binding selection on every new admission under a reviewed document that selects this profile. A deployment permitting unrelated unreviewed clients can continue to do so under its own policy, but a failed request under this profile is rejected rather than admitted under that policy (Section 7.1). Any independently admitted unreviewed client carries none of the assurance of this specification. 4. Client Metadata This specification defines the following member of a CIMD: software_statement_instance_binding: OPTIONAL. Boolean value. When true, the client requires this profile for admissions under this document. If absent or false, the document does not select this profile. A value of any other type is invalid. A document selecting this profile MUST meet all of the following requirements: * Its client_id is its HTTPS document URL, as required by [CIMD]. * Its token_endpoint_auth_method is the single string attest_jwt_client_auth_dpop. No alternative authentication method is offered under this profile. * Its grant_types member explicitly contains authorization_code and MAY also contain refresh_token. It contains no other grant type. * Its response_types explicitly contains only code. * Its redirect_uris is a nonempty array, every member of which meets Section 4.1. * It contains neither the jwks nor the jwks_uri member. Instance keys are authorized only through Section 6.1, not by document key material. The document MAY contain the software_statements_uri member as defined by [STATEMENT]. Metadata governing requested access, such as scope, remains subject to that specification. Every member, including the binding selection, is covered by the statement's digest. 4.1. Loopback Redirects Every reviewed redirection URI MUST use http, have the host exactly 127.0.0.1 or [::1], and contain an absolute path. User information and fragments MUST NOT be present. A reviewed entry MUST NOT contain a port: the client uses the port of its listener, which Section 7.3 of [RFC8252] lets the server accept. The document MAY list both address forms. The server MUST compare a requested redirect with a reviewed entry using exact string matching, except for the port variation permitted by Section 7.3 of [RFC8252]. No other component can vary: the address form, path, and any query remain fixed. In particular, a wildcard path, a hostname resolving to loopback, an alternative numerical spelling of the address, and a different loopback address do not match. The client MUST bind its listener only to the selected loopback interface, open it before sending the pushed authorization request, and close it when the transaction completes or is abandoned. It can obtain an available ephemeral port from the operating system, as Section 7.3 of [RFC8252] anticipates. The authorization code is delivered to that listener; the authorization server MUST NOT fetch the redirection URI to test the listener. 5. Attester Trust and Evidence An authorization server MUST establish attester trust independently of the request. For each accepted attester it MUST configure: * The exact attester iss identifier and how the attester's verification keys are resolved. Section 10.8 of [ABCA] recommends that a profile fix key resolution. Keys are resolved by one of the following: - An x5c certificate chain ([RFC7515]) validated to a configured trust anchor, together with a configured mapping from the certificate to this attester, such as an exact subject or subject alternative name. Sharing a trust anchor with another attester does not authorize a key for this attester's iss. - A kid matched against a JWK Set configured for this attester. A jku is followed only if it names that configured JWK Set. * Accepted asymmetric signing algorithms. * Client identifier namespaces for which the attester can issue instance attestations. * Accepted evidence-policy identifiers and, for each, a finite maximum evidence age. * Tenant restrictions and any requirements for a particular attester or policy within a tenant. * Clock-skew and evidence-freshness requirements and any local denial rules for instance keys. The server MUST use the tenant determined for the grant by its own trusted processing, as [STATEMENT] requires. A client-supplied tenant label is not sufficient. The server MUST NOT infer attester trust from a statement issuer's signature, from the client document, or from a key-location value in the attestation. An iss, a jku or x5u header parameter ([RFC7515]), or a similar value in an unverified JWT MUST NOT cause unconfigured key discovery. Retrieval from a configured key source is subject to the retrieval protections that [STATEMENT] applies to the retrievals it causes, and the server MUST NOT reuse retrieved trust data, including an attester's key set, beyond a finite maximum reuse period of its own choosing. The server cannot observe how an attester reached its decision, so it relies on the evidence policy. An evidence policy is acceptable for reviewed-software admission only if it meets all of the following requirements: * Before issuing each instance attestation, the attester verifies control of the private instance key through an authenticated, replay-resistant exchange bound to the submitted public key. * The attester evaluates evidence about the software instance and protection of key use, and sets each attestation's exp no later than the time that evidence was collected plus the policy's maximum evidence age. The attester rounds or randomizes exp (Section 11.1 of [ABCA]) only toward an earlier time, a constraint this profile adds. A previous attestation is not evidence: a renewal rests on new evidence under the same bound. * The attester establishes an authenticated association between the software identity and the client identifier URL, retrieves and validates the document under [CIMD], and calculates its digest under [STATEMENT]. * The attester confirms that the artifact or package identity established by the evidence is covered by that association for the document version the attestation names. The association is authorized by whoever controls the origin of the client identifier URL, or by an authority that controller has explicitly delegated, for example through a manifest served from that origin or signed under that controller's or delegate's authority. An enterprise inventory can authenticate or record such an authorization; listing a package and someone else's client identifier URL together does not create one. A URL, file path, digest, or publisher name asserted only by the requesting process does not suffice. The metadata digest is not an executable digest. * The policy defines what identifies the software, how evidence authenticates that identity and the instance key, how use of the key is restricted to the software instance the evidence covers, a finite maximum evidence age, and the treatment of updates, scripts, plugins, and other executable extensions. * The policy's identifier denotes immutable policy semantics: a material policy change requires a new identifier. * The policy establishes an association between the software the statement covers and control of the attested key. User approval of a key, a publisher account login, possession of a shared embedded secret, or device integrity alone does not establish that association. A server MUST NOT accept for this profile an evidence policy that does not meet these requirements. A server can use weaker evidence for other purposes but MUST NOT report it as satisfying this profile. A statement approves the document and the software that its publisher (the controller of the document URL's origin, or a delegate) associates with it, not a particular executable. The publisher decides which releases that association covers, under the evidence policy's treatment of updates, so a new release with unchanged metadata needs no new statement. This profile cannot enforce an issuer's approval of particular releases. Attestation acquisition and platform evidence formats are out of scope. They require an interoperable agreement between the installation and its attester; the wire format below does not by itself supply a software-verification mechanism. Appendix A gives an implementation model and its prerequisites. 6. Instance Attestation An instance attestation is a Client Attestation JWT (Section 4 of [ABCA]) with the following additional requirements. Section 4 of [ABCA] permits additional claims, and Section 13 of [ABCA] permits a profile its own typ. Together with the document's selection of this profile (Section 3), its type tells a server that this profile applies. Its typ JOSE header parameter MUST have the value cimd- instance-attestation+jwt, which is the media type of Section 18.4 without its application/ prefix. It MUST be digitally signed using an accepted asymmetric algorithm. A MAC or none MUST NOT be accepted. Its header and claims MUST contain no duplicate member names. Validation MUST apply [RFC8725]. The attestation contains the following claims. The sub, iat, exp, and cnf claims also retain the requirements of Section 4 of [ABCA]. iss: REQUIRED. The attester's identifier, an HTTPS URL without a fragment. It is matched exactly against the configured attester iss identifier (Section 5). URL normalization MUST NOT be used to broaden that match. sub: REQUIRED. It MUST be the exact client identifier URL. aud: OPTIONAL. If present, the receiving server MUST validate it under [RFC7519] against its own issuer identifier ([RFC8414]). The proof targets a particular endpoint (Section 6.2). The attestation can be used at more than one authorization server. iat: REQUIRED. It is not an evidence timestamp, and an attester can round or randomize it as Section 11.1 of [ABCA] recommends. exp: REQUIRED. It MUST be later than the iat claim. It bounds the age of the evidence behind the attestation, as the accepted evidence policy requires (Section 5). cnf: REQUIRED. The attested key ([RFC7800]), in the form Section 4 of [ABCA] requires. cimd_digest: REQUIRED. The metadata digest defined by [STATEMENT], computed over the document the attester evaluated. This claim has the same representation and comparison rules as in a software statement. Its use here records the attester's software-to- metadata association, not a second software review. cimd_instance_policy: REQUIRED. A string containing an absolute URI identifying the evidence policy under which the attester attested the instance key. The URI is an identifier, not a retrieval instruction. It MUST be compared exactly with an accepted policy identifier. A server MUST reject an attestation whose exp claim has passed or is later than the current time plus the maximum evidence age it accepts for the attester and evidence policy. It MUST NOT reject an attestation only because its iat claim was rounded or randomized. No field supplied by the client can extend these bounds. An attestation is not tied to a statement's jti, so a statement renewed over unchanged bytes need not cause re-attestation. 6.1. Validation At each pushed authorization request, code redemption, and refresh, the authorization server MUST validate the instance attestation and its proof. It MUST verify all of the following before accepting the binding: * The attestation meets Section 6 and the applicable [ABCA] validation requirements. * The signature verifies with a key authorized for the exact iss, for this artifact type and accepted algorithm. * The attester and policy are currently accepted for this client identifier and tenant, and the key is not denied by local policy. * The request's client_id, the software statement's sub, and the attestation's sub are exactly equal. * The attestation's cimd_digest, the applicable software statement's cimd_digest, and the digest of the reviewed document are equal. * The attested key and the key of the DPoP proof are equal under the key-comparison rules of Section 7.3 of [ABCA]. On continuation, the proven key and the recorded attester, policy, and tenant constraints of Section 7.2 also apply. The server MUST NOT treat an attestation for another digest as permission to update metadata without the software statement replacement required by Section 8. A server MUST NOT accept a software statement as an instance attestation, or an instance attestation as a software statement. Software statement signing keys retain the separation requirements of [STATEMENT], so they never sign instance attestations, even if one organization performs both roles. 6.2. Proof of Possession The client sends the instance attestation in the OAuth-Client- Attestation HTTP header field and uses DPoP combined mode under Section 7.3 of [ABCA]. It MUST NOT also send the OAuth-Client- Attestation-PoP HTTP header field, and the server MUST reject a request under this profile that does. A dpop_jkt parameter alone is not a proof. The authentication method and its validation remain those defined by [ABCA]; this profile supplies the attestation's type and additional bindings. The authorization server MUST require a server-issued DPoP nonce at the PAR endpoint and on every token request under this profile. It MUST enforce endpoint and method binding and reject replay of a proof within its acceptance window under [RFC9449]. Nonce challenges and retries use the use_dpop_nonce error code and the DPoP-Nonce HTTP header field. They do not consume a code, rotate a refresh token, create an establishment, or advance the iat floor. A request rejected before the instance is authenticated, or rejected with use_fresh_attestation or temporarily_unavailable, has none of these effects either, so the client can retry with a fresh attestation. If the pushed authorization request also carries the dpop_jkt parameter, Section 10.1 of [RFC9449] requires the server to reject the request unless the dpop_jkt value is the JWK thumbprint ([RFC7638]) of the DPoP proof's key, which Section 6.1 makes the attested key. A client MUST generate a new proof for each request, including a retry. TLS protects request contents. DPoP does not sign the request body, and implementations MUST NOT treat a valid proof as a signature over the redirection URI, PKCE challenge, or statement. 7. Runtime Admission This section specifies processing at the pushed authorization request, authorization, and token endpoints when a grant is opened under this profile. 7.1. Pushed Authorization Request The client MUST start every grant under this profile at the PAR endpoint. Its request MUST include client_id, response_type=code, redirect_uri, and a PKCE code_challenge with code_challenge_method=S256. It MAY include the state parameter: the server requires PKCE (Section 13), so the client can rely on PKCE for CSRF protection, as Section 2.1 of [RFC9700] permits. It MUST authenticate under Section 6.2. A request using a Request Object MUST meet [RFC9126] and MUST NOT provide conflicting parameter values; the following checks apply to the effective authorization request. The client presents its software statement using software_statement as defined by [STATEMENT], or the server obtains a statement through that specification's pulled-statement mechanism. Before returning a successful PAR response, the server MUST: 1. Validate request syntax and the client identifier, resolve the applicable tenant, and authenticate the instance under Section 5, Section 6, and Section 6.2. Checks needing no client-controlled retrieval precede such retrieval. 2. Validate the selected statement under [STATEMENT], including issuer and tenant policy, audience, effective expiry, and permission for runtime presentation, and apply the refusal records and the applicable iat floor of [LIFECYCLE]. If statements are pulled, step 3 resolves the document first, since the document names where statements are published, and the retrieval and selection rules of [STATEMENT] apply. 3. Resolve the CIMD and perform the digest and metadata checks of [STATEMENT]. Parse the same bytes the server digested, enforce Section 4, and complete the cross-artifact checks of Section 6.1. 4. Validate the requested redirect under Section 4.1, require PKCE S256, and evaluate the request against the reviewed metadata and authorization policy. 5. Create or reuse an establishment under Section 7.2, bind the accepted request to it, and return a PAR response under [RFC9126]. For step 1, authentication establishes the attester, policy, client identifier, and attested key; it is not yet reviewed-software admission. An attestation whose digest has not been checked cannot establish the client. The ordering of statement checks before client-controlled retrieval in [STATEMENT] applies once a statement is available. The retrieval rules of [STATEMENT] and [CIMD], including their protections against server-side request forgery, apply throughout, and [STATEMENT] describes how a server can bound the work these retrievals cause. If any required check fails, the server MUST NOT fall back to review- only or unreviewed admission for the same request. A request that carries no instance attestation for a document selecting this profile is an example: the server learns from the document (step 3) that this profile applies, then rejects the request with invalid_client. If the instance authenticates (step 1) but no statement is presented or remains after selection, it returns statement_required. A failed request MUST NOT advance the iat floor or alter an existing establishment. 7.2. Establishment An establishment records all state required by [STATEMENT] and, in addition: * That this instance-binding profile governs the grant. * The exact attester identifier and evidence-policy identifier. * The attester trust decision. The proven key is the attested key, which is also the DPoP key. Authorization transactions that share an establishment (Section 14.2) still retain separate PKCE challenges, redirects, state, resource- owner decisions, and continuation state. The client identifier, tenant, key, attester, policy, and binding profile MUST remain fixed for the lifetime of the grant. Changing any of them requires a new grant opened through PAR. A fresh attestation that keeps these values can renew the grant's evidence, and a software statement replacement can update the grant's reviewed metadata only as Section 8 permits. Neither operation changes these values. 7.3. Browser Authorization The client MUST use an external user-agent under [RFC8252]. The browser authorization request MUST use the request_uri parameter from the PAR response and the same client_id parameter. It MUST NOT carry the software statement, instance attestation, or an instance proof. The server MUST use the stored PAR parameters and MUST NOT allow front-channel parameters to change the redirect, PKCE challenge, key binding, or tenant. When the client's CIMD selects this profile or server policy requires it, the server MUST reject a direct authorization request without a PAR request_uri governed by this profile. A statement pulled at the authorization endpoint cannot create an exception to that requirement. The server authenticates the resource owner and applies authorization policy independently of the software and instance checks. It MUST return the authorization response with the issuer identifier in the iss parameter defined by [RFC9207]. The client MUST validate that identifier, and the state parameter if it sent one, against the transaction before redeeming a code. Callback validation and OAuth security requirements in [RFC8252] and [RFC9700] continue to apply. 7.4. Authorization Code Redemption The client sends grant_type=authorization_code, the code, the same client_id and redirect_uri, and the PKCE code_verifier. It MUST authenticate with a current instance attestation and a fresh proof under the proven key. It does not send the software_statement parameter, which [STATEMENT] prohibits on code redemption. Before issuing tokens, the server MUST verify the code and PKCE binding and every fixed establishment value in Section 7.2. It MUST re-evaluate both trust decisions, require the recorded statement to be unexpired and not refused, and confirm that the current CIMD still matches its recorded digest and meets Section 4. Retrieval and cache reuse use the reuse bounds of [STATEMENT]. The attestation MUST match that digest and not be past its exp. If the metadata changed or the recorded statement needs replacement, the client MUST start a new PAR transaction; code redemption cannot replace the governing review. A raised iat floor alone does not invalidate a code already bound to an acceptable recorded statement. The server MUST issue tokens only within the user's authorization, tenant policy, and reviewed metadata. It MUST bind any refresh token to the establishment, and MUST issue access tokens, at redemption and on refresh (Section 8), bound to the proven key with a token_type of DPoP (Section 5 of [RFC9449]). The expiry of each access token, whether the token is a JWT or an opaque reference, MUST NOT be later than the exp of the instance attestation accepted for the request that obtained it (Section 15.3). A resource server that does not accept DPoP-bound access tokens cannot be used under this profile. 8. Refresh Every refresh request MUST carry the original client identifier, the refresh token, a current instance attestation, and a fresh DPoP proof under the establishment's proven key. The server MUST authenticate the instance, verify the refresh-token binding, and enforce the fixed values of Section 7.2 before accepting any replacement statement. On every refresh the server MUST require a current software statement and re-evaluate its issuer trust decision. This strengthens the statement-currency check of [LIFECYCLE], which is recommended once the recorded statement expires. It MUST also verify that the currently served document matches the applicable statement and attestation digests and continues to meet Section 4. A document that no longer selects this profile or meets Section 4, for example one that omits the software_statement_instance_binding member or names another authentication method, fails the refresh. The refresh is then rejected with invalid_grant without seeking a replacement, as [STATEMENT] rejects a refresh whose document no longer carries the proven key. The recorded statement can remain applicable while it is unexpired, not refused, and matches the current document, even if a newer statement has raised the iat floor for new admissions. If it no longer qualifies, a replacement is required. The client can present a replacement in software_statement, or a server that supports pulled statements pulls one, however the establishment was created, as [LIFECYCLE] specifies. A replacement MUST satisfy the replacement validation of [LIFECYCLE], including identical statement iss and sub claims, a later iat claim, and current metadata. Its decision MUST apply to the establishment's recorded tenant and runtime use. Instead of authorizing a document key or preserving the public-client conditions that [LIFECYCLE] requires of a replacement, the replacement MUST preserve this profile and authorize the establishment's proven key through a current attestation from the recorded attester under the recorded policy. The replacement and attestation MUST name the same current metadata digest. A replacement cannot expand access beyond the original grant, resource-owner authorization, or current server policy. On success, the server MUST apply the replacement to the refreshed grant alone, as [LIFECYCLE] does, atomically updating that grant's recorded statement, metadata, digest, and trust decisions under the concurrency rules of [LIFECYCLE]. A failed attempt MUST NOT replace the recorded binding or rotate a refresh token. This does not prevent the server from recording a withdrawal or trust removal learned during processing, or applying independent refresh-token replay protections. Attestation renewal for the proven key is not key rotation and does not reset the iat floor or an establishment count. 9. Withdrawal and Trust Changes A known refusal record for the software statement is enforced as [LIFECYCLE] requires. A current replacement can restore continuation only under Section 8. A server using a statement withdrawal mechanism SHOULD consult it at code redemption, within that mechanism's freshness rules, as [LIFECYCLE] provides for refresh. A failure to retrieve metadata, statements or their status, or trust updates MUST NOT extend a recorded expiry or remove a refusal. Because Section 6.1 checks current attester trust and local denial rules at each pushed authorization request, code redemption, and refresh, removing an attester's authorization for this client and tenant, removing the policy, or denying the instance key prevents further use of the affected binding. A fresh attestation does not override those decisions. A server that cannot refresh trust data remains bound by the maximum reuse period of Section 5. This specification defines no interoperable attestation or instance revocation protocol. Without an instance revocation mechanism, an instance attestation's exp bounds acceptance of evidence that has become stale without the server learning of it. Withdrawal of a review, removal of trust, and denial of an instance key do not themselves revoke access tokens already issued (Section 15.1). 10. Exceptions to Software Statement Processing For establishments governed by this specification, the following rules replace or add to the corresponding rules of [STATEMENT], cited by section number, and of [LIFECYCLE]: +===========+==========================+==========================+ |Section |Rule |Under this profile | +===========+==========================+==========================+ |4 |A required issuer |A presentation processed | | |configured for software |under Section 7.1 is not | | |whose presentations are |review-only, so a current | | |review-only excludes that |statement from the | | |software from the tenant. |required issuer can admit | | | |the software. | +-----------+--------------------------+--------------------------+ |5.5 |A statement pulled at the |The binding is set at the | | |authorization endpoint |PAR endpoint; an | | |binds the presenter at |authorization request | | |code redemption. |without a PAR request_uri | | | |governed by this profile | | | |is rejected (Section 7.3).| +-----------+--------------------------+--------------------------+ |5.1, 5.2 |The statement and the |The instance is | | |document are checked |authenticated first | | |before the proof. |(Section 7.1, step 1). | | | |Statement and document | | | |checks follow, and checks | | | |needing no client- | | | |controlled retrieval still| | | |precede such retrieval. | +-----------+--------------------------+--------------------------+ |5.2, 5.5, |A request without an |No fallback: any failed | |5.6.3 |acceptable statement can |check rejects the request | | |proceed under the policy |(Section 7.1). | | |for unreviewed clients, a | | | |review-only presentation | | | |proceeds as a client | | | |presenting no statement, | | | |and a digest mismatch can | | | |proceed without the | | | |statement. | | +-----------+--------------------------+--------------------------+ |5.6.1 |The proven key appears in |The proven key is the | | |the reviewed document's |attested key | | |jwks or at its jwks_uri. |(Section 6.1), and the | | | |document carries no key | | | |material (Section 4). | +-----------+--------------------------+--------------------------+ |5.6.2, |A redirection URI another |A presentation processed | |5.6.3 |application could claim |under Section 7.1 whose | | |makes a presentation |redirects meet Section 4.1| | |review-only, and a |is not review-only. The | | |document declaring |client is confidential and| | |token_endpoint_auth_method|authenticates with the | | |of none without such a URI|method of Section 3, so | | |is bound by its |the public-client rules do| | |redirection URIs. |not apply. | +-----------+--------------------------+--------------------------+ |5.7 |Redemption checks the |Redemption also requires | | |client identifier and key,|the recorded statement to | | |not the statement's |be unexpired and | | |expiry. |unrefused, and the current| | | |document to match the | | | |recorded digest | | | |(Section 7.4). | +-----------+--------------------------+--------------------------+ |5.7.1 |Refresh checks possession |Refresh verifies a current| | |of the proven key and that|attestation of the proven | | |the currently served |key instead of its | | |document still carries |presence in the document | | |that key. |(Section 8). | +-----------+--------------------------+--------------------------+ |5.1 and 5.2|A current statement on |Every refresh requires a | |of |refresh is recommended |current statement and re- | |[LIFECYCLE]|once the recorded |checks the document | | |statement expires, and the|against the recorded | | |document's digest is |digests (Section 8). | | |checked only for a | | | |replacement. | | +-----------+--------------------------+--------------------------+ |6.3 |Code redemption is |Redemption can also return| | |rejected with |invalid_client or | | |invalid_request, |invalid_client_attestation| | |invalid_grant, or, at the |for failed authentication,| | |establishment bound, |statement_required, | | |invalid_client. |use_fresh_attestation, or | | | |temporarily_unavailable | | | |(Section 11.1). | +-----------+--------------------------+--------------------------+ |6.4 |A client not admitted on a|A missing or invalid | | |statement receives |required pushed | | |statement_required. |authorization request is | | | |rejected with | | | |invalid_request | | | |(Section 11.3). | +-----------+--------------------------+--------------------------+ Table 1 Code redemption and refresh continue an establishment and are not new token-endpoint presentations, so the rejection in [STATEMENT] of a token-endpoint presentation that opens a new grant for a client whose document declares token_endpoint_auth_method of none is unchanged. All other requirements of [STATEMENT] and [LIFECYCLE] continue to apply. This specification applies equally to presented and pulled statements. It adds no requirement to issue statements or implement [REGISTRATION]. A supporting server MUST NOT infer this profile's assurance from successful generic client authentication without all of this specification's checks. 11. Error Responses The error rules of [STATEMENT], [LIFECYCLE], [ABCA], and [RFC9449] apply. This specification defines no new error code. 11.1. Error Codes The following error codes apply to pushed authorization requests, code redemption, and refresh, except where a condition names a particular endpoint. They are defined by Section 5.2 of [RFC6749] (invalid_request, invalid_client, and invalid_grant), Section 7.4 of [ABCA] (use_fresh_attestation, and invalid_client_attestation, which can replace invalid_client for a failed attestation or proof), Section 8 of [RFC9449] (use_dpop_nonce), and [STATEMENT] (statement_required, and temporarily_unavailable at the token and pushed authorization request endpoints, extending Section 4.1.2.1 of [RFC6749]). Other OAuth errors, such as invalid_scope, continue to apply to their respective failures. invalid_request: Malformed or conflicting request parameters, or a software_statement parameter on code redemption. invalid_client: Missing or unacceptable attestation, untrusted attester or policy, a request carrying the OAuth-Client- Attestation-PoP header field, a DPoP proof under a key other than the attested key, or, at the PAR endpoint, a request carrying an instance attestation for a document that does not select this profile or violates Section 4. use_fresh_attestation: An otherwise valid attestation that this profile treats as not fresh enough (Section 7.4 of [ABCA]): its exp has passed, or it names a digest other than that of the document currently served while that document matches the applicable statement. use_dpop_nonce: Missing or unacceptable server DPoP nonce. invalid_grant: At redemption or refresh, a validly authenticated instance does not match a fixed establishment value of Section 7.2; or, at redemption, the current document no longer matches the recorded digest; or, at refresh, the current document no longer selects this profile or meets Section 4. statement_required: A required statement is missing, expired, refused, or (at the PAR endpoint) superseded; at code redemption or refresh, the recorded statement's issuer is no longer trusted; or, at refresh, a needed replacement is missing or unacceptable. temporarily_unavailable: A retrieval needed for validation temporarily fails. Invalid statements and reviewed documents at the PAR endpoint otherwise use the error rules of [STATEMENT]. A document exceeding a configured size bound is not a transient failure: it is rejected with invalid_client at the PAR endpoint, as [STATEMENT] rejects a presentation, and with invalid_grant at code redemption and refresh. An invalid or expired code or refresh token, failed PKCE check, or mismatched redemption redirect uses invalid_grant. A DPoP proof that fails the checks of Section 4.3 of [RFC9449] is rejected with invalid_dpop_proof (Section 5 of [RFC9449]), and a missing or unacceptable nonce with use_dpop_nonce, in place of any code listed above, as [STATEMENT] provides for proof-mechanism errors. A valid proof under a key other than the attestation's cnf key is not an invalid proof: authentication fails (Section 7.3 of [ABCA]), and the request is rejected with invalid_client. At code redemption and refresh, an instance that authenticates under a key other than the establishment's proven key fails the grant binding and is rejected with invalid_grant. A use_dpop_nonce response MUST include the DPoP-Nonce HTTP header field. 11.2. Error Precedence and Disclosure Servers MUST check basic request syntax before reporting errors requiring authentication. They MUST authenticate the instance before reporting errors about a code, a refresh token, or the review governing the grant. Within authentication, they MUST verify attester identity, signature, and policy before returning the use_fresh_attestation error code. Nonce challenges MAY precede completion of authentication and MUST NOT reveal tenant trust configuration. When several failures remain at one stage, a server MAY choose any applicable error without disclosing additional failed checks. Details of configured issuers, attesters, evidence policies, and tenant restrictions MUST NOT be exposed in error descriptions to unauthenticated requesters, as [STATEMENT] requires of its issuer trust configuration. 11.3. Authorization Endpoint At the authorization endpoint, when Section 7.3 requires a PAR request_uri, a request without a valid one is rejected with invalid_request. The server MUST NOT redirect with an error unless it has validated the redirect URI under the applicable client metadata and transaction. Front-channel carriage of the statement or instance-attestation artifacts is rejected with invalid_request. 12. Examples The following examples are non-normative. In the HTTP examples, JWTs and opaque protocol values are shown as placeholders in angle brackets. The metadata digest below is computed over the UTF-8 bytes of the displayed client document, using LF line endings, two-space indentation, and one final LF after the closing brace. 12.1. Reviewed Client Metadata The following is an example of a CIMD that selects this profile: { "client_id": "https://cli.example/client.json", "client_name": "Example CLI", "software_statement_instance_binding": true, "token_endpoint_auth_method": "attest_jwt_client_auth_dpop", "grant_types": ["authorization_code", "refresh_token"], "response_types": ["code"], "redirect_uris": ["http://127.0.0.1/callback"], "scope": "projects.read", "software_statements_uri": "https://cli.example/reviews.json" } The server retrieves a statement for this identifier and these exact bytes. The document's port-free callback entry permits a transaction-specific port under Section 4.1. 12.2. Instance Attestation The following is an example of the decoded header and payload of an instance attestation: { "typ": "cimd-instance-attestation+jwt", "alg": "ES256", "kid": "attester-2026-10" } { "iss": "https://attester.example", "sub": "https://cli.example/client.json", "iat": 1792886400, "exp": 1792886700, "cimd_digest": "SvGs0Mf5jHoShvhZQdHsFxivqUgzylxKr5ppf4Kt-W0", "cimd_instance_policy": "https://attester.example/policy/cli/v1", "cnf": { "jwk": { "kty": "EC", "crv": "P-256", "x": "_bquDzEXibtIvC6ZswQz5Lwxb2dtGTktsxQKJYzCn5M", "y": "tt4th1jwXV4P_YUWtGNzYV61atziwiJsm9XOkQqqH5M" } } } The public key represents one installation; it is absent from the shared document. 12.3. Pushed Authorization Request and Code Redemption The following is an example of a pushed authorization request that the client sends after obtaining a DPoP nonce (line breaks for display purposes only): POST /par HTTP/1.1 Host: as.example Content-Type: application/x-www-form-urlencoded OAuth-Client-Attestation: DPoP: client_id=https%3A%2F%2Fcli.example%2Fclient.json &response_type=code &redirect_uri=http%3A%2F%2F127.0.0.1%3A51004%2Fcallback &scope=projects.read &code_challenge= &code_challenge_method=S256 &state= Here the server pulls the software statement. It binds the accepted request, key, attester, policy, and tenant to its returned request_uri. After authorization in the browser, the client receives a code at http://127.0.0.1:51004/callback and validates the response issuer and state. The following is an example of the request that redeems the code (line breaks for display purposes only): POST /token HTTP/1.1 Host: as.example Content-Type: application/x-www-form-urlencoded OAuth-Client-Attestation: DPoP: grant_type=authorization_code &client_id=https%3A%2F%2Fcli.example%2Fclient.json &code= &redirect_uri=http%3A%2F%2F127.0.0.1%3A51004%2Fcallback &code_verifier= The server verifies the proven key and all continuation checks. It does not accept another installation's valid attestation for this code. 12.4. Refresh and Replacement The following is an example of a refresh request (line breaks for display purposes only): POST /token HTTP/1.1 Host: as.example Content-Type: application/x-www-form-urlencoded OAuth-Client-Attestation: DPoP: grant_type=refresh_token &client_id=https%3A%2F%2Fcli.example%2Fclient.json &refresh_token= If the recorded statement has expired, a server that supports pulled statements pulls a current replacement, as [LIFECYCLE] provides for any establishment. If the replacement names changed metadata, the attestation needs to name that same new digest while retaining the proven key and the recorded attester and policy. Otherwise the refresh fails without changing the binding. 13. Authorization Server Metadata This specification defines the following authorization server metadata [RFC8414] value: software_statement_instance_binding_supported: OPTIONAL. Boolean value indicating whether the authorization server supports this specification. If omitted, the default value is false. A server advertising true MUST implement the requirements of this specification. Support does not promise acceptance of any particular client, statement issuer, attester, evidence policy, or tenant. A supporting server MUST publish its pushed_authorization_request_endpoint metadata value, include attest_jwt_client_auth_dpop in the token_endpoint_auth_methods_supported metadata value, advertise S256 in the code_challenge_methods_supported metadata value, and publish the dpop_signing_alg_values_supported ([RFC9449]) and client_attestation_signing_alg_values_supported (Section 8 of [ABCA]) metadata values. It MUST support [RFC9207] and publish the authorization_response_iss_parameter_supported metadata value as true. A client MUST confirm support for this specification before starting a grant under it. The generic attestation method advertisement alone is insufficient. This profile requires PAR for its clients even when the server also serves other clients without PAR; it does not require the server's global require_pushed_authorization_requests value to be true. 14. Implementation Considerations This section gives guidance to implementers. It adds no requirement. 14.1. Bounding Establishments and Pending Requests A server can bound establishments as [STATEMENT] describes, and also per resource owner and tenant, so that one installation cannot exhaust the capacity available to other installations. It can limit pending pushed authorization requests separately from any bound on establishments, and its rate limits can account for client, instance key, tenant, and authenticated resource owner as available. 14.2. Grant State An establishment can serve more than one presentation only where they resolve to the same establishment values, including the same profile, attester, and policy (Section 7.2). 14.3. Signing Brokers A signing broker ought to expose constrained operations rather than arbitrary signing: it produces proofs for the authorization server only within its own processing of an OAuth transaction, and proofs for resource requests only for resource endpoints the caller is authorized to reach and only with that caller's own access token. A broker that handles authorization for another process ought to bind the authenticated caller, intended authorization server, callback, PKCE verifier, and resulting grant to one local session (Section 16.1). 14.4. User Interface, Audit, and Logging A server ought not to present assurances stronger than the accepted evidence policy supports. Authorization servers ought to avoid logging complete attestations, verifiers, codes, and refresh tokens. Audit records can retain the trust decisions, policy identifier, digest, and appropriately protected key identifiers without retaining credentials. 15. Deployment Considerations This section gives guidance to operators and issuers. It adds no requirement. 15.1. Revocation and Enforcement Latency A deployment can use independently established revocation mechanisms or local denial lists. A deployment that requires prompt enforcement needs short token lifetimes or independent token revocation, because withdrawal of a review, removal of trust, and denial of an instance key do not revoke access tokens already issued (Section 9). 15.2. Attester Enrollment An attester ought to limit enrollment and renewal so that one approved installation cannot obtain unlimited keys to evade per-key controls, such as denial of an instance key (Section 9). 15.3. Evidence Age and Token Lifetime Because an access token expires no later than the attestation accepted for it (Section 7.4), a client holding a refresh token refreshes, with a fresh attestation, at least as often as its attester's evidence age allows, and a client without one starts a new authorization request at the PAR endpoint. Appendix B works through an example. 16. Security Considerations The security considerations of [STATEMENT], [LIFECYCLE], [ABCA], [CIMD], [RFC8252], and [RFC9700] apply. This section describes the additional trust boundary introduced by this specification. 16.1. Software Evidence and Key Use A valid signature proves that an accepted attester made an assertion; it does not improve the evidence behind it. An attester accepting self-reported executable hashes would let a copied statement and an arbitrary key satisfy the binding. The evidence and mapping requirements in Section 5 prevent that substitution only when the deployment enforces them. A key's non-exportability does not prove which process can use it. An acceptable evidence policy therefore requires key storage and any signing broker to restrict use to the software instance the policy covers (Section 5). A general signing service reachable by arbitrary local processes would let unreviewed software authenticate through an approved installation (Section 14.3). Remote attestation of a device without an application-to-key binding likewise does not prove which process can use the key. This profile cannot ensure benign user intent, prevent an approved application from being used as a proxy, or preserve an assurance after compromise of the platform on which its evidence depends, so a server ought not to present assurances beyond what the accepted policy supports (Section 14.4). Plugins, scripts, dynamic libraries, debuggers, and injected code can change the effective software identity and require explicit treatment in the evidence policy (Section 5). 16.2. Loopback and Transaction Theft An attacker can attempt to occupy a loopback port, intercept a response, or initiate its own authorization transaction using the published client identifier. PKCE and proof of the proven key protect redemption of an intercepted code. Admission of a new transaction additionally requires an acceptable instance attestation; PKCE or an unattested DPoP key alone supplies no software identity. The client keeps its verifier and transaction state confidential and unpredictable, as their respective specifications provide. A launcher handling authorization for another process acts as the signing broker of Section 14.3. 16.3. Downgrade Prevention A requester can try to avoid this profile by omitting every review artifact, by presenting a statement over an earlier document, or by opening a grant another way. Because Section 3.1 bases a server's requirement for reviewed software on its own policy, withholding an artifact does not avoid it. Existing grants retain their recorded binding (Section 3, Section 7.2). A server implementing only [STATEMENT] continues to reject clients that select this profile where review is required. 16.4. Artifact Substitution and Key Separation The distinct attestation type, digest binding, subject equality, and fixed establishment values prevent a generic attestation or one for another reviewed document from being substituted, and key separation keeps a statement signing key from also signing an attestation (Section 6.1). Attester authorization is scoped independently to client namespaces and tenants. An over-broad attester can undermine the binding for every namespace for which it can issue instance attestations. A statement issuer and an attester that collude, or that are both compromised, can make false assertions within the authority the server has assigned them. 16.5. Freshness and Availability Short effective lifetimes limit stale evidence but make attester availability important. The maximum evidence age (Section 6), the trust-data reuse bound (Section 5), and Section 9 limit how long stale evidence or trust data is accepted. A fresh proof demonstrates current access to a key, not that software was re-evaluated at proof time. An access token cannot outlive the attestation accepted when it was issued (Section 7.4), but it can outlive a review withdrawn or attester trust removed after issuance (Section 9). Metadata digest binding can require coordinated publication of a new document, review, and attestation (Appendix B). During an incomplete transition a request fails: [STATEMENT] does not treat the changed document as reviewed, and this profile does not fall back (Section 7.1). 16.6. Resource Exhaustion Attestations do not remove the need for bounded document retrieval, statement selection, proof replay caches, and PAR storage ([STATEMENT], Section 14.1). An installation that can enroll unlimited keys evades per-key controls (Section 15.2). 17. Privacy Considerations The privacy considerations of [STATEMENT], [LIFECYCLE], and Section 11 of [ABCA] apply. An instance key reused at multiple servers can correlate installations across them. Clients SHOULD use separate instance keys for separate server relationships where the evidence mechanism permits, and SHOULD avoid adding stable installation identifiers unless needed by the deployment. This profile does not require a globally stable instance identifier or an attestation audience. An attester might learn the target server from enrollment traffic, key-scoping choices, or timing even when no audience is carried. Deployments ought to minimize evidence and identifier disclosure to both attesters and authorization servers. An evidence-policy identifier can reveal enterprise management practices; it ought to identify policy semantics without embedding user or device identifiers. Instance attestations and proofs never appear in browser URLs (Section 7.3). Logs and audit records can link installations to people and devices (Section 14.4). 18. IANA Considerations 18.1. OAuth Dynamic Client Registration Metadata Registry This specification requests registration of the following value in the IANA "OAuth Dynamic Client Registration Metadata" registry established by [RFC7591]: Client Metadata Name: software_statement_instance_binding Client Metadata Description: Boolean value selecting attested instance-key binding for runtime admission using a software statement for a Client ID Metadata Document. It is defined for Client ID Metadata Documents and does not enable registration under this specification. Change Controller: IETF Specification Document(s): This specification, Section 4 18.2. OAuth Authorization Server Metadata Registry This specification requests registration of the following value in the IANA "OAuth Authorization Server Metadata" registry established by [RFC8414]: Metadata Name: software_statement_instance_binding_supported Metadata Description: Boolean value indicating support for attested instance-key binding of software statements for Client ID Metadata Documents. Change Controller: IETF Specification Document(s): This specification, Section 13 18.3. JSON Web Token Claims Registry This specification requests registration of the following claim in the IANA "JSON Web Token Claims" registry established by [RFC7519]: Claim Name: cimd_instance_policy Claim Description: Absolute URI identifying the evidence policy under which an attester associates an instance key with software identified by a Client ID Metadata Document. Change Controller: IETF Specification Document(s): This specification, Section 6 This specification also requests that the cimd_digest registration requested by [STATEMENT] list this specification (Section 6) as an additional reference. 18.4. Media Type Registration This specification requests registration of the application/cimd- instance-attestation+jwt media type in the IANA "Media Types" registry [RFC6838]. Type name: application Subtype name: cimd-instance-attestation+jwt Required parameters: n/a Optional parameters: n/a Encoding considerations: 8bit. Values are JWTs in compact serialization. Security considerations: See Section 16 of this specification, Section 12 of [ABCA], and Section 11 of [RFC7519]. Interoperability considerations: n/a Published specification: This specification Applications that use this media type: Native OAuth clients, client attesters, and authorization servers using CIMD software statements with attested instance keys. Fragment identifier considerations: n/a Additional information: Magic number(s): n/a. File extension(s): n/ a. Macintosh file type code(s): n/a. Person & email address to contact for further information: Karl McGuinness, public@karlmcguinness.com Intended usage: COMMON Restrictions on usage: none Author: Karl McGuinness, public@karlmcguinness.com Change controller: IETF 18.5. Values Defined Elsewhere The iss, sub, aud, iat, exp, and cnf claims are defined elsewhere and are not re-registered here. This specification uses the authentication method, HTTP fields, and error codes of [ABCA] without registering replacements. Section 2.3 of [RFC9126] lets a pushed authorization request error response carry the error codes of an extension involved in processing the request, so this specification requests no change to the registrations of the error codes it uses there. 19. References 19.1. Normative References [ABCA] Looker, T., Bastian, P., and C. Bormann, "OAuth 2.0 Attestation-Based Client Authentication", Work in Progress, Internet-Draft, draft-ietf-oauth-attestation- based-client-auth-12, 12 October 2026, . [CIMD] Parecki, A. and E. Smith, "OAuth Client ID Metadata Document", Work in Progress, Internet-Draft, draft-ietf- oauth-client-id-metadata-document-02, 6 July 2026, . [LIFECYCLE] McGuinness, K., "Client ID Metadata Document Software Statement Lifecycle", October 2026, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC6749] Hardt, D., Ed., "The OAuth 2.0 Authorization Framework", RFC 6749, DOI 10.17487/RFC6749, October 2012, . [RFC6838] Freed, N., Klensin, J., and T. Hansen, "Media Type Specifications and Registration Procedures", BCP 13, RFC 6838, DOI 10.17487/RFC6838, January 2013, . [RFC7515] Jones, M., Bradley, J., and N. Sakimura, "JSON Web Signature (JWS)", RFC 7515, DOI 10.17487/RFC7515, May 2015, . [RFC7519] Jones, M., Bradley, J., and N. Sakimura, "JSON Web Token (JWT)", RFC 7519, DOI 10.17487/RFC7519, May 2015, . [RFC7591] Richer, J., Ed., Jones, M., Bradley, J., Machulak, M., and P. Hunt, "OAuth 2.0 Dynamic Client Registration Protocol", RFC 7591, DOI 10.17487/RFC7591, July 2015, . [RFC7636] Sakimura, N., Ed., Bradley, J., and N. Agarwal, "Proof Key for Code Exchange by OAuth Public Clients", RFC 7636, DOI 10.17487/RFC7636, September 2015, . [RFC7638] Jones, M. and N. Sakimura, "JSON Web Key (JWK) Thumbprint", RFC 7638, DOI 10.17487/RFC7638, September 2015, . [RFC7800] Jones, M., Bradley, J., and H. Tschofenig, "Proof-of- Possession Key Semantics for JSON Web Tokens (JWTs)", RFC 7800, DOI 10.17487/RFC7800, April 2016, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [RFC8252] Denniss, W. and J. Bradley, "OAuth 2.0 for Native Apps", BCP 212, RFC 8252, DOI 10.17487/RFC8252, October 2017, . [RFC8414] Jones, M., Sakimura, N., and J. Bradley, "OAuth 2.0 Authorization Server Metadata", RFC 8414, DOI 10.17487/RFC8414, June 2018, . [RFC8725] Sheffer, Y., Hardt, D., and M. Jones, "JSON Web Token Best Current Practices", BCP 225, RFC 8725, DOI 10.17487/RFC8725, February 2020, . [RFC9126] Lodderstedt, T., Campbell, B., Sakimura, N., Tonge, D., and F. Skokan, "OAuth 2.0 Pushed Authorization Requests", RFC 9126, DOI 10.17487/RFC9126, September 2021, . [RFC9207] Meyer zu Selhausen, K. and D. Fett, "OAuth 2.0 Authorization Server Issuer Identification", RFC 9207, DOI 10.17487/RFC9207, March 2022, . [RFC9449] Fett, D., Campbell, B., Bradley, J., Lodderstedt, T., Jones, M., and D. Waite, "OAuth 2.0 Demonstrating Proof of Possession (DPoP)", RFC 9449, DOI 10.17487/RFC9449, September 2023, . [RFC9700] Lodderstedt, T., Bradley, J., Labunets, A., and D. Fett, "Best Current Practice for OAuth 2.0 Security", BCP 240, RFC 9700, DOI 10.17487/RFC9700, January 2025, . [STATEMENT] McGuinness, K., "Client ID Metadata Document Software Statement", Work in Progress, Internet-Draft, draft- mcguinness-oauth-cimd-sw-stmt-00, October 2026, . 19.2. Informative References [APPLE-APPATTEST] Apple Inc., "Establishing your app's integrity", n.d., . [APPLE-APPCONFIG] Apple Inc., "AppManaged", n.d., . [APPLE-DEBUGGER] Apple Inc., "Debugging tool entitlement", n.d., . [APPLE-DYLD] Apple Inc., "Allow DYLD environment variables entitlement", n.d., . [APPLE-ENCLAVE] Apple Inc., "Protecting keys with the Secure Enclave", n.d., . [APPLE-KEYCHAIN] Apple Inc., "TN3137: On Mac keychain APIs and implementations", n.d., . [APPLE-LIBVAL] Apple Inc., "Disable Library Validation Entitlement", n.d., . [APPLE-MDA] Apple Inc., "Managed Device Attestation for Apple devices", n.d., . [APPLE-RUNTIME] Apple Inc., "Hardened Runtime", n.d., . [APPLE-WWDC26] Apple Inc., "Secure your apps with App Attest", WWDC26 Session 201, 2026, . [APPLE-XPC] Apple Inc., "setCodeSigningRequirement(_:)", n.d., . [REGISTRATION] McGuinness, K., "Client ID Metadata Document Software Statement Registration", Work in Progress, Internet-Draft, draft-mcguinness-oauth-cimd-sw-stmt-registration-00, October 2026, . Appendix A. Managed Command-Line Client Deployment This appendix is non-normative. A managed desktop can implement the evidence boundary with a trusted launcher or enterprise agent and an enterprise attestation service. Other mechanisms are possible if they meet Section 5. The enterprise enrolls the launcher through an authenticated management channel. It records a manifest, authorized by the controller of the client identifier URL's origin or its delegate, that associates a signed package or exact artifact with that client identifier URL. It approves the manifest for the applicable evidence policy. The launcher uses platform facilities to authenticate the actual calling process and validate that association. It does not trust a process's own claim about its executable path or hash. The launcher creates or provisions the instance key in protected storage and obtains an attestation through an authenticated exchange with the enterprise service. That service verifies the evidence, the binding to the key, and the document digest before issuing the attestation. The service's signing key is distinct from the instance key and is accepted through the authorization server's attester trust configuration. For each authorization transaction, the launcher performs the OAuth exchange on behalf of the verified caller, as the signing broker of Section 14.3. It rechecks caller authorization when the key is used, including refresh, and protects returned tokens from other processes. An implementation needs to address changes between checking software and using the key, dynamic code loading, and the ability of an executable the evidence policy covers to proxy requests for others. Platforms without reliable process identity and key-use isolation cannot obtain this profile's assurance by running the launcher with more privileges. A script-based command-line client might require an execution environment whose policy covers its interpreter, script, and dependencies, or a narrower assurance than verified executable identity. A.1. Example: macOS This example uses macOS 27 or later on Apple silicon, with a launcher application for which App Attest is available [APPLE-WWDC26]. Software identity: The publisher signs each release with an Apple- issued developer certificate, under the hardened runtime [APPLE-RUNTIME] and one signing identifier. A manifest served from the client identifier URL's origin and naming the publisher's Team ID and that identifier covers each such release. A manifest naming code directory hashes covers only the listed builds. Key isolation: The launcher is a per-user application whose provisioning profile authorizes a data protection keychain access group for the launcher alone. macOS grants such groups only through entitlements a provisioning profile authorizes, and only in a user context [APPLE-KEYCHAIN]. The launcher creates a P-256 instance key in the Secure Enclave, from which key material cannot be transferred [APPLE-ENCLAVE], and keeps it under that access group, so the client cannot use the key directly. Caller identification: The client connects to the launcher over XPC. The launcher sets a code-signing requirement on the connection that requires an Apple-issued certificate chain, the publisher's Team ID, and the client's signing identifier, and the system invalidates a connection whose peer does not satisfy it [APPLE-XPC]. The launcher never relies on a process ID or a reported path. Code injection: The evidence policy requires that the client's signature carry no entitlement that disables library validation [APPLE-LIBVAL], lets the dynamic linker read DYLD_ variables [APPLE-DYLD], or lets a debugger obtain the client's task port (get-task-allow, [APPLE-DEBUGGER]). The client then loads only libraries signed by Apple or by its own team. Launcher authentication: Managed Device Attestation shows that the device is a genuine Apple device the organization manages [APPLE-MDA], not which program is reporting. The launcher therefore registers an App Attest key, which Apple certifies as belonging to the launcher [APPLE-APPATTEST]. To tie that key to the managed device, the launcher returns with the attestation a single-use secret that the device management service delivered through managed app configuration, which macOS applies only to an application with a matching code signature [APPLE-APPCONFIG]. Each later report, carrying the instance public key and the client's signing identity, bears an App Attest assertion. Evidence and renewal: No Apple attestation covers the instance key, so the enterprise service relies on the authenticated launcher's report that the key is in the Secure Enclave and usable only by the launcher. The launcher acts as the signing broker of Section 14.3. Before the maximum evidence age expires, it re- checks the device's management state and the client's signature and obtains an attestation on that new evidence. Unsupported case: A script run by a signed interpreter with unrestricted imports is not covered. The verified signature is the interpreter's, and library validation does not constrain the scripts and modules it reads. Such a client remains review-only under [STATEMENT]. Appendix B. Operational Consequences This appendix is non-normative. It assumes an evidence policy whose maximum evidence age is eight hours. * An attestation on evidence collected at 09:00 expires by 17:00, and so does every access token issued on it (Section 7.4). Before then, a client holding a refresh token refreshes on new evidence. A client without one starts a new authorization request. * A metadata change, such as a new loopback redirect or scope, needs a statement and attestations over the new digest before each grant refreshes onto it (Section 8). An authorization in progress during the change restarts at the PAR endpoint (Section 7.4). * A new evidence-policy identifier (Section 5) or a new key requires a new grant (Section 7.2). Acknowledgments This specification develops the attested-key extension point in [STATEMENT] and composes it with attestation-based client authentication. The initial deployment question was how a command- line application could retain loopback callbacks while demonstrating an association with reviewed software. Author's Address Karl McGuinness Independent Email: public@karlmcguinness.com