ANS: An Agent Identity Assurance Service from the Linux Foundation

security10 min한국어

#ans#agent-identity#transparency-log#security#ai-agents

ANS (Agent Name Service) is a service in which a third party checks an agent’s name and registration, records them in a public log, and lets the caller verify them directly against the log’s signatures.

For example, once the MCP server at weather.example.com is registered as ans://v1.0.0.weather.example.com, a caller can look up that name's domain control proof, server certificate, registration time, and current status in the log.

ANS joined the Linux Foundation as a project on November 10, 2026.

1. What Is ANS?

ANS consists of two services: the Registration Authority (RA) and the Transparency Log (TL).
The RA checks the domain control and DNS records of the agent’s operator (Agent Hosting Platform, AHP), and the TL records the registration events the RA signs in an append-only Merkle tree.
A verifier calling the agent never queries the RA; it checks the registration using only DNS records and records signed by the TL.

Transparency Log: RFC 6962 Certificate Transparency
Merkle tree: RFC 6962 Section 2.1 Merkle Hash Trees

Operator weather.example.com RA Registration Authority TL Transparency Log Agent server MCP endpoint DNS zone SVCB, badge TXT, TLSA Verifier Calls the agent 1. Register 2. Publish records 3. Check records 4. Log event 5. _ans-badge lookup 6. Fetch badge 7. Call after verification
Registration (steps 1-3), logging (step 4), and verification (steps 5-6), then the call (step 7).

Each step is covered in 3.1 Registration, 3.2 Transparency Log, and 3.3 Verification.

An agent registered with ANS gets a name made of a scheme, a semantic version, and a host, such as ans://v1.0.0.weather.example.com.
Registered information cannot be modified, so when the endpoints or metadata change, the operator registers a new version such as v1.1.0.
A name cannot be registered twice, and each name can have one endpoint per protocol (A2A, MCP, HTTP-API).
The operator can optionally register a Verified Identity in did:web or did:key form; once control of the identity is proven with a signature, it is linked to the agent.

2. Usage Examples

2.1 Verifying an Agent Before Connecting

An MCP client or agent orchestrator can check that a remote agent is registered before connecting to it.
The badge tier procedure defined in the specification (ANS-6) is as follows.

MCP client badge tier DNS zone _ans-badge TXT TL Trusted TL domains only Agent server weather.example.com 1. Look up _ans-badge 2. Fetch badge, check status 3. TLS, match fingerprint and host
Fetch the badge from a trusted TL, then compare the certificate fingerprint and host when connecting.
  1. Look up the _ans-badge.weather.example.com TXT record
  2. Check that the record’s url points to a trusted TL domain, then fetch the badge
    • The list of trusted TLs comes from configuration or a separate channel, never from the DNS records being verified
  3. Check the badge status
    • Proceed if ACTIVE; reject if EXPIRED or REVOKED
  4. Connect over TLS and compare the server certificate
    • The certificate fingerprint must match the server certificate fingerprint in the badge
    • The host in the badge must match the host actually dialed

2.2 Authorizing a Calling Agent at the Gateway

In the other direction, the side serving an agent can authorize requests by checking the calling agent’s ANS name.
ans-gateway-auth, from the same organization, implements the specification’s agent-to-agent authentication (ANS-6 Method B) as an Envoy ext_authz service, ans-authz.

Caller Identity certificate Gateway Envoy ext_authz Target ANS headers ans-authz Offline verify TL /root-keys 1. DPoP proof, receipt, status token 4. Allowed request 2. Check 3. Result Key cache
The gateway forwards only requests whose calling agent's ANS identity has been verified.
  1. The calling agent sends three values in request headers
    • DPoP: a DPoP proof (RFC 9449) signed with the identity certificate’s key
    • X-SCITT-Receipt: the receipt
    • X-ANS-Status-Token: the status token
  2. The gateway asks ans-authz to check the request through ext_authz
  3. ans-authz verifies the request
    • Receipt and status token: verified offline with cached TL public keys
    • Identity certificate: its fingerprint must be in the status token’s validIdentityCerts
    • DPoP proof: signed with the certificate’s key, bound to the request method and URL, and not replayed
    • allowedAnsNames: an optional list of names allowed to call
  4. The gateway forwards the allowed request to the target agent
    • The calling agent’s details are passed in the X-ANS-Name, X-ANS-Agent-Id, X-ANS-Fingerprint, and X-ANS-JKT headers

3. Core Flow

3.1 Registration

The operator registers an agent by calling the RA API in this order: the registration request, verify-acme, and verify-dns.

