AWS privilege escalation map for AI agents

The AWS permissions that let a role grant itself more, placed on the roles AI agents run as: what a manipulated agent would do with each, the change that breaks it and what your SOC can alert on.

Drel Research14 min read

Published by Drel Research · Method · Limits · Reference data; not a statement about any account. 50 entries reviewed 2026-11-29, catalog pathfinding.cloud@b3f449e5.

A privilege escalation path is a set of AWS permissions that lets a role reach more than its own policies grant: by writing its own policy, by taking over another role, or by handing a more privileged role to a resource it creates and running code there. When the role belongs to an AI agent, the one asking for those calls can be a prompt injection in a document, a poisoned tool description or a tool result the agent trusted.

This map starts with 10 entries Drel Research wrote for the roles agents run as, then details 40 catalog paths agents run into, then lists the other 51 paths of the catalog. The paths come from the pathfinding.cloud catalog; the agent entries, the outcomes, the cuts and the CloudTrail lines are Drel's.

Agent-specific entries

Each entry places one catalog path on a role an agent runs as. The permissions listed are all the path needs; the example role holds them with others an agent like it commonly has.

Bedrock AgentCore runtime role · drel-agent-001 · catalog path bedrock-001

An AgentCore agent that can create a code interpreter and hand it another role

Permissions the path needs

iam:PassRole + bedrock-agentcore:CreateCodeInterpreter + bedrock-agentcore:StartCodeInterpreterSession + bedrock-agentcore:InvokeCodeInterpreter

Leads to

the permissions of any role it can pass to the new resource

How a manipulated agent would use this

A document the agent reads carries an instruction: "run this analysis in a new code interpreter with the data-platform role". The agent's own role can create that interpreter, pass it the more privileged role and run code inside it, so the injected text ends up executing with the passed role's permissions.

Not knowable from a configuration read

Whether the agent's code actually calls these APIs on a model's request; the role allows it either way.

The change that breaks it

Remove bedrock-agentcore:CreateCodeInterpreter from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.

Side effect: Whatever legitimately calls bedrock-agentcore:CreateCodeInterpreter stops working; give that task its own, narrower role. Limiting iam:PassRole breaks any deployment that passes a role it doesn't name.

What your SOC can alert on

  • iam:PassRole has no event of its own: alert on the call that passes the role (its requestParameters name the role)
  • CreateCodeInterpreter from bedrock-agentcore.amazonaws.com: a management event, recorded by CloudTrail by default (event name not confirmed for this service; it may carry a version suffix)
  • StartCodeInterpreterSession from bedrock-agentcore.amazonaws.com: Drel hasn't confirmed whether CloudTrail records it by default (event name not confirmed for this service; it may carry a version suffix)
  • InvokeCodeInterpreter from bedrock-agentcore.amazonaws.com: Drel hasn't confirmed whether CloudTrail records it by default (event name not confirmed for this service; it may carry a version suffix)

MITRE ATLAS and ATT&CK

  • AML.T0051.001: LLM Prompt Injection: Indirect
  • AML.T0053: AI Agent Tool Invocation
  • T1548.005: Abuse Elevation Control Mechanism: Temporary Elevated Cloud Access

Bedrock AgentCore runtime role · drel-agent-002 · catalog path bedrock-002

An AgentCore agent that can open a session on a code interpreter another team created

Permissions the path needs

bedrock-agentcore:StartCodeInterpreterSession + bedrock-agentcore:InvokeCodeInterpreter

Leads to

the permissions of the role the existing resource runs as

How a manipulated agent would use this

A tool result tells the agent to run a snippet in the shared interpreter. With StartCodeInterpreterSession and InvokeCodeInterpreter on every interpreter, the agent runs that snippet as whatever role the existing interpreter was given.

Not knowable from a configuration read

Which interpreters exist and which roles they run as: the agent's role doesn't say, and the reach is that role's.

The change that breaks it

