Skip to content

Security and Authentication in A2A

How A2A agents authenticate each other, authorise tasks and protect against malicious agents and content.

Editorial team 1 min read

Agents delegating work to other agents create new trust relationships. A2A relies on standard web security, applied carefully.

Authentication

Agent Cards declare which authentication schemes an agent accepts, such as API keys, OAuth 2.0 or OpenID Connect. Credentials are obtained outside the protocol and sent with HTTP requests.

Transport Security

Use HTTPS for all production traffic.

Authorisation

The remote agent decides what each client is allowed to do, based on identity and scopes. Consider which user a request is on behalf of, and apply that user's permissions.

Risks

  • Malicious or compromised agents returning manipulative content that hijacks the client agent.
  • Over-sharing: sending sensitive data to agents that don't need it.
  • Impersonation: fake agents claiming to be trusted services.
  • Webhook abuse: push notification URLs pointed at internal systems.

Defences

  • Allow-list trusted agents.
  • Treat all remote output as untrusted data.
  • Minimise data shared per task.
  • Log delegations and results for audit.
  • Require human approval before acting on high-stakes results.

More in A2A

All A2A guides →
A2A Guide · 1 min

What Is the Agent2Agent (A2A) Protocol?

An introduction to A2A, the open protocol that lets AI agents built by different teams and vendors work together.

A2A 1 min read 8 Aug 2025

A2A Guide · 1 min

A2A Versus MCP

How the Agent2Agent protocol and the Model Context Protocol differ, and why many systems use both.

A2A 1 min read 7 Aug 2025

A2A Guide · 1 min

A2A Agent Cards and Discovery

How agents advertise their skills with Agent Cards, and how clients find and choose agents to work with.

A2A 1 min read 6 Aug 2025

A2A Guide · 1 min

A2A Tasks and Their Lifecycle

How work is tracked in A2A: task states, long-running work, requests for input and cancellation.

A2A 1 min read 5 Aug 2025