CallOperator does firstRA doesStatus after the call
Registration requestNothingCreates the registration, returns a challengePENDING_VALIDATION
verify-acmePublishes the challengeChecks the challenge, issues certificatesPENDING_DNS
verify-dnsPublishes DNS recordsChecks the records, creates the AGENT_REGISTERED eventACTIVE
Register PENDING_VALIDATION verify-acme PENDING_DNS verify-dns ACTIVE Revoke REVOKED EXPIRED / REVOKED Timed out or cancelled, not logged TL Registration events AGENT_REGISTERED AGENT_REVOKED
The first TL entry appears when the registration becomes ACTIVE; registrations that end while pending are never logged.

The RA API defines seven registration statuses (AgentLifecycleStatus).

StatusMeaning
PENDING_VALIDATIONJust created, waiting for the challenge to be published
PENDING_DNSDomain control checked and certificates issued, waiting for DNS records
ACTIVEDNS records checked
REVOKEDRevoked; cancelling a pending registration also leads to REVOKED
EXPIREDThe deadline passed while pending
DEPRECATEDThe operator marked this version for retirement
FAILEDEnded in failure while pending

A registration that ends before reaching ACTIVE is never recorded in the TL.
If the records do not match at verify-dns, the registration stays in PENDING_DNS and the call can be retried.

The specification only defines DEPRECATED and FAILED; no RA operation moves a registration into either status yet.

3.1.1 Domain Control Validation

The RA answers a registration request with an ACME challenge (RFC 8555).
The challenge is a token for checking that the operator actually controls the host, and it must be published in DNS or on a web server before it expires.
After the operator publishes the token and calls verify-acme, the RA looks up the published value and decides whether the operator controls the domain.
There are two methods, depending on where the token is published.

MethodWhat the operator publishes
DNS-01_acme-challenge.weather.example.com TXT record
HTTP-01http://weather.example.com/.well-known/acme-challenge/<token> resource
Operator weather.example.com DNS zone DNS-01: TXT record Agent server HTTP-01: token resource RA Registration Authority publish lookup Never writes DNS
The operator publishes the challenge; the RA only looks it up over DNS or HTTP.

The RA never writes to the operator’s DNS zone.
The operator publishes both the challenge and the production records, and the RA only checks that they are published.

3.1.2 DNS Records

If a registration request omits discoveryProfiles, the default ANS_DNSAID applies.
When one MCP endpoint is registered with this setting, the records returned in the registration detail response during PENDING_DNS are as follows.

RecordNameValueRequired
SVCBweather.example.com1 . alpn=mcp port=443 key65400=<metadata URL> key65402=mcpYes
TXT_ans-badge.weather.example.comv=ans-badge1; version=v1.0.0; url=<TL badge URL>Yes
TLSA_443._tcp.weather.example.com3 0 1 <server certificate SHA-256>No
DNS zone weather.example.com SVCB alpn=mcp, key65400 Metadata document Agent Card, server card key65400 _ans-badge TXT url=<TL badge URL> TL badge Status, cert fingerprints url= TLSA (optional) 3 0 1 <SHA-256> Server certificate TLS server certificate fingerprint
SVCB points to the metadata document, _ans-badge TXT to the TL badge, and TLSA to the server certificate.
  • SVCB (RFC 9460): one row per endpoint. alpn gives the protocol, and key65400 gives the location of a metadata document such as an MCP server card or an A2A Agent Card. key65400 and key65402 are private-use numbers, because the DNS-AID draft’s parameters are not yet registered with IANA
  • _ans-badge TXT: points to the badge URL on the TL, and verification starts from this record. The badge is the per-agent registration status response (JSON) served by the TL
  • TLSA (RFC 6698): pins the SHA-256 fingerprint of the server certificate in DNS

If the zone is signed with DNSSEC, the validation result for SVCB, HTTPS, and TLSA records (dnssecVerified) is also recorded in the TL.

There is also an ANS_TXT profile that publishes discovery information in _ans TXT records instead of SVCB. Under either profile, the _ans-badge TXT and TLSA records are published in the same form.

3.1.3 Certificate Issuance

Two kinds of certificates are issued at the verify-acme step, and they prove different things.