Remove bedrock-agentcore:StartCodeInterpreterSession from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.

Side effect: Whatever legitimately calls bedrock-agentcore:StartCodeInterpreterSession stops working; give that task its own, narrower role.

What your SOC can alert on

  • StartCodeInterpreterSession from bedrock-agentcore.amazonaws.com: Drel hasn't confirmed whether CloudTrail records it by default (event name not confirmed for this service; it may carry a version suffix)
  • InvokeCodeInterpreter from bedrock-agentcore.amazonaws.com: Drel hasn't confirmed whether CloudTrail records it by default (event name not confirmed for this service; it may carry a version suffix)

MITRE ATLAS and ATT&CK

  • AML.T0051.001: LLM Prompt Injection: Indirect
  • AML.T0053: AI Agent Tool Invocation
  • T1548.005: Abuse Elevation Control Mechanism: Temporary Elevated Cloud Access

Bedrock AgentCore runtime role · drel-agent-003 · catalog path bedrock-004

An AgentCore agent that can run commands in other agent runtimes

Permissions the path needs

bedrock-agentcore:InvokeAgentRuntimeCommand

Leads to

the permissions of the role the existing resource runs as

How a manipulated agent would use this

The agent is meant to call one partner agent. Allowed InvokeAgentRuntimeCommand on every runtime, an injected instruction can send a shell command to any other agent's runtime, which runs it with that runtime's role.

Not knowable from a configuration read

Which other runtimes exist and the roles they run as.

The change that breaks it

Remove bedrock-agentcore:InvokeAgentRuntimeCommand from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.

Side effect: Whatever legitimately calls bedrock-agentcore:InvokeAgentRuntimeCommand stops working; give that task its own, narrower role.

What your SOC can alert on

  • InvokeAgentRuntimeCommand from bedrock-agentcore.amazonaws.com: Drel hasn't confirmed whether CloudTrail records it by default (event name not confirmed for this service; it may carry a version suffix)

MITRE ATLAS and ATT&CK

  • AML.T0051: LLM Prompt Injection
  • AML.T0053: AI Agent Tool Invocation
  • T1548.005: Abuse Elevation Control Mechanism: Temporary Elevated Cloud Access

Bedrock Agents action group Lambda role · drel-agent-004 · catalog path lambda-003

An action group Lambda that can rewrite other functions' code

Permissions the path needs

lambda:UpdateFunctionCode

Leads to

the permissions of the role the existing resource runs as

How a manipulated agent would use this

The action group exists to redeploy one helper function. With UpdateFunctionCode on every function, a manipulated request can replace the code of another action group's Lambda, so every later call to that tool runs the attacker's code with that function's role.

Not knowable from a configuration read

Which functions exist and the roles they run as; whether the replaced function is invoked again (by the agent, a schedule or an event).

The change that breaks it

Remove lambda:UpdateFunctionCode from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.

Side effect: Whatever legitimately calls lambda:UpdateFunctionCode stops working; give that task its own, narrower role.

What your SOC can alert on

  • UpdateFunctionCode20150331v2 from lambda.amazonaws.com: a management event, recorded by CloudTrail by default

MITRE ATLAS and ATT&CK

  • AML.T0053: AI Agent Tool Invocation
  • AML.T0110: AI Agent Tool Poisoning
  • T1548.005: Abuse Elevation Control Mechanism: Temporary Elevated Cloud Access
  • T1648: Serverless Execution

Lambda tool role · drel-agent-005 · catalog path lambda-001

A Lambda tool that can create and run a new function with a role it passes

Permissions the path needs

iam:PassRole + lambda:CreateFunction + lambda:InvokeFunction

Leads to

the permissions of any role it can pass to the new resource

How a manipulated agent would use this

The tool deploys short-lived functions for the agent. An injected instruction asks for one more function, passing it the most privileged role iam:PassRole allows, then invokes it: the new function's code runs with that role.

