This page summarizes the wire-level threat model for protocol implementers and security reviewers. For the user-facing and product-level accountability model (what verification does and does not guarantee, human liability, and revocation scope), see Trust and limits.
The normative security rules are spec section 20, with agent consumption rules in section 8, verdicts in section 19, and issuer assumptions in section 10. This summary does not weaken the specification.
Prompt injection and untrusted data
Discovery content, the terms at terms.url, and the post-signup guide are data, never instructions.
- Fetch discovery only when the user explicitly targets that service. Do not follow arbitrary links from another service's discovery document.
- Treat the terms at
terms.urlas untrusted legal text. Never interpret it as agent commands. - After signup, treat the vendor guide as untrusted vendor documentation. The broker vouches for who signed up and what terms were accepted, not for the guide's contents.
- Reject a service if the document is missing, malformed, over the size cap, uses an unknown
protocol, or does not allow the agent's issuer. - Never send an assertion to an endpoint that was not discovered from the same service origin, unless the user intent explicitly covers a separate API origin.
- Never reuse an assertion across audiences, services, or after expiry.
SSRF rules
- Do not fetch arbitrary internal addresses derived from a discovery document.
http://localhostandhttp://127.0.0.1are allowed only in explicit development mode.- Every fetch of discovery, JWKS,
terms.url, or a context URL applies a timeout, a bounded response size and a redirect limit. Redirects must stay on the same origin;terms.urlmust serve stable bytes without redirects. - Fetching a discovered URL must not cause a side effect. Probing advertised endpoints, if done at all, must be non-destructive.
- The broker validates
context.urlstatically and does not fetch it during receipt ingestion.
Replay, resolve and acceptance lifetime
- The
jticheck is an account-creation guard, not duplicate suppression. A repeated request for the same agent, account and service resolves idempotently. assertion_replayedis reserved for ajtipresented in a conflicting context: a different agent, account or service.- A broker may return the identical previously issued, still-unexpired assertion for an identical request. Acceptance is the durable legal event; assertions are short-lived proofs.
- A relying party must not treat a fresh assertion that references an existing acceptance as a new consent.
- The protocol imposes no mandatory re-acceptance interval. An acceptance remains the recorded consent for its
terms.urland recorded hash until the terms change or the human re-consents. A broker may impose its own documented policy.
See spec section 7.2 and section 7.3.
Provider verification and trust policy
- The provider verification credential is optional. Absence of the
attestationobject isunverified, never invalid. Only a well-formed source is fetched, and only on an explicit verification. - Read
attestation.modeandattestation.uri; check the mode host binding before any fetch. AbrokerURI must be on anissuer_allowlistorigin and, when a trusted-broker list is configured, a trusted broker origin; aproviderURI must be on the fetched discovery origin or a subdomain. A failed binding is final. - Check the attestation issuer against the trusted RP-broker list before any JWKS or metadata fetch. Never contact an untrusted broker.
- Verify the attestation signature with the key selected by
kid; requiretyp: agent-rp-attestation+jwtandalg: EdDSA. Never try all keys or acceptnone/HMAC. - Compare
rp.originto the origin of the discovery document actually fetched andrp.audiencetodiscovery.audience. A mismatch isinvalid, notunverified. - Check
iat/expwith 60 seconds of skew. A bad signature, origin or audience is a verification failure; a fetch failure isunavailable. - Never read a token from discovery or accept one the caller supplies in place of the source. A present
rp_attestationdiscovery field is non-conformant. - Trust is policy, not cryptography.
no_verifynever gates;verifyrequires a valid attestation in either mode;strictrequires broker-managed;blockedrejects first. Do not treat a registry entry as an endorsement or a safety rating.
Receipts and authenticated reporting
- A Contract E receipt has no
exp. Ignore a legacyexp; never reject a receipt only because it passed. - Verify the receipt with the RP key named by
service.key_idin the exact historical attestation named byservice.attestation_jti. Never substitute the current attestation and never fall back to a broker key. - Compare
iatandsigned_up_atto that attestation's[iat, exp]window. Skew applies to current-time checks, not the historical window. - An abuse report is a current event: five-minute JWS, current attestation, broker trust only. Only a verified, receipt-linked report may apply a protective suspension pending review.
- Registry and broker "current" verification states are snapshots with
checked_at; they are not live feeds.
Clock skew and assertion lifetime
- Verify
expwith at most 60 seconds of clock skew. - Keep assertion lifetimes short. The recommended maximum is 5 minutes; the broker default is 5 minutes.
- Re-fetch discovery immediately before signup, or honor its cache lifetime. Never reuse a stale terms URL or version.
Keys and JWKS
- Assertions use Ed25519 (
EdDSA) signatures with a stablekid. - Every issuer origin must publish
GET <iss>/.well-known/jwks.jsonover HTTPS, withapplication/json, and make it safe to cache. - Resolve issuer keys only from the issuer's canonical JWKS. Never accept a
jkuorx5uheader that points at an arbitrary host. - Require the JOSE header
algto beEdDSAand select the key bykid. - The protocol does not define a key-rotation protocol. The fixed JWKS path and stable
kidare the contract. An unknownkidis a reason to refresh the issuer's JWKS, not a reason to accept an unverified signature. - The discovery document itself is not signed. Trust comes from TLS, the issuer allowlist, issuer-hosted JWKS and the signed assertion. The optional
attestationobject names a signed statement about the provider; it is not a signature over the document and it carries no token. - Attestation-signing public keys stay in the RP broker's JWKS for at least 30 days after the last attestation they signed expires, so historical receipts remain verifiable. An unseen old receipt after that window is
attestation_unavailable.
Other checks
- Issuer spoofing: exact
issallowlist matching and issuer-origin JWKS only. - Audience confusion: one exact, stable
audper service. - Terms substitution: the provider checks
accepted_rp_tos_urlagainstterms.url; the broker records a hash of the bytes it fetched, and the provider may check it when the URL serves deterministic bytes. - Discovery tampering: TLS plus the signed assertion; the discovery document is a parameter document, not a trust anchor.
- DoS: response size limits, timeouts, caching and rate limiting.
- Privacy: no human PII or secrets in the public discovery document.
- Cache poisoning: short cache lifetimes and revalidation before signup.
Related
- Trust and limits for the user-facing accountability model and protocol non-goals.
- Scope boundaries
- Assertion claims
- Receipt and context