Identity certificateServer certificate
SANURI ans://v1.0.0.weather.example.com, DNS weather.example.comDNS weather.example.com
IssuerThe RA’s private CAThe configured issuer (such as an ACME CA), or submitted by the operator (BYOC)
UseClient certificate for agent-to-agent mTLSTLS server certificate
ConditionIssued only if the registration request includes a CSR; cannot be added laterEach registration needs exactly one of a CSR or a certificate
RA private CA Configured issuer (ACME CA etc.), BYOC issue issue Identity certificate SAN ans://v1.0.0.weather.example.com Agent-to-agent mTLS client Server certificate SAN weather.example.com TLS server TL registration record SHA-256 of both certificates TLSA DNS zone fingerprint same fingerprint
The identity certificate proves the agent name, the server certificate proves the domain, and both fingerprints are logged in the TL.

Both certificate fingerprints are included in the TL record.
The server certificate fingerprint equals the TLSA record value, so the same certificate can be checked in both DNS and the TL.

3.2 Transparency Log

TL events are created only when a registration becomes ACTIVE or REVOKED.

Event type (eventType)When it is recorded
AGENT_REGISTEREDWhen verify-dns succeeds and the registration becomes ACTIVE, once per registration
AGENT_REVOKEDWhen an ACTIVE registration is revoked
AGENT_RENEWED, AGENT_DEPRECATEDReserved names in the specification, not recorded yet

The AGENT_REGISTERED event contains the name, the host, the DNS records, and both certificate fingerprints.
The RA canonicalizes the event with JCS (RFC 8785) and signs the bytes with its producer key.
The TL seals the signed event in an envelope carrying the TL’s signature, and computes the leaf hash SHA-256(0x00 || JCS(envelope)) over the whole envelope.
The leaf hash format is the same as in Certificate Transparency (RFC 6962).

AGENT_REGISTERED Signed by RA producer key Sealed by TL envelope TL Merkle tree root h01 h23 h(e0) h(e1) h(e2) h(e3) SHA-256(0x00‖JCS(envelope)) Signed and issued by TL checkpoint Tree size, root hash receipt Inclusion proof, envelope status token Current status, 1h TTL New leaf and its path to root Sibling hashes in the receipt
The path from the new leaf to the root becomes the receipt, the root becomes the checkpoint, and the leaf's current status becomes the status token.
ArtifactFormatContents
ReceiptSCITT COSE_Sign1 (CBOR tag 18), ES256The sealed envelope and a Merkle inclusion proof (tree size, leaf index, path, root)
Status tokenCOSE_Sign1 (CBOR tag 18), ES256, default TTL one houragentId, current status, valid certificate fingerprints, metadata hashes
CheckpointC2SP signed noteTree size and root hash

All three artifacts are signed with TL keys, and verifiers check the signatures with the keys the TL publishes at /root-keys.
The status values in a status token (ACTIVE, WARNING, DEPRECATED, EXPIRED, REVOKED) are computed by the TL, and EXPIRED here means certificate expiry.

The RA stores the canonicalized bytes together with the signature, and if delivery to the TL fails, it resends exactly the same bytes. The TL deduplicates by content hash, so a retried event is never recorded twice.

3.3 Verification

The specification (ANS-6) requires a verifier to check all three of the following when authenticating a peer agent.

CheckQuestionEvidence
IdentityIs this certificate sealed in the TL for this agent?Receipt, or badge
LivenessIs the registration valid right now?Status token, or the badge status
PossessionDoes the peer hold the certificate’s private key?TLS handshake, or DPoP proof

The badge tier fetches the badge from the TL as in 2.1, while the SCITT tier verifies the receipt and status token sent by the peer locally.
The SCITT tier procedure recommended by the specification is as follows.

Presented by the peer Published by the TL Server certificate TLS handshake receipt X-SCITT-Receipt status token X-ANS-Status-Token Public key /root-keys Verifier Identity: receipt Liveness: status token Possession: TLS
Identity, Liveness, and Possession are checked using only the peer's artifacts and the TL public key.
  1. Connect over TLS and receive the server certificate
  2. Take the receipt and status token from the X-SCITT-Receipt and X-ANS-Status-Token response headers
  3. Check the receipt’s Merkle path and signature with the public key from /root-keys
  4. Check the status token’s signature, expiry time, and status
  5. Bind the artifacts to the connection
    • The server certificate fingerprint must be in the status token’s validServerCerts
    • The host in the receipt’s event must match the host actually dialed
    • Optional: the status token’s metadataHashes must match the hash of the fetched Agent Card

A receipt only proves that the TL signed the leaf; it does not prove that the TL keeps the log honestly. Where stronger assurance is needed, compare the computed root against the TL's checkpoints and consistency history (ANS-6 11.3).

The default status token TTL is one hour, but adding the clock skew allowance (up to 10 minutes) and the grace period (up to one TTL), a revocation can take up to 2 hours 10 minutes to reach a verifier (ANS-6 11.1).

References