Not knowable from a configuration read

Which roles exist that the PassRole statement covers, and what they grant.

The change that breaks it

Remove lambda:CreateFunction from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.

Side effect: Whatever legitimately calls lambda:CreateFunction stops working; give that task its own, narrower role. Limiting iam:PassRole breaks any deployment that passes a role it doesn't name.

What your SOC can alert on

  • iam:PassRole has no event of its own: alert on the call that passes the role (its requestParameters name the role)
  • CreateFunction20150331 from lambda.amazonaws.com: a management event, recorded by CloudTrail by default
  • Invoke from lambda.amazonaws.com: a data event, recorded only if a trail logs lambda data events

MITRE ATLAS and ATT&CK

  • AML.T0051.001: LLM Prompt Injection: Indirect
  • AML.T0053: AI Agent Tool Invocation
  • T1548.005: Abuse Elevation Control Mechanism: Temporary Elevated Cloud Access
  • T1648: Serverless Execution

Lambda tool role · drel-agent-006 · catalog path iam-005

A Lambda tool that can write its own role's policy

Permissions the path needs

iam:PutRolePolicy

Leads to

any permission it writes into its own policies (administrator, unless a permissions boundary or an SCP stops it)

How a manipulated agent would use this

The tool tags or tunes roles for the agent. With iam:PutRolePolicy on its own role, one injected request writes an inline policy granting itself whatever it is asked for.

Not knowable from a configuration read

Whether a permissions boundary or an organization guardrail (SCP) caps what the written policy can grant.

The change that breaks it

Remove iam:PutRolePolicy: it lets the principal rewrite its own permissions.

Side effect: Whatever legitimately calls iam:PutRolePolicy stops working; give that task its own, narrower role.

What your SOC can alert on

  • PutRolePolicy from iam.amazonaws.com: a management event, recorded by CloudTrail by default

MITRE ATLAS and ATT&CK

MCP server role · drel-agent-007 · catalog path sts-001

An MCP server whose role can assume any role

Permissions the path needs

sts:AssumeRole

Leads to

the permissions of the user or role it takes over

How a manipulated agent would use this

The MCP server assumes a role per customer account. With sts:AssumeRole on "*", a poisoned tool description or argument can steer it to assume any role whose trust policy accepts it, and the tool calls that follow run with that role.

Not knowable from a configuration read

Which roles trust the MCP server's role: that is in each target role's trust policy, not in the server's.

The change that breaks it

Remove sts:AssumeRole, or limit it to the named principals the agent must manage.

Side effect: Whatever legitimately calls sts:AssumeRole stops working; give that task its own, narrower role.

What your SOC can alert on

  • AssumeRole from sts.amazonaws.com: a management event, recorded by CloudTrail by default

MITRE ATLAS and ATT&CK

MCP server role · drel-agent-008 · catalog path ecs-008

An MCP server on ECS that can start tasks with a role it passes

Permissions the path needs

iam:PassRole + ecs:RunTask

Leads to

the permissions of any role it can pass to the new resource

How a manipulated agent would use this

The server runs jobs as ECS tasks. An injected request starts a task with a task definition the attacker picks and passes it a more privileged role, so the task's container runs with that role.

Not knowable from a configuration read

Which task definitions exist and which roles iam:PassRole covers.

The change that breaks it

Remove ecs:RunTask from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.

Side effect: Whatever legitimately calls ecs:RunTask stops working; give that task its own, narrower role. Limiting iam:PassRole breaks any deployment that passes a role it doesn't name.

What your SOC can alert on

  • iam:PassRole has no event of its own: alert on the call that passes the role (its requestParameters name the role)
  • RunTask from ecs.amazonaws.com: a management event, recorded by CloudTrail by default (event name not confirmed for this service; it may carry a version suffix)

