OpenA2A AIM (Agent Identity Management) and AWS IAM
AWS Identity and Access Management (IAM) controls who is authenticated and authorized to use AWS resources: IAM users, IAM roles that hand out temporary credentials, federation from SAML and OpenID Connect providers, and JSON policies that AWS evaluates when a principal makes a request. Its user guide does not mention AI agents; AWS documents agent identity in a separate service, Amazon Bedrock AgentCore Identity, and AgentCore Runtime and Gateway accept IAM credentials for inbound calls. OpenA2A AIM (Agent Identity Management) is an open source platform for AI agent identity. It keeps a registry of agents: each agent has an Ed25519 key, a trust score and a list of capabilities checked through an SDK, and MCP servers are attested by the agents that use them.
The two cover different layers. AIM does not accept IAM credentials or AWS STS tokens from agents, and it does not replace IAM for access to AWS. The hosted AIM Cloud adds Google sign-in.
Checked on against the IAM User Guide, the Amazon Bedrock AgentCore Developer Guide and AIM at commit 3ab8285e, opens in a new tab. AWS IAM is a cloud service and its user guide carries no version. On the day of the check the guide's document history listed its latest addition on 2026-05-12, and a capability that was looked for and not found is stated as of the day of the check. To report a line that is wrong, use the contact page.
Capability by capability
Signing people in
AWS IAM
Documented. An IAM user is "an entity that you create in your AWS account", and its credentials can include a console password and access keys. IAM can also federate people from an external identity provider through OpenID Connect or SAML 2.0. The guide recommends federation for people: "IAM best practices recommend that you require human users to use federation with an identity provider to access AWS using temporary credentials instead of using IAM users with long-term credentials." For centralized access management it recommends AWS IAM Identity Center.
Source: IAM users, opens in a new tab, Identity providers and federation into AWS, opens in a new tab, Security best practices in IAM, opens in a new tab
AIM
The dashboard has local email and password sign-in. No single sign-on, OpenID Connect or SAML login is wired in the open source build: the repository contains Google, Microsoft and Okta provider code, but no login route calls it.
Agent identities
AWS IAM
Not found in the IAM User Guide as of 2026-10-16: it does not mention AI agents. Nearest documented capability: IAM roles. "An IAM role is an IAM identity that you can create in your account that has specific permissions." A role has no long-term credentials of its own, and on Amazon EC2 or Lambda AWS delivers a role's temporary credentials to the workload. AWS documents agent identity in a separate service, Amazon Bedrock AgentCore Identity, which works with AWS and third-party services "through Sigv4, standardized OAuth 2.0 flows, and API keys." In its terms, "Agent identities are implemented as workload identities with specific attributes that identify them as agents". Calls to an agent hosted in AgentCore Runtime are authenticated with IAM SigV4 by default, or with a JSON Web Token in its place.
Source: IAM roles, opens in a new tab, Security best practices in IAM, opens in a new tab, Overview of Amazon Bedrock AgentCore Identity, opens in a new tab, AgentCore Identity terminology, opens in a new tab, Authenticate and authorize with Inbound Auth and Outbound Auth, opens in a new tab
AIM
Each agent is registered with its own Ed25519 public key. The token endpoint accepts one grant: a JWT-bearer assertion signed with that key, in exchange for a bearer token for AIM's own agent API. AIM does not implement the client credentials grant: the token endpoint refuses it.
Source: agent_service.go, opens in a new tab, oauth_token_handler.go, opens in a new tab
Credentials
AWS IAM
Documented. "Access keys are long-term credentials for an IAM user or the AWS account root user." A role session receives temporary security credentials from AWS Security Token Service (AWS STS), which "can be configured to last for anywhere from a few minutes to several hours." The guide recommends them: "As a best practice, use temporary security credentials (such as IAM roles) instead of creating long-term credentials like access keys." A workload outside AWS can present an X.509 certificate from its own certificate authority to IAM Roles Anywhere for a role's temporary credentials.
Source: Manage access keys for IAM users, opens in a new tab, Temporary security credentials in IAM, opens in a new tab, Access for non-AWS workloads, opens in a new tab
AIM
An agent can sign each request with its Ed25519 key. On routes behind the request-signature check, the server verifies the signature over the method, path, timestamp and body, and rejects a timestamp more than 30 seconds from its own clock. The action-check request is signed over the action's fields (agent, capability, resource, context and timestamp) and verified against the agent's registered key. Agent routes also accept an API key or a bearer token in place of a signature.
OAuth flows and delegation
AWS IAM
Documented as federation and role assumption. With OIDC federation, an application exchanges a JSON Web Token from an OpenID Connect provider for a role's temporary credentials, for "both machine-to-machine authentication (such as CI/CD pipelines, automated scripts, and serverless applications) and human user authentication." AWS CLI login and the AWS MCP Server sign in through OAuth-based flows of AWS Sign-In, and the aws:SignInSessionArn condition key ties later requests to the sign-in session they came from. "You can use roles to delegate access to users, applications, or services that don't normally have access to your AWS resources." A role can require a source identity that names the person or application, and the value "persists when a role is used to assume another role". OAuth token exchange (RFC 8693) is not found in the IAM User Guide as of 2026-10-16.
Source: OIDC federation, opens in a new tab, AWS global condition context keys, opens in a new tab, IAM roles, opens in a new tab, Monitor and control actions taken with assumed roles, opens in a new tab
AIM
OAuth token exchange (RFC 8693) is not implemented: the agent token endpoint accepts the JWT-bearer grant only. Delegation exists outside OAuth, in the TypeScript SDK, which creates and verifies Ed25519-signed delegation chains between keys. The AIM server does not issue or check them.
Source: oauth_token_handler.go, opens in a new tab, delegation.ts, opens in a new tab
Proof of possession
AWS IAM
Documented for AWS API requests, as a signature on each request: "Authentication information that you send in a request must include a signature." Signature Version 4 calculates the signature with the caller's AWS credentials, its symmetric form with a derived key "that is scoped to a single AWS service, in a single AWS region, on a particular day", and "AWS then replicates this process and verifies the signature, granting or denying access accordingly." DPoP is not found in the IAM User Guide as of 2026-10-16, and the guide names mutual TLS once, for IoT devices that request temporary credentials through AWS IoT Core.
Source: AWS Signature Version 4 for API requests, opens in a new tab, Security best practices in IAM, opens in a new tab
AIM
DPoP is not found in the AIM repository at this commit. Tokens from the token endpoint are plain bearer tokens. Requests authenticated by signature are signed per call, as in the row on client authentication.
Permissions
AWS IAM
Documented. "A policy is an object in AWS that, when associated with an identity or resource, defines their permissions." "Most policies are stored in AWS as JSON documents." The guide lists nine types: identity-based and resource-based policies, VPC endpoint policies, permissions boundaries, AWS Organizations service control policies (SCPs) and resource control policies (RCPs), access control lists, Resource Access Manager shares and session policies. A permissions boundary sets the most that identity-based policies can grant a user or role, and a session policy limits the permissions of one session.
Source: Policies and permissions in AWS Identity and Access Management, opens in a new tab
AIM
Each agent has a list of granted capabilities. The SDK, running inside the agent process, sends each wrapped action to the server, which compares the capability name with that list. In the default mode (monitoring) a capability outside the list is allowed and, under the default policy, raises an alert. The Python SDK's decorator also registers a capability on first use, and in this mode the server grants it automatically. In strict mode a capability outside the list is denied under the default policy, and the SDK blocks the call.
Source: agent_service.go, opens in a new tab, enforcement.py, opens in a new tab
Risk signals and access policy
AWS IAM
IAM Access Analyzer reports resources shared with an external entity, "continuously monitors all IAM roles and users in your AWS organization and accounts and generates findings for unused access", and "generates IAM policies based on access activity in your AWS CloudTrail logs." Last accessed information shows which services and actions an identity has used, so that unused permissions can be removed. A risk or trust score for an IAM principal or an AI agent is not found in the IAM User Guide as of 2026-10-16.
Source: Using AWS Identity and Access Management Access Analyzer, opens in a new tab, Refine permissions in AWS using last accessed information, opens in a new tab
AIM
Each agent has a trust score calculated from nine weighted factors; a factor with no data is left out of the weighted sum. It is recalculated on events such as registration, verification by an administrator, capability changes and capability reports from the SDK. A capability violation also lowers the stored score directly. Each action check reads the stored score.
MCP servers
AWS IAM
Documented for AWS MCP servers, which call AWS services with the credentials of the principal using them: "When a principal makes a request to an AWS MCP service, that service uses the principal's credentials to make subsequent requests to other services." Three global condition keys let a policy tell these requests apart: aws:ViaAWSMCPService is true when an AWS MCP service forwards a request, aws:CalledViaAWSMCP names the MCP service that made it, and aws:IsMcpServiceAction is true when the action being authorized is an MCP service action. The managed policy AWSMcpServiceActionsFullAccess "grants permissions to call any AWS MCP service action." The Model Context Protocol by name, an authorization server for MCP clients and dynamic client registration are not found in the IAM User Guide as of 2026-10-16. AWS documents MCP for services of your own in Amazon Bedrock AgentCore Gateway, which "converts APIs, Lambda functions, and existing services into Model Context Protocol (MCP)-compatible tools". Its inbound authorization can be a JSON Web Token or an IAM identity, which "Authorizes through the credentials of the AWS IAM identity trying to access the gateway."
Source: AWS global condition context keys, opens in a new tab, AWS managed policies for job functions, opens in a new tab, Amazon Bedrock AgentCore Gateway, opens in a new tab, Set up inbound authorization for your gateway, opens in a new tab
AIM
AIM is not an OAuth authorization server for MCP. Agents submit signed attestations of the MCP servers they connect to, and the server checks each signature against the agent's registered key. A drift alert is raised when a capability detection run finds that a server's manifest has changed since the last run.
Source: mcp_attestation_service.go, opens in a new tab, mcp_manifest_service.go, opens in a new tab
Workload identity
AWS IAM
Documented. "When you're building on an AWS compute service, such as Amazon EC2 or Lambda, AWS delivers the temporary credentials of an IAM role to that compute resource." Outside AWS, a workload obtains a role's temporary credentials with an X.509 certificate through IAM Roles Anywhere, a SAML assertion, or a JSON Web Token from an identity provider configured in the account. Outbound identity federation works the other way: a workload calls the AWS STS GetWebIdentityToken API for a JSON Web Token signed with ES384 or RS256, whose claims "represent the identity of the IAM principal", and presents it to an external service. SPIFFE is not found in the IAM User Guide as of 2026-10-16.
Source: Security best practices in IAM, opens in a new tab, Access for non-AWS workloads, opens in a new tab, Federating AWS Identities to external services, opens in a new tab, Getting started with outbound identity federation, opens in a new tab, Understanding token claims, opens in a new tab
AIM
Not implemented for agents at this commit: AIM accepts no SPIFFE identity, Kubernetes service account token or external OpenID Connect issuer as an agent credential.
Source: oauth_token_handler.go, opens in a new tab, pqc_agent_auth.go, opens in a new tab
Audit
AWS IAM
Documented. "CloudTrail captures all API calls for IAM and AWS STS as events, including calls from the console and from API calls." "CloudTrail is enabled on your AWS account when you create the account." A source identity set on a role session is stored in CloudTrail, so that an administrator can see who or what took each action in that session.
Source: Logging IAM and AWS STS API calls with AWS CloudTrail, opens in a new tab, Monitor and control actions taken with assumed roles, opens in a new tab
AIM
An action check that passes its signature check is written to the audit log as a row with the agent, the capability, the resource, the stored trust score and whether it was allowed. The write is best effort: if it fails, the check still returns its decision. The log is not append-only at the database layer and is not signed.
Source: verification_handler.go, opens in a new tab, audit_log_repository.go, opens in a new tab, SECURITY.md, opens in a new tab
License and hosting
AWS IAM
A managed AWS service. "AWS Identity and Access Management (IAM), AWS IAM Identity Center and AWS Security Token Service (AWS STS) are features of your AWS account offered at no additional charge." IAM Access Analyzer's external access analysis carries no charge; its unused access analysis and policy checks are charged.
Source: What is IAM?, opens in a new tab
AIM
The repository is Apache-2.0. Self-hosted with Docker Compose. Also offered as a hosted service, AIM Cloud, which is built from a private mirror of the repository with cloud-only additions.
Source: LICENSE, opens in a new tab, docs/DEPLOYMENT.md, opens in a new tab, docker-compose.quickstart.yml, opens in a new tab
Which layer each one covers
AWS IAM
- Deciding which AWS actions a user, role or service may take, on which resources, through JSON policies.
- Handing temporary credentials to workloads on AWS compute, and through federation or IAM Roles Anywhere to workloads outside AWS.
- Federating people from SAML 2.0 and OpenID Connect providers into roles.
- Telling apart requests that AWS MCP servers make with a principal's credentials, through condition keys.
AIM
- Keeping a registry of agents, each with its own key.
- Scoring each agent and recording the action checks it submits.
- Checking each action an agent submits against its granted capabilities.
- Recording which MCP servers agents attest to, and alerting when a detection run finds a server's manifest changed.
A team can run both: IAM for what an agent's role may do in AWS and for the credentials that AgentCore and AWS MCP servers use, AIM for its registry of agents and their action checks. AIM does not accept IAM credentials as an agent credential at this commit. Agents authenticate to AIM with their own keys or an AIM API key, and in the open source build people sign in to the AIM dashboard with a local account.
Registering an agent with AIM
In the Python SDK, secure() registers an agent and perform_action wraps the actions to be checked. secure() needs credentials first, from aim-sdk login or an SDK downloaded from the dashboard. For a self-hosted server, AIM's README at this commit says to create the agent in the dashboard first. The capability name on the decorator is what the server compares with the agent's grants. The resource is recorded with the check and is not compared.
from aim_sdk import secure
agent = secure("my-agent")
@agent.perform_action("db:read", resource="users_table")
def get_user_data(user_id):
...