TL;DR
- •Permissions that individually look reasonable can chain into an attack path that routes from a low-trust identity to sensitive data.
- •Review identities by what they can reach through role assumptions, workloads, and AI agents, not only by what their own policies allow.
- •Trust specific roles give workloads narrow roles of their own, and rerun your attack path queries as accounts and agents change.
- •Each is a graph query, from an identity to everything it reaches, or from a resource back to everyone who can reach it.
- •All six risk checks ship ready-made in Upwind’s Effective Permissions framework, available now for AWS, with Azure and GCP to follow soon.
Cloud permission reviews look at one grant at a time: should this identity have this access to this resource? Every permission in your cloud passed a check like that. Nobody looks at what the grants add up to once they chain.
Take three grants across three environments. In development, a role reads configuration and nothing else. In shared services, a debugging role trusts the development account. In production, a support role trusts the debugging role and reads the customer exports bucket.
Chained together, these grants form a route from a read-only role in a development environment to customer data in production: two sts:AssumeRole calls and an s3:GetObject. The route needs no exploit, and nothing it leaves in CloudTrail looks unusual.
These routes form in six places, and each one gets a section below with the graph query that finds it:
- Permissions nobody has evaluated together
- IAM rights that let a role grant itself more
- Trust that covers a whole account
- Workloads that hand their role to whoever deploys them
- AI agents that reach more than they need
- Paths that reopen with every new account
Where a risk maps to MITRE ATT&CK (attacker techniques) or MITRE ATLAS (attacks on AI systems), the section ends with the matching technique codes.
Risk 1: Effective Permissions nobody has calculated
Whether a role can read a bucket depends on far more than its own policy, such as the bucket policy, service control policies (SCPs), resource control policies (RCPs), permissions boundaries, and the KMS key policy. The conditions on each of them matter too, and each is usually owned by a different team. Nobody evaluates them together.

Effective permissions are the result of that evaluation: what an identity can actually do, and to which resources. Upwind computes them for every user, group and role in every connected account. It expands wildcards and keeps request-time conditions such as MFA or an external ID attached rather than guessing.
Raw cloud actions are too granular to reason about one at a time, so Upwind maps each one to a normalized verb. s3:GetObject is Read, sts:AssumeRole is Impersonate and iam:PassRole maps to High Privilege. The graph stores these verbs instead of every raw action. Storing verbs lets one query ask who can Read sensitive data or Write to IAM across every service at once.
Attack paths are chains of impersonate edges that usually end at sensitive data or at Admin and High Privilege permissions. The Identity Graph composes these chains at query time, across any number of hops. A query can start at an identity and find everything it reaches, or start at a resource and find everyone who can reach it.
Risk 2: IAM permissions that let a role grant itself anything
The shortest chain is one hop that ends at IAM itself. An identity that can run iam:PutRolePolicy, iam:AttachRolePolicy, iam:CreatePolicyVersion or iam:UpdateAssumeRolePolicy on a role can grant it anything, and these grants hide behind careful-looking scoping: a CI role with iam:AttachRolePolicy on role/ci-* also matches its own ARN.

These grants often hide behind scoping that looks safe. For example, a CI role named ci-deploy with iam:AttachRolePolicy on role/ci-* also matches its own Amazon Resource Name (ARN). It can therefore attach any policy to itself. 
iam:UpdateAssumeRolePolicy also serves persistence: an outside account added to a quiet role’s trust policy survives key rotation and looks like one more cross-account trust.
Scope these IAM actions to named roles, make sure the pattern cannot match the caller’s own role, and review changes to trust policies.
ATT&CK: T1098.003 Additional Cloud Roles · T1098.001 Additional Cloud Credentials
Risk 3: Cross-account trust that covers an entire account
A role can only be assumed across accounts when both sides agree. The target role’s trust policy must name the caller, and the caller’s own policy must allow sts:AssumeRole. The two halves live in different accounts, owned by different teams. The opening route’s first hop is a trust policy like this one on the shared-services debugging role:
{
"Effect": "Allow",
"Principal": { "AWS": "arn:aws:iam::111122223333:root" },
"Action": "sts:AssumeRole"
}:root means the whole development account. Any identity there allowed sts:AssumeRole on this role can use it, and the decision sits where the shared-services team cannot see it.
The graph turns the route into one query. It starts at identities in development accounts, follows any number of Impersonate hops, and ends at a production role that can Read sensitive data. Across an organization the results tend to concentrate on a few template-stamped roles, so fixing the template closes most routes at once.
Longer chains also blur the trail, since each hop is logged in a different account under a session name the caller picks. One example is a chain through a tooling account that can deploy into every workload account.


Chains can also start outside your organization: a vendor’s monitoring role, a finished contractor’s account, a personal test sandbox, or a trust an attacker added. The query starts at roles that an outside principal trusts and follows any number of hops. It ranks the results by what sits at the end.
Vendor trusts without an sts:ExternalId condition are open to the confused deputy problem. In that attack, the vendor is tricked into using its access to your cloud account for someone else. The graph keeps the condition on the permission, so the missing ones stand out.