MITRE ATLAS and ATT&CK

  • AML.T0110: AI Agent Tool Poisoning
  • AML.T0053: AI Agent Tool Invocation
  • T1548.005: Abuse Elevation Control Mechanism: Temporary Elevated Cloud Access

GitHub Actions OIDC deploy role · drel-agent-009 · catalog path cloudformation-001

A deploy role a coding agent's branch can reach that creates CloudFormation stacks with a passed role

Permissions the path needs

iam:PassRole + cloudformation:CreateStack

Leads to

the permissions of any role it can pass to the new resource

How a manipulated agent would use this

A coding agent that can push a branch triggers the workflow that assumes the deploy role. An instruction hidden in an issue or a file asks it to add a template: the stack is created with the passed role and builds whatever the template says.

Not knowable from a configuration read

Whether the role's trust policy accepts a token from a branch the agent can push to (a missing `sub` condition): Drel reads that from the declared trust policy, not from the permissions.

The change that breaks it

Remove cloudformation:CreateStack from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.

Side effect: Whatever legitimately calls cloudformation:CreateStack stops working; give that task its own, narrower role. Limiting iam:PassRole breaks any deployment that passes a role it doesn't name.

What your SOC can alert on

  • iam:PassRole has no event of its own: alert on the call that passes the role (its requestParameters name the role)
  • CreateStack from cloudformation.amazonaws.com: a management event, recorded by CloudTrail by default (event name not confirmed for this service; it may carry a version suffix)

MITRE ATLAS and ATT&CK

  • AML.T0051.001: LLM Prompt Injection: Indirect
  • AML.T0053: AI Agent Tool Invocation
  • T1548.005: Abuse Elevation Control Mechanism: Temporary Elevated Cloud Access

GitHub Actions OIDC deploy role · drel-agent-010 · catalog path iam-009

A deploy role a coding agent's branch can reach that can attach policies to itself

Permissions the path needs

iam:AttachRolePolicy

Leads to

