Repository navigation
Description
Feature Description
The lack of a standardized mechanism to bind agent runtime identity to Agent Cards is a well-documented gap in the A2A ecosystem. While Agent Cards may be digitally signed using JSON Web Signatures (JWS) to ensure integrity and prove the card "originates from the claimed provider," the A2A spec provides no formal method to verify that the service presenting the card is the legitimate owner of that identity.
This creates a critical security vulnerability: a cryptographically signed Agent Card proves the contents have a particular origin, but does not prove that the current holder of the card is the authorized owner.
Attack Scenario
The Cloud Security Alliance's MAESTRO framework identifies "Unauthorized Agent Impersonation" as a top threat, specifically noting the "reliance on easily spoofed Agent Cards". This vulnerability enables rogue agents to impersonate other agents by serving copied Agent Cards, thereby capturing requests intended for legitimate services.
Critically, this is a problem even when an agent is otherwise trusted. A compromised agent within the system can proceed to assume the identity of other agents by advertising their cards--which are used to advertise capabilities and skills for dynamic invocation.
Since Agent Cards are typically served over HTTPS at well-known URLs and the spec does not mandate cryptographic proof of card ownership, a malicious service could host a copied Agent Card from a legitimate agent if clients do not rigorously verify domain certificates or signatures.
Community Recommended Mitigations
Security experts recommend introducing Decentralized Identifiers (DIDs) or mutual TLS to verify agent identities, enabling agents to present cryptographic proof of identity beyond domain names.
The A2A community has proposed using workload identity frameworks like SPIFFE/SPIRE in this discussion--to issue identity certificates to agents, with Agent Cards referencing these identities (e.g., spiffe://example.com/agent123).
Agent registries with governance and cryptographic binding have also been discussed as a practical solution.
Proposed Solution
A simple Agent Card Registry Service that provides cryptographic binding between workload identities and Agent Cards through a centralized trust anchor. This registry will enable verification that agents are authorized to serve their advertised cards, closing the identity binding gap in A2A.
The registry can serve endpoints for mapping agent card signatures to workload identity (Spiffe URI, Service Account) and for verification. From there we can add support for policy enforcement from an operator, or eventually implement a decentralized identifier document solution.
Finally, we might also include build time attestation in the style of the sigstore a2a project in order to complete the chain.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
pdettori commentedon Dec 1, 2025
I agree on the critical nature of this vulnerability. Agent Card ownership verification is a key security gap that needs to be addressed. The proposed Agent Card Registry Service seems like a good way to start, especially by leveraging existing workload identity standards like SPIFFE/SPIRE for the cryptographic binding.
We should be clear on whether the Registry is a mandatory check for all clients or an optional feature. If it's optional, clients can still be vulnerable. If it's mandatory, it represents a significant change to the A2A spec/client implementation
husky-parul commentedon Dec 4, 2025
I want to add a perspective from similar work I did in building a ModelCard Registry Service (OCI-based, signature-verified, acting as a central trust anchor). Although the domain is different, the trust problem is structurally the same.
One thing I’ve learned is that the challenge is not only how to bind workload identity to an AgentCard at runtime, but how the AgentCard gets into the registry in the first place. Today A2A assumes that workloads can host or supply their own AgentCards, and that assumption is what opens the impersonation vector.
In my experience, the more robust pattern is:
Once you have a registry that provides:
and a simple runtime check:
“Is workload W authorized to present AgentCard C?”
…then the trust model becomes significantly clearer and safer. Workload identity (SPIFFE/mTLS/DID) is still essential, but it becomes the runtime binding check, not the foundation of trust.
In other words:
Registry = source of truth for AgentCards
Workload identity = proof of who is calling
Registry policy = whether that workload is allowed to present that card
This avoids the problem where a compromised or arbitrary workload can host or present a valid-looking card. Clients never trust cards served by workloads directly — they trust the registry to provide the authoritative card and the registry to validate the binding to the workload identity.
The design direction in #429 (central registry + identity binding) aligns well with this pattern, but I think the spec also needs to explicitly define how AgentCards are safely ingested into the registry, not just how the registry binds them at runtime. Otherwise, a malicious publisher or misconfigured deployment could still get a bad card into the registry, and the system would faithfully enforce bindings for a card that should never have been accepted.
Happy to expand on the ingestion/binding separation if useful.
computate commentedon Jan 14, 2026
You might consider using the OpenID for Verifiable Credential Issuance 1.0 spec which is available in upstream Keycloak as the
oid4vc-vcifeature.See Decentralized IAM based on Verifiable Credentials and ODRL by FIWARE, and Deploying a FIWARE Data Space Connector.
Red Hat Build of Keycloak does also support the
spiffefeature.husky-parul commentedon Jan 15, 2026
Thanks for the suggestions around OID4VCI and SPIFFE. I wasn't aware of this capability, that’s helpful context.
So narrowing strictly to the scope of this issue (cluster-scoped agent registry, verifiable agent identity, and discovery), here’s how I see the problem space and what existing Keycloak features can and cannot cover today.
What Keycloak can already help with
Using OID4VCI Keycloak can act as a Verifiable Credential issuer. Agent Cards can be modeled as signed credentials describing agent identity avoiding self-asserted metadata. SPIFFE support enables binding a workload identity to the running agent instance
What remains unsolved by Keycloak alone
Agent discovery semantics: Keycloak does not provide an opinionated agent registry or discovery model (e.g., listing only verified agents, lifecycle management, or discovery filtering), cannot provide runtime SPIFFE ID authorization checks against registry bindings.
Verification workflows: There is no built-in mechanism to enforce “verify before register” or to gate discoverability based on credential verification.
A registry control plane is still needed to:
- verify VC signatures and issuer trust,
- bind issued credentials to workload identities,
- expose only verified agents for discovery.
IMO since the registry is cluster-scoped, we can meet #429 with a trusted in-cluster publisher + JWS verification and a local trust bundle.
computate commentedon Jan 15, 2026
How would you create a Verifiable Data Registry with Keycloak and OID4VCI? You could use the OID4VCI compatible Trusted Issuers List Registry provided by FIWARE, very well documented by my amazing friend @wistefan at SEAMWARE.
Things to set up for the provider:
Trust Anchor
If you don't have a trust anchor, you don't have a data space.
Trusted Issuers List Registry
signed through JWKS endpoint of Keycloak.Using a Trusted Issuers List Registry
The provider as a Data Space Connector
Includes MySQL database, PostgreSQL database, Trusted Issuers List, Verifiable Credentials Verifier, Digital Signature Service, Credentials Config Service, odrl-pap, Open Policy Agent, Transfer Process Protocol, context broker, elsi, Keycloak with oid4vc-vci feature, tm-forum-api, rainbow, contract-management
Open Policy Agent
APISIX
Things to set up for the consumers
The Consumer is the user consuming the AI Agent, and needs to set up a Data Space Connector architecture, which includes:
wistefan commentedon Jan 16, 2026
@computate Thanks a lot for the nice words about our solution;)
Just some minor corrections:
If you want to know more about Keycloaks OID4VCI capabilities, today a Blogpost on that topic was published on the Keycloak-Page: https://www.keycloak.org/2026/01/issue-credentials-over-openid4vci