Internet-Draft agent URI and Attestation November 2026
Kanojia Expires 25 May 2027 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-kanojia-creduent-agent-uri-01
Published:
Intended Status:
Standards Track
Expires:
Author:
K. Kanojia
IDevSec

The 'agent' Uniform Resource Identifier (URI) Scheme and Cryptographic Attestation Protocol

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.

▲

Table of Contents

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.<authority>`).

  • Attenuated capability delegation via Creduent Delegation Tokens (CDT).

  • Optional third-party registry attestations for multi-domain verification.

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:

  • 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`, `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

{
  "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`.

    • 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.<authority>`. Verify that the Ed25519 public key in `_creduent.<authority>` 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.<authority>`.

_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):

{
  "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)

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 <kashish@idevsec.com>

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].

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.

  • Off-Path Adversary (DNS Poisoning & BGP Hijacking): Defended via mandatory DNSSEC ([RFC4035]) verification of `_creduent.<authority>`.

  • 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, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC3986]
Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, , <https://www.rfc-editor.org/info/rfc3986>.
[RFC4035]
Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose, "Protocol Modifications for the DNS Security Extensions", RFC 4035, , <https://www.rfc-editor.org/info/rfc4035>.
[RFC4648]
Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, , <https://www.rfc-editor.org/info/rfc4648>.
[RFC5234]
Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", STD 68, RFC 5234, , <https://www.rfc-editor.org/info/rfc5234>.
[RFC5890]
Klensin, J., "Internationalized Domain Names for Applications (IDNA): Definitions and Document Framework", RFC 5890, , <https://www.rfc-editor.org/info/rfc5890>.
[RFC7493]
Bray, T., Ed., "The I-JSON Message Format", RFC 7493, , <https://www.rfc-editor.org/info/rfc7493>.
[RFC7595]
Thaler, D., Ed., "Guidelines and Procedures for Registration of URI Schemes", BCP 35, RFC 7595, , <https://www.rfc-editor.org/info/rfc7595>.
[RFC8032]
Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (Ed25519)", RFC 8032, , <https://www.rfc-editor.org/info/rfc8032>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC8615]
Nottingham, M., "Well-Known Uniform Resource Identifiers (URIs)", RFC 8615, , <https://www.rfc-editor.org/info/rfc8615>.
[RFC8785]
Rundgren, A., "JSON Canonicalization Scheme (JCS)", RFC 8785, , <https://www.rfc-editor.org/info/rfc8785>.

10. Informative References

[RFC3552]
Rescorla, E. and B. Korver, "Guidelines for Writing RFC Text on Security Considerations", BCP 72, RFC 3552, , <https://www.rfc-editor.org/info/rfc3552>.
[RFC4033]
Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose, "DNS Security Introduction and Requirements", RFC 4033, , <https://www.rfc-editor.org/info/rfc4033>.
[RFC4034]
Arends, R., Austein, R., Larson, M., Massey, D., and S. Rose, "Resource Records for the DNS Security Extensions", RFC 4034, , <https://www.rfc-editor.org/info/rfc4034>.

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):

{"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:

Author's Address

Kashish Kanojia
IDevSec
India