Network Working Group K. Kanojia Internet-Draft IDevSec Intended status: Standards Track 21 November 2026 Expires: 25 May 2027 The 'agent' Uniform Resource Identifier (URI) Scheme and Cryptographic Attestation Protocol draft-kanojia-creduent-agent-uri-01 Abstract This document specifies the 'agent' Uniform Resource Identifier (URI) scheme and its associated cryptographic attestation protocol. The 'agent' scheme defines a transport-agnostic, cryptographically verifiable addressing layer for identifying autonomous software agents, binding domain ownership via DNSSEC TXT records, resolving agent identity documents via deterministic HTTPS well-known paths, and validating attenuated capability delegation tokens. 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 25 May 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. Kanojia Expires 25 May 2027 [Page 1] Internet-Draft agent URI and Attestation November 2026 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 . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1. Problem Statement . . . . . . . . . . . . . . . . . . . . 3 1.2. Protocol Goals . . . . . . . . . . . . . . . . . . . . . 3 2. Terminology and Conventions . . . . . . . . . . . . . . . . . 4 3. URI Scheme Specification . . . . . . . . . . . . . . . . . . 4 3.1. ABNF Syntax Definition . . . . . . . . . . . . . . . . . 4 3.2. URI Normalization and Canonicalization . . . . . . . . . 4 3.3. Example URIs . . . . . . . . . . . . . . . . . . . . . . 5 4. Cryptographic Identity Document Format (agent.json) . . . . . 5 4.1. Field Definitions . . . . . . . . . . . . . . . . . . . . 5 4.2. JSON Canonicalization Scheme (JCS) Processing . . . . . . 6 4.3. Ed25519 Signature Generation and Validation . . . . . . . 6 4.4. Complete Example Document . . . . . . . . . . . . . . . . 6 5. Resolution and Verification Architecture . . . . . . . . . . 7 5.1. Resolution Algorithm (Path-Preserving Decentralized Resolution) . . . . . . . . . . . . . . . . . . . . . . . 7 5.2. DNS TXT Ownership Verification . . . . . . . . . . . . . 8 6. Delegation Tokens and Capability Attenuation (CDT) . . . . . 8 6.1. Token Payload Format . . . . . . . . . . . . . . . . . . 8 6.2. CDT Signature Computation . . . . . . . . . . . . . . . . 9 6.3. Capability Attenuation Algebra . . . . . . . . . . . . . 9 6.4. Delegation Depth and Chain Validation . . . . . . . . . . 10 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 10 7.1. URI Scheme Registration Template . . . . . . . . . . . . 10 7.2. Well-Known URI Registration (Suffix agent.json) . . . . . 10 7.3. Well-Known URI Registration (Prefix agent/) . . . . . . . 11 8. Security Considerations . . . . . . . . . . . . . . . . . . . 11 8.1. Attacker Capabilities and Threat Matrix . . . . . . . . . 11 8.2. Key Revocation and Recovery . . . . . . . . . . . . . . . 12 8.3. Privacy Considerations . . . . . . . . . . . . . . . . . 12 9. Normative References . . . . . . . . . . . . . . . . . . . . 12 10. Informative References . . . . . . . . . . . . . . . . . . . 13 Appendix A. Cryptographic Test Vectors . . . . . . . . . . . . . 14 A.1. Agent Identity Document Test Vector . . . . . . . . . . . 14 A.2. Creduent Delegation Token (CDT) Test Vector . . . . . . . 14 Appendix B. Document Revision History . . . . . . . . . . . . . 15 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 15 Kanojia Expires 25 May 2027 [Page 2] Internet-Draft agent URI and Attestation November 2026 1. Introduction 1.1. Problem Statement Autonomous software agents operating across distributed multi-cloud networks, model contexts, and tool environments require a unified, cryptographically secure identity layer. Existing network addressing schemes (HTTP URLs, gRPC endpoints) route traffic to server hosts, but fail to verify: 1. Whether the remote software process possesses a verified Ed25519 cryptographic key pair. 2. Whether the agent's domain identity matches DNS infrastructure ownership validated via DNSSEC. 3. Whether active agent capabilities and endpoints have been tampered with. 4. Whether sub-agent tasks carry valid, scope-restricted delegation tokens. 1.2. Protocol Goals The Creduent protocol specifies the 'agent' URI scheme to establish a verifiable trust root for software agents. The protocol provides: * Deterministic resolution from 'agent://' URIs to signed identity documents (`agent.json`). * Cryptographic key binding using Ed25519 digital signatures and JSON Canonicalization Scheme (JCS). * Domain-level ownership validation via DNSSEC TXT records (`_creduent.`). * Attenuated capability delegation via Creduent Delegation Tokens (CDT). * Optional third-party registry attestations for multi-domain verification. Kanojia Expires 25 May 2027 [Page 3] Internet-Draft agent URI and Attestation November 2026 2. Terminology and Conventions 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. Agent Identity: A cryptographic identity consisting of an `agent_id` uniquely bound to an Ed25519 public key through the verification procedures defined in this document. agent.json: An I-JSON document canonicalized per RFC 8785 containing public keys, capabilities, endpoints, and owner metadata. Authority: The domain name or host portion (`reg-name`) of an 'agent' URI responsible for identity resolution. Attestation: An optional cryptographically signed assertion issued by a registry validating domain mapping. 3. URI Scheme Specification 3.1. ABNF Syntax Definition The 'agent' URI scheme syntax is specified using Augmented Backus- Naur Form (ABNF) as defined in [RFC5234], importing core productions from [RFC3986]. agent-URI = "agent://" agent-authority [ "/" agent-path ] [ "?" query ] [ "#" fragment ] agent-authority = host [ ":" port ] agent-path = segment-nz *( "/" segment ) host = IP-literal / IPv4address / reg-name port = *DIGIT segment-nz = 1*pchar segment = *pchar pchar = unreserved / pct-encoded / sub-delims / ":" / "@" unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" query = *( pchar / "/" / "?" ) fragment = *( pchar / "/" / "?" ) 3.2. URI Normalization and Canonicalization Implementations MUST normalize 'agent' URIs prior to resolution and signature validation: Kanojia Expires 25 May 2027 [Page 4] Internet-Draft agent URI and Attestation November 2026 * Scheme names MUST be converted to lowercase ("agent://"). * Hostnames MUST be converted to lowercase per Internationalized Domain Names (IDNA) rules ([RFC5890]). * Percent-encoded unreserved characters MUST be decoded. * Agent-path segments equal to `.` or `..` MUST be rejected by resolvers prior to HTTPS URL construction to prevent path traversal vulnerabilities. * Query components (`?`) and fragment identifiers (`#`) MUST NOT participate in agent identity calculation and MUST NOT alter deterministic well-known HTTPS resolution. * Public IPv4 and IPv6 literal addresses MAY be used for testing, but production authorities SHOULD use domain names (`reg-name`). Resolvers MUST NOT connect to private-use or loopback IPv4/IPv6 address ranges to prevent Server-Side Request Forgery (SSRF). 3.3. Example URIs agent://example.com agent://example.com/auditor agent://example.com/finance/payroll-bot 4. Cryptographic Identity Document Format (agent.json) 4.1. Field Definitions The identity payload document MUST conform to I-JSON constraints ([RFC7493]) and contain the following structured JSON fields: version (string, REQUIRED): Protocol version identifier ("2.0"). identity.agent_id (string, REQUIRED): The absolute 'agent://' URI of the agent. identity.owner (string, REQUIRED): Contact URI or email of the controlling entity (e.g. "mailto:admin@example.com"). identity.endpoint (string, OPTIONAL): Base HTTPS service URL where remote agents send API requests or invoke agent tasks. identity.keys (array, REQUIRED): List of key objects (`id`, `type`, Kanojia Expires 25 May 2027 [Page 5] Internet-Draft agent URI and Attestation November 2026 `public_key`, `status`, `expires_at`). Public keys MUST use the unpadded base64url encoding ([RFC4648]) of the raw 32-octet Ed25519 public key (yielding exactly 43 characters), prefixed with `ed25519:`. policy.capabilities (array, REQUIRED): Array of exact capability strings (e.g. `["ledger:read", "reports:generate"]`). signature (object, REQUIRED): Signature envelope containing `key_id`, `created`, and `proofValue` (unpadded base64url encoded 64-octet Ed25519 signature yielding exactly 86 characters). 4.2. JSON Canonicalization Scheme (JCS) Processing To generate or verify signatures, the document MUST be canonicalized using JCS [RFC8785]: 1. Reject documents containing duplicate JSON object keys. 2. Remove the `"signature"` object member from the document copy. 3. Canonicalize the remaining JSON payload strictly according to RFC 8785 (ECMAScript UTF-16 code unit property sorting). 4. Encode the canonical string as UTF-8 bytes. 4.3. Ed25519 Signature Generation and Validation Signatures MUST be generated using PureEd25519 ([RFC8032]) over the UTF-8 bytes of the canonicalized JCS document: signature_bytes = Ed25519_Sign(private_key, UTF8(JCS(doc_copy))) proofValue = Base64Url_NoPadding_Encode(signature_bytes) 4.4. Complete Example Document Kanojia Expires 25 May 2027 [Page 6] Internet-Draft agent URI and Attestation November 2026 { "version": "2.0", "identity": { "agent_id": "agent://example.com/auditor", "owner": "mailto:security@example.com", "endpoint": "https://example.com/api", "keys": [ { "id": "key-1", "type": "ed25519", "public_key": "ed25519:11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo", "status": "active", "expires_at": "2027-01-01T00:00:00Z" } ] }, "policy": { "capabilities": [ "ledger:read", "reports:generate" ] }, "signature": { "key_id": "key-1", "created": "2026-09-02T04:00:00Z", "proofValue": "HDVEC1vr1udw0FljRcvvmtefQSs-NAnImbHZctUYTuQLPMBQc-" "aiPih8RfWHrhOB7-GGbmhR0b_1zSre6tGlDg" } } 5. Resolution and Verification Architecture 5.1. Resolution Algorithm (Path-Preserving Decentralized Resolution) When resolving an 'agent' URI (e.g. "agent://example.com" or "agent://example.com/auditor"), resolving clients MUST execute the following deterministic, decentralized pipeline: 1. *Authority & Path Extraction:* Extract `authority` (`netloc`) and `agent-path` from the URI. 2. *Deterministic HTTPS Resolution URL Construction:* * If `agent-path` is empty or "/", construct: `https://{authority}/.well-known/agent.json`. Kanojia Expires 25 May 2027 [Page 7] Internet-Draft agent URI and Attestation November 2026 * If `agent-path` is present (e.g. `/auditor`), construct: `https://{authority}/.well-known/agent/{agent-path}.json`. 3. *HTTPS Document Fetch:* Issue an HTTPS GET request to the resolved URL, validating WebPKI TLS 1.3 certificates. HTTP redirects MUST NOT cross authority boundaries. 4. *Schema & Signature Validation:* Parse the JSON document, remove `"signature"`, canonicalize via JCS [RFC8785], and verify the Ed25519 signature against the key specified in `signature.key_id`. 5. *DNSSEC Binding Verification:* Perform DNSSEC validation ([RFC4035]) for TXT records at `_creduent.`. Verify that the Ed25519 public key in `_creduent.` matches or authorizes the key in `signature.key_id`. If DNSSEC validation fails, resolution MUST fail. 6. *Cross-Namespace Spoofing Check:* Confirm that `identity.agent_id` inside `agent.json` exactly matches the target 'agent://' URI. 7. *Optional Registry Attestation Check:* Clients MAY optionally query a secondary attestation registry to verify cross-domain endorsements, but base resolution MUST NOT depend on centralized registries. 5.2. DNS TXT Ownership Verification To bind domain control, authority domain owners MUST publish a DNS TXT record at `_creduent.`. _creduent.example.com. IN TXT "v=CRE1; k=ed25519; p=11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo" Resolvers MUST enforce DNSSEC ([RFC4033], [RFC4034], [RFC4035]) validation when querying DNS TXT records to prevent DNS cache poisoning attacks. 6. Delegation Tokens and Capability Attenuation (CDT) 6.1. Token Payload Format Parent agents delegating authority to child sub-agents MUST issue a Creduent Delegation Token (CDT): Kanojia Expires 25 May 2027 [Page 8] Internet-Draft agent URI and Attestation November 2026 { "iss": "agent://example.com/parent-agent", "sub": "agent://example.com/child-worker", "aud": "agent://target-service.com/api", "iat": 1786273200, "exp": 1786276800, "jti": "cdt-nonce-98765", "parent_token_hash": "sha256:c1551acada3a8983c9cd6ad5" "cb12814050585c66d12678151f4ff967b1f07850", "capabilities": [ "db:read:readonly_table" ], "delegation_depth": 2, "signature": { "key_id": "key-1", "proofValue": "P5ObC-B2Wub8-Cpc-PoukzSmade1447CsZHqG8G89cqj" "V8grcU65Aa6az3L3TsC6plyhTbwtAnYtWdWL72IdDA" } } 6.2. CDT Signature Computation CDT signatures MUST be computed over the JCS canonicalization of the token payload excluding `"signature"`: 1. Parse CDT payload as I-JSON ([RFC7493]) and reject duplicate keys. 2. Remove top-level `"signature"` member. 3. Canonicalize remaining fields via JCS ([RFC8785]). 4. Sign canonical UTF-8 bytes using Ed25519 ([RFC8032]) private key of `iss`. 5. Encode signature as unpadded Base64Url string in `signature.proofValue`. 6.3. Capability Attenuation Algebra Capabilities are exact, opaque strings formatted as `namespace:action:resource`. Attenuation dictates that child token capabilities MUST be a non-expanding subset of parent capabilities (`Capabilities(child) <= Capabilities(parent)`): Capabilities(Token_child) <= Capabilities(Token_parent) Kanojia Expires 25 May 2027 [Page 9] Internet-Draft agent URI and Attestation November 2026 6.4. Delegation Depth and Chain Validation Delegation depth is decremented at each hop (`delegation_depth_child = delegation_depth_parent - 1`). If `delegation_depth` reaches 0, no further child tokens MAY be issued. Verifying endpoints receiving a delegation chain MUST recursively validate Ed25519 signatures, capability subset constraints, parent token hashes, and non-expired `exp` timestamps. 7. IANA Considerations 7.1. URI Scheme Registration Template The 'agent' URI scheme registration follows the guidelines defined in BCP 35 [RFC7595]. Scheme name: agent Status: Provisional Applications: Autonomous AI agent systems, MCP hosts, microservice swarms. Contact: Kashish Kanojia Change controller: IDevSec (https://idevsec.com) References: draft-kanojia-creduent-agent-uri-01 7.2. Well-Known URI Registration (Suffix agent.json) This document requests registration of the well-known URI suffix `agent.json` in the "Well-Known URIs" registry per [RFC8615]. Kanojia Expires 25 May 2027 [Page 10] Internet-Draft agent URI and Attestation November 2026 URI Suffix: agent.json Change Controller: IDevSec (https://idevsec.com) Reference: draft-kanojia-creduent-agent-uri-01 Status: provisional Related Information: The syntax and semantics of root agent identity documents are defined in Section 4. 7.3. Well-Known URI Registration (Prefix agent/) This document requests registration of the well-known URI prefix `agent/` in the "Well-Known URIs" registry per [RFC8615] Section 3.1. URI Suffix: agent/ Change Controller: IDevSec (https://idevsec.com) Reference: draft-kanojia-creduent-agent-uri-01 Status: provisional Related Information: The syntax and semantics of path-preserving agent identity documents (e.g., /.well-known/agent/{path}.json) are defined in Section 5.1. 8. Security Considerations 8.1. Attacker Capabilities and Threat Matrix Per [RFC3552], the protocol evaluates defenses against explicit adversary models: * *On-Path Adversary (Eavesdropping & Modification):* Defended via mandatory WebPKI TLS 1.3 and Ed25519 signatures over canonical JCS. Kanojia Expires 25 May 2027 [Page 11] Internet-Draft agent URI and Attestation November 2026 * *Off-Path Adversary (DNS Poisoning & BGP Hijacking):* Defended via mandatory DNSSEC ([RFC4035]) verification of `_creduent.`. * *TLS Interception Adversary:* Defended via WebPKI certificate validation and public key binding. * *Token Replay Adversary:* Defended via mandatory `exp` timestamps and unique `jti` nonces recorded in verifier LRU caches. * *SSRF & Path Traversal Adversary:* Defended via mandatory prohibition of private/loopback resolution targets and rejection of `.` / `..` path segments. 8.2. Key Revocation and Recovery In case of key compromise, domain owners MUST update the `_creduent` DNS TXT record with a new public key. Resolvers MUST NOT cache verification documents past their HTTP `Cache-Control` max-age. Residual Risk: If an authority's private key is compromised, residual risk is bounded by the DNS TTL and HTTP Cache-Control max-age window before public key rotation takes effect. 8.3. Privacy Considerations Agent identity documents expose public metadata (`identity.owner`, `identity.endpoint`, `policy.capabilities`). The `identity.owner` field (e.g. `mailto:security@example.com`) is intentionally public administrative contact metadata analogous to WHOIS abuse contact records. Agents handling confidential workloads SHOULD restrict sensitive capabilities to authenticated mutual TLS sessions or authorized API handshakes rather than advertising them in unauthenticated `agent.json` documents. 9. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997, . [RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, January 2005, . Kanojia Expires 25 May 2027 [Page 12] Internet-Draft agent URI and Attestation November 2026 [RFC4035] Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose, "Protocol Modifications for the DNS Security Extensions", RFC 4035, March 2005, . [RFC4648] Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, October 2006, . [RFC5234] Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", STD 68, RFC 5234, January 2008, . [RFC5890] Klensin, J., "Internationalized Domain Names for Applications (IDNA): Definitions and Document Framework", RFC 5890, August 2010, . [RFC7493] Bray, T., Ed., "The I-JSON Message Format", RFC 7493, March 2015, . [RFC7595] Thaler, D., Ed., "Guidelines and Procedures for Registration of URI Schemes", BCP 35, RFC 7595, June 2015, . [RFC8032] Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (Ed25519)", RFC 8032, January 2017, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, May 2017, . [RFC8615] Nottingham, M., "Well-Known Uniform Resource Identifiers (URIs)", RFC 8615, May 2019, . [RFC8785] Rundgren, A., "JSON Canonicalization Scheme (JCS)", RFC 8785, June 2020, . 10. Informative References [RFC3552] Rescorla, E. and B. Korver, "Guidelines for Writing RFC Text on Security Considerations", BCP 72, RFC 3552, July 2003, . Kanojia Expires 25 May 2027 [Page 13] Internet-Draft agent URI and Attestation November 2026 [RFC4033] Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose, "DNS Security Introduction and Requirements", RFC 4033, March 2005, . [RFC4034] Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose, "Resource Records for the DNS Security Extensions", RFC 4034, March 2005, . Appendix A. Cryptographic Test Vectors This appendix provides two deterministic, mathematically verified test vectors for Ed25519 signature computation over JCS canonicalized identity documents and CDT delegation tokens. A.1. Agent Identity Document Test Vector *Private Key (32 octets, Hex Seed):* `9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60` *Public Key (32 octets, Base64Url):* `11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo` *Canonical JCS Input Bytes (UTF-8):* {"identity":{"agent_id":"agent://example.com/auditor", "endpoint":"https://example.com/api", "keys":[{"expires_at":"2027-01-01T00:00:00Z","id":"key-1", "public_key": "ed25519:11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo", "status":"active"}],"owner":"mailto:security@example.com"}, "policy":{"capabilities":["ledger:read","reports:generate"]}, "version":"2.0"} *Expected Signature (`proofValue`, Base64Url):* `HDVEC1vr1udw0FljRcvvmtefQSs-NAnImbHZctUYTuQLPMBQc- aiPih8RfWHrhOB7-GGbmhR0b_1zSre6tGlDg` A.2. Creduent Delegation Token (CDT) Test Vector *Parent CDT Hash (`parent_token_hash`, SHA-256):* `sha256:c1551acada3a8983c9cd6ad5` `cb12814050585c66d12678151f4ff967b1f07850` *Child CDT Canonical JCS Input Bytes (UTF-8):* Kanojia Expires 25 May 2027 [Page 14] Internet-Draft agent URI and Attestation November 2026 {"aud":"agent://target-service.com/api", "capabilities":["db:read:readonly_table"],"delegation_depth":2, "exp":1786276800,"iat":1786273200, "iss":"agent://example.com/parent-agent","jti":"cdt-nonce-98765", "parent_token_hash": "sha256:c1551acada3a8983c9cd6ad5" "cb12814050585c66d12678151f4ff967b1f07850", "sub":"agent://example.com/child-worker"} *Expected CDT Signature (`proofValue`, Base64Url):* `P5ObC-B2Wub8-Cpc-PoukzSmade1447CsZHqG8G89cqjV8grcU65Aa6az3L3TsC6` `plyhTbwtAnYtWdWL72IdDA` Appendix B. Document Revision History *Changes from draft-00 to draft-01:* * Formally updated IANA Considerations (Section 7) per RFC 7595 Section 7.3, adjusting intended initial registration status to Provisional and assigning Change Controller to IDevSec. * Transitioned identity resolution architecture to a fully decentralized, path-preserving HTTPS .well-known model. * Added explicit DNSSEC TXT verification validation steps and key identifier disambiguation. * Added deterministic, mathematically verified Ed25519 identity and Creduent Delegation Token (CDT) test vectors (Appendix A). * Structured security considerations according to RFC 3552 threat model with explicit residual risk bounds and privacy considerations. * Formatted artwork and test vector lines for strict RFC 72-column margin compliance. Author's Address Kashish Kanojia IDevSec India Email: kashish@idevsec.com URI: https://idevsec.com Kanojia Expires 25 May 2027 [Page 15]