Trust specific role ARNs rather than whole accounts, require external IDs on vendor trusts. To keep internal roles inside the organization, use aws:PrincipalOrgID or an RCP.
ATT&CK: T1199 Trusted Relationship · T1078.004 Valid Accounts: Cloud Accounts · T1548.005 Temporary Elevated Cloud Access
Risk 4: Workloads that hand their role to whoever deploys them
Every workload runs as an identity. A function uses its execution role, a container uses its task role, and a build job or notebook uses its service role. That makes compute risky in two directions.
On its own, a workload faces the internet, third-party packages, and untrusted input. A vulnerable dependency or a poisoned image hands its role to whoever exploits it, so a workload whose role can read sensitive data, write to IAM or assume other roles is a risk before anyone attacks it.
Through it, other identities can escalate without calling STS. Updating a workload’s code, configuration, or deployment means acting as its role on the next run. For example, a pipeline allowed to update the invoicing service can make it copy out the billing bucket, and CloudTrail records a deployment.
Creating compute works as well. With iam:PassRole, an identity can launch a function, container task or CloudFormation stack as a powerful role it could never assume itself.
To find these, the graph links compute to the role it runs as. Then run two queries. The first finds compute whose own role reaches sensitive data or IAM. The second finds identities that can change or create compute running as a stronger role. The most revealing results are identities with no direct access to the target at all. These hops chain, so a role that changes one workload, whose role changes another, forms a single route.


Give each workload its own deploy identity, keep workload roles as narrow as the job, and scope iam:PassRole to specific roles and services.
ATT&CK: T1648 Serverless Execution · T1098.003 Additional Cloud Roles · T1552 Unsecured Credentials
Risk 5: AI agents that can reach more than they need
An AI agent acts through roles like any other compute, but it also takes outside input and decides at runtime like a person. However it goes wrong, the damage is bounded by what its roles can reach.
Start with the agent’s own role. A Bedrock agent’s resource role needs little beyond its model and knowledge base, but the AgentCore managed harness gives each session a shell under an execution role you supply, so the model can do whatever that role allows. The first query is that role alone: Read on sensitive data, Write outside the organization, Write or Admin on IAM, or Impersonate onto other roles. Because an agent decides for itself based on whatever it has just read, every chain that starts at its role is one well-crafted message, or one bad judgment call, away from being walked.

An agent’s tools, such as Bedrock action groups or AgentCore Gateway targets, are usually Lambda functions with roles of their own. Risky combinations span them. A tool that reads customer orders plus one that writes to a partner-shared bucket is an exfiltration path. To find these, query for agents whose tool roles together combine a sensitive read with an external or IAM write.

A knowledge base over a sensitive S3 bucket could expose its records to anyone who can talk to the agent. Anyone who can write to that bucket can also plant documents the agent will act on. Who can talk to it, through bedrock:InvokeAgent or bedrock-agentcore:InvokeHarness, is a reverse query with any number of hops in front. Training pipelines are the same problem in reverse: whoever can modify the pipeline runs code as the role that reads the training data, and the model can leak it to anyone with sagemaker:InvokeEndpoint.
Keep agent roles to the model and data they need. Give each tool a narrow role, and restrict who can invoke an agent and who can write to what it reads.
ATLAS: AML.T0051 LLM Prompt Injection · AML.T0053 AI Agent Tool Invocation · AML.T0086 Exfiltration via AI Agent Tool Invocation · AML.T0070 RAG Poisoning · AML.T0057 LLM Data Leakage · AML.T0024 Exfiltration via AI Inference API
Risk 6: Attack paths that reappear with every new account
Real routes mix all of these. In production environments we have found paths of ten hops and more, crossing several accounts and switching between roles and compute, and the graph returns each one as a single result. Routes also come back as roles get stamped into new accounts and agents gain tools, so the same logic runs continuously.
Find All Six in Your AWS Account
Upwind also ships these patterns as a ready-made framework, Upwind Identity Effective Permissions. [Enablement: on by default, or the step customers take to turn it on.] Teams use it like any other compliance framework, and its checks are grouped by the kind of resource at risk. Each check describes a route from an identity to a sensitive destination, including how the identity gets there. A check fails only where that route exists, and each finding shows the full path.

Any query in this post can also be saved as a custom rule with your own context, such as which accounts count as production or which buckets hold regulated data.
How to keep attack paths from forming
Every route in this post was built from reasonable grants. A few habits keep them from adding up:
- Treat indirect access as direct access. Assuming a role, updating a function or editing a policy means holding what is on the other side.
- Read trust from both sides. Trusting a whole account hands the decision to whoever administers it.
- Guard the boundaries. Closing one crossing into production or into the organization cuts many paths.
- Count readers from the data side. Ask who can reach a sensitive store by any route, not who its policy names.
- One role per workload. Shared roles merge the reach of everything that uses them.
- Rerun the queries that found something. New accounts and new tools reopen routes you previously closed.
John Lambert wrote in 2015 that defenders think in lists, attackers think in graphs, and as long as that is true, attackers win. Effective Permissions turns the lists into the graph. It is available now for AWS in the Upwind Identity Graph, with Azure and GCP to follow.
References
- John Lambert, Defenders think in lists. Attackers think in graphs. (2015)
- Upwind documentation: Effective Permissions overview, How it works, Using Effective Permissions, Limitations
- Rhino Security Labs, AWS IAM Privilege Escalation: Methods and Mitigation
- AWS IAM User Guide: Policy evaluation logic, Roles terms and concepts, The confused deputy problem, Lambda code signing