the permissions of any managed policy it can attach to itself (AWS's AdministratorAccess among them, unless a condition, a permissions boundary or an SCP limits which)

How a manipulated agent would use this

The workflow manages the application's roles. From a branch the agent pushed, one extra step attaches AWS's AdministratorAccess to the deploy role itself.

Not knowable from a configuration read

Whether the role's trust policy accepts a token from a branch the agent can push to, and whether a condition, boundary or SCP limits which policies can be attached.

The change that breaks it

Remove iam:AttachRolePolicy: it lets the principal rewrite its own permissions.

Side effect: Whatever legitimately calls iam:AttachRolePolicy stops working; give that task its own, narrower role.

What your SOC can alert on

  • AttachRolePolicy from iam.amazonaws.com: a management event, recorded by CloudTrail by default

MITRE ATLAS and ATT&CK

Catalog paths agents run into

AgentCore, Lambda, SageMaker, ECS, Glue, Step Functions, CloudFormation and CodeBuild, then the IAM and STS calls a role can make on its own policies or on other roles. Each path here can be taken by a role, not only by an IAM user.

PathPermissionsLeads toThe change that breaks it
bedrock-001iam:PassRole + bedrock-agentcore:CreateCodeInterpreter + bedrock-agentcore:StartCodeInterpreterSession + bedrock-agentcore:InvokeCodeInterpreterthe permissions of any role it can pass to the new resourceRemove bedrock-agentcore:CreateCodeInterpreter from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
bedrock-002bedrock-agentcore:StartCodeInterpreterSession + bedrock-agentcore:InvokeCodeInterpreterthe permissions of the role the existing resource runs asRemove bedrock-agentcore:StartCodeInterpreterSession from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
bedrock-003iam:PassRole + bedrock-agentcore:CreateAgentRuntime + bedrock-agentcore:CreateAgentRuntimeEndpoint + bedrock-agentcore:CreateWorkloadIdentity + bedrock-agentcore:InvokeAgentRuntimeCommandthe permissions of any role it can pass to the new resourceRemove bedrock-agentcore:CreateAgentRuntime from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
bedrock-004bedrock-agentcore:InvokeAgentRuntimeCommandthe permissions of the role the existing resource runs asRemove bedrock-agentcore:InvokeAgentRuntimeCommand from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
bedrock-005iam:PassRole + bedrock-agentcore:CreateHarness + bedrock-agentcore:CreateAgentRuntime + bedrock-agentcore:CreateAgentRuntimeEndpoint + bedrock-agentcore:CreateWorkloadIdentity + bedrock-agentcore:GetAgentRuntime + bedrock-agentcore:GetHarness + bedrock-agentcore:InvokeAgentRuntimeCommandthe permissions of any role it can pass to the new resourceRemove bedrock-agentcore:CreateHarness from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
bedrock-006iam:PassRole + bedrock-agentcore:CreateBrowser + bedrock-agentcore:StartBrowserSession + bedrock-agentcore:ConnectBrowserAutomationStreamthe permissions of any role it can pass to the new resourceRemove bedrock-agentcore:CreateBrowser from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
bedrock-007bedrock-agentcore:StartBrowserSession + bedrock-agentcore:ConnectBrowserAutomationStreamthe permissions of the role the existing resource runs asRemove bedrock-agentcore:StartBrowserSession from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
lambda-001iam:PassRole + lambda:CreateFunction + lambda:InvokeFunctionthe permissions of any role it can pass to the new resourceRemove lambda:CreateFunction from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
lambda-002iam:PassRole + lambda:CreateFunction + lambda:CreateEventSourceMappingthe permissions of any role it can pass to the new resourceRemove lambda:CreateFunction from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
lambda-003lambda:UpdateFunctionCodethe permissions of the role the existing resource runs asRemove lambda:UpdateFunctionCode from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
lambda-004lambda:UpdateFunctionCode + lambda:InvokeFunctionthe permissions of the role the existing resource runs asRemove lambda:UpdateFunctionCode from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
lambda-005lambda:UpdateFunctionCode + lambda:AddPermissionthe permissions of the role the existing resource runs asRemove lambda:UpdateFunctionCode from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
lambda-006iam:PassRole + lambda:CreateFunction + lambda:AddPermissionthe permissions of any role it can pass to the new resourceRemove lambda:CreateFunction from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
sagemaker-001iam:PassRole + sagemaker:CreateNotebookInstancethe permissions of any role it can pass to the new resourceRemove sagemaker:CreateNotebookInstance from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
sagemaker-002iam:PassRole + sagemaker:CreateTrainingJobthe permissions of any role it can pass to the new resourceRemove sagemaker:CreateTrainingJob from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
sagemaker-003iam:PassRole + sagemaker:CreateProcessingJobthe permissions of any role it can pass to the new resourceRemove sagemaker:CreateProcessingJob from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
sagemaker-004sagemaker:CreatePresignedNotebookInstanceUrlthe permissions of the role the existing resource runs asRemove sagemaker:CreatePresignedNotebookInstanceUrl from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
sagemaker-005sagemaker:CreateNotebookInstanceLifecycleConfig + sagemaker:StopNotebookInstance + sagemaker:UpdateNotebookInstance + sagemaker:StartNotebookInstancethe permissions of the role the existing resource runs asRemove sagemaker:CreateNotebookInstanceLifecycleConfig from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
ecs-003iam:PassRole + ecs:RegisterTaskDefinition + ecs:CreateServicethe permissions of any role it can pass to the new resourceRemove ecs:RegisterTaskDefinition from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
ecs-004iam:PassRole + ecs:RegisterTaskDefinition + ecs:RunTaskthe permissions of any role it can pass to the new resourceRemove ecs:RegisterTaskDefinition from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
ecs-006ecs:ExecuteCommand + ecs:DescribeTasksthe permissions of the role the existing resource runs asRemove ecs:ExecuteCommand from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
ecs-008iam:PassRole + ecs:RunTaskthe permissions of any role it can pass to the new resourceRemove ecs:RunTask from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
ecs-009iam:PassRole + ecs:StartTaskthe permissions of any role it can pass to the new resourceRemove ecs:StartTask from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
glue-003iam:PassRole + glue:CreateJob + glue:StartJobRunthe permissions of any role it can pass to the new resourceRemove glue:CreateJob from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
glue-005iam:PassRole + glue:UpdateJob + glue:StartJobRunthe permissions of any role it can pass to the new resourceRemove glue:UpdateJob from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
glue-007iam:PassRole + glue:CreateSession + glue:RunStatementthe permissions of any role it can pass to the new resourceRemove glue:CreateSession from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
stepfunctions-001iam:PassRole + states:CreateStateMachine + states:StartExecutionthe permissions of any role it can pass to the new resourceRemove states:CreateStateMachine from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
stepfunctions-002states:UpdateStateMachine + states:StartExecutionthe permissions of the role the existing resource runs asRemove states:UpdateStateMachine from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
cloudformation-001iam:PassRole + cloudformation:CreateStackthe permissions of any role it can pass to the new resourceRemove cloudformation:CreateStack from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
cloudformation-002cloudformation:UpdateStackthe permissions of the role the existing resource runs asRemove cloudformation:UpdateStack from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
codebuild-001iam:PassRole + codebuild:CreateProject + codebuild:StartBuildthe permissions of any role it can pass to the new resourceRemove codebuild:CreateProject from the role, or limit iam:PassRole to named role ARNs with an iam:PassedToService condition, so it can't hand a more privileged role to a new resource.
codebuild-002codebuild:StartBuildthe permissions of the role the existing resource runs asRemove codebuild:StartBuild from the role, or limit it to the resources the agent owns, so it can't run code as another resource's role.
iam-001iam:CreatePolicyVersionany permission it writes into its own policies (administrator, unless a permissions boundary or an SCP stops it)Remove iam:CreatePolicyVersion: it lets the principal rewrite its own permissions.
iam-005iam:PutRolePolicyany permission it writes into its own policies (administrator, unless a permissions boundary or an SCP stops it)Remove iam:PutRolePolicy: it lets the principal rewrite its own permissions.
iam-009iam:AttachRolePolicythe permissions of any managed policy it can attach to itself (AWS's AdministratorAccess among them, unless a condition, a permissions boundary or an SCP limits which)Remove iam:AttachRolePolicy: it lets the principal rewrite its own permissions.
iam-012iam:UpdateAssumeRolePolicythe permissions of the user or role it takes overRemove iam:UpdateAssumeRolePolicy, or limit it to the named principals the agent must manage.
iam-014iam:AttachRolePolicy + sts:AssumeRolethe permissions of the user or role it takes overRemove iam:AttachRolePolicy, or limit it to the named principals the agent must manage.
iam-016iam:CreatePolicyVersion + sts:AssumeRolethe permissions of the user or role it takes overRemove iam:CreatePolicyVersion, or limit it to the named principals the agent must manage.
iam-017iam:PutRolePolicy + sts:AssumeRolethe permissions of the user or role it takes overRemove iam:PutRolePolicy, or limit it to the named principals the agent must manage.
sts-001sts:AssumeRolethe permissions of the user or role it takes overRemove sts:AssumeRole, or limit it to the named principals the agent must manage.

The rest of the catalog

The other 51 AWS paths of the catalog, by id. Some apply only to an IAM user, which an agent running as a role can't take on itself.

PathPermissionsWho can take it
apprunner-001iam:PassRole + apprunner:CreateServiceA role or a user
apprunner-002apprunner:UpdateServiceA role or a user
batch-001iam:PassRole + batch:RegisterJobDefinition + batch:SubmitJobA role or a user
batch-002batch:SubmitJobA role or a user
batch-003iam:PassRole + batch:CreateComputeEnvironment + batch:CreateJobQueue + batch:RegisterJobDefinition + batch:SubmitJobA role or a user
braket-001iam:PassRole + braket:CreateJobA role or a user
cloudformation-003iam:PassRole + cloudformation:CreateStackSet + cloudformation:CreateStackInstancesA role or a user
cloudformation-004iam:PassRole + cloudformation:UpdateStackSetA role or a user
cloudformation-005cloudformation:CreateChangeSet + cloudformation:ExecuteChangeSetA role or a user
codebuild-003codebuild:StartBuildBatchA role or a user
codebuild-004iam:PassRole + codebuild:CreateProject + codebuild:StartBuildBatchA role or a user
codedeploy-001codedeploy:CreateDeployment + codedeploy:RegisterApplicationRevision + codedeploy:GetDeploymentConfigA role or a user
cognitoidentity-001iam:PassRole + cognito-identity:SetIdentityPoolRolesA role or a user
datapipeline-001iam:PassRole + datapipeline:CreatePipeline + datapipeline:PutPipelineDefinition + datapipeline:ActivatePipelineA role or a user
ec2-001iam:PassRole + ec2:RunInstancesA role or a user
ec2-002ec2:ModifyInstanceAttribute + ec2:StopInstances + ec2:StartInstancesA role or a user
ec2-003iam:PassRole + ec2:RequestSpotInstancesA role or a user
ec2-005ec2:CreateLaunchTemplateVersion + ec2:ModifyLaunchTemplateA role or a user
ec2instanceconnect-003ec2-instance-connect:SendSSHPublicKey + ec2:DescribeInstancesA role or a user
ecs-001iam:PassRole + ecs:CreateCluster + ecs:RegisterTaskDefinition + ecs:CreateServiceA role or a user
ecs-002iam:PassRole + ecs:CreateCluster + ecs:RegisterTaskDefinition + ecs:RunTaskA role or a user
ecs-005iam:PassRole + ecs:RegisterTaskDefinition + ecs:StartTaskA role or a user
ecs-007iam:PassRole + ecs:RegisterContainerInstance + ecs:StartTaskA role or a user
emr-001iam:PassRole + elasticmapreduce:RunJobFlowA role or a user
emrserverless-001iam:PassRole + emr-serverless:CreateApplication + emr-serverless:StartJobRunA role or a user
gamelift-001iam:PassRole + gamelift:CreateBuild + gamelift:CreateFleet + gamelift:RequestUploadCredentialsA role or a user
glue-001iam:PassRole + glue:CreateDevEndpointA role or a user
glue-002glue:UpdateDevEndpointA role or a user
glue-004iam:PassRole + glue:CreateJob + glue:CreateTriggerA role or a user
glue-006iam:PassRole + glue:UpdateJob + glue:CreateTriggerA role or a user
iam-002iam:CreateAccessKeyA role or a user
iam-003iam:CreateAccessKey + iam:DeleteAccessKeyA role or a user
iam-004iam:CreateLoginProfileA role or a user
iam-006iam:UpdateLoginProfileA role or a user
iam-007iam:PutUserPolicyAn IAM user only
iam-008iam:AttachUserPolicyAn IAM user only
iam-010iam:AttachGroupPolicyAn IAM user only
iam-011iam:PutGroupPolicyAn IAM user only
iam-013iam:AddUserToGroupAn IAM user only
iam-015iam:AttachUserPolicy + iam:CreateAccessKeyA role or a user
iam-018iam:PutUserPolicy + iam:CreateAccessKeyA role or a user
iam-019iam:AttachRolePolicy + iam:UpdateAssumeRolePolicyA role or a user
iam-020iam:CreatePolicyVersion + iam:UpdateAssumeRolePolicyA role or a user
iam-021iam:PutRolePolicy + iam:UpdateAssumeRolePolicyA role or a user
imagebuilder-001iam:PassRole + imagebuilder:CreateComponent + imagebuilder:CreateImageRecipe + imagebuilder:CreateInfrastructureConfiguration + imagebuilder:CreateImageA role or a user
kinesisanalytics-001iam:PassRole + kinesisanalytics:CreateApplication + kinesisanalytics:StartApplicationA role or a user
omics-001iam:PassRole + omics:CreateWorkflow + omics:StartRun + s3:GetObjectA role or a user
scheduler-001iam:PassRole + scheduler:CreateScheduleA role or a user
ssm-001ssm:StartSessionA role or a user
ssm-002ssm:SendCommandA role or a user
ssm-003iam:PassRole + ssm:CreateDocument + ssm:StartAutomationExecutionA role or a user

Method

  • Paths. The 91 AWS paths of pathfinding.cloud at commit b3f449e5 (catalog pathfinding.cloud@b3f449e5), imported as typed data.
  • Drel's fields. Per path: where it leads in plain words, the change that breaks it and its side effect, the CloudTrail events and whether CloudTrail records them by default, and the MITRE ATT&CK techniques. Per agent entry: the role it sits on, how a manipulated agent would use it, what a configuration read can't see, and the MITRE ATLAS techniques (ATLAS 2026.10).
  • Checked in code. Each agent entry's example role is run through Drel's policy evaluator: it must open the path, and the same role with the path's cut applied must not. Every catalog path's cut is checked the same way.
  • Last checked. On November 29, 2026, the evaluator test above passed on every entry against catalog pathfinding.cloud@b3f449e5: machine-anchored (no human review). The date moves only when the entries change and the test passes again.

Limits

  • This is reference data. It says nothing about any account, and a role missing from it is not a role without a path: the catalog lists the paths people have documented.
  • Where a path leads past the role's own policies depends on the role it passes or assumes. “Administrator” is only true when that role's policies grant it.
  • Not weighed here: organization guardrails (scps) not read; permissions boundary not read; resource policies; session policies; conditions on a statement.
  • A CloudTrail line marked unconfirmed has not been checked against AWS's documentation for that call. Data events are recorded only when a trail logs them.
  • AWS only. Azure and Google Cloud are not covered.

Source and license

The paths come from pathfinding.cloud, used under the Apache-2.0 license. Changes from the upstream: AWS paths only; exploitation steps, attack visualizations, learning environments, tool support and detection rules dropped; prerequisites normalized to admin / lateral / any.

Datadog pathfinding.cloud
Copyright 2025-Present Datadog, Inc.

This product includes software developed at Datadog (https://www.datadoghq.com/).

Cite this page

Drel Research, “AWS privilege escalation map for AI agents,” reviewed November 29, 2026, catalog pathfinding.cloud@b3f449e5, https://drel.ai/aws-privilege-escalation-map. The entries change when the catalog is updated; the address does not. Quote the catalog version with an entry.

Frequently asked questions

What is an AWS privilege escalation path?
A set of permissions that lets a role or user reach more than its own policies grant: by changing its own policies, by acting as another principal, or by passing a more privileged role to a resource it creates or controls and running code there.
Why does it matter more for an AI agent's role?
Because the calls an agent makes can be steered by text it reads: a prompt injection in a document, a poisoned tool description or a tool result. A path on the agent's role is a path anyone who can put text in front of the agent can try to use.
Does this page say whether my account has these paths?
No. It is reference data. Whether a path is open depends on the role's policies, its permissions boundary, the organization's guardrails, conditions and which roles exist; none of that is read here.

Review the agent's reach before it ships

An AI security review covers what the agent's identity and permissions reach, the attack paths through its tools, the controls in place and the decision your AI Committee signs.

A note on scope: Drel reviews assessed systems against documented architecture, configuration and intent. It does not ingest live telemetry from production environments. Dispositions reflect the assessed system at the time of review and the re-assessment triggers that govern when the disposition must be revisited.