CLOUD CONCEPT

Privilege Escalation

Privilege escalation is the acquisition of permissions beyond an identity’s intended authorization, often by exploiting excessive permissions, trust relationships, or control over privileged workloads.

Cloud Concepts Hub →

What is Privilege Escalation

In cloud environments, an identity can gain unintended access without exploiting a software vulnerability: legitimate administrative APIs can become escalation paths when permissions are combined incorrectly. Preventing and investigating escalation requires evaluating effective authorization, identifying indirect paths to privileged identities, and correcting the permissions or trust relationships that enable them.

Privilege escalation occurs when a user, application, or service gains capabilities beyond its intended authorization. In cloud systems, this often involves valid API calls rather than an operating-system exploit. A developer who cannot directly read sensitive data might nevertheless be able to modify a workload that runs under an identity authorized to read it. The security question is therefore not only what the developer can access now, but also what permissions the developer can acquire or exercise indirectly.

Evaluate effective authorization across identity policies, resource policies, role trust policies, session restrictions, organizational controls, and relevant conditions. Authentication establishes who is making a request; authorization determines whether that request is allowed. Successful authentication, including multifactor authentication, does not make an excessively permissive authorization policy safe. Likewise, an identity with no administrator policy can still have an escalation path through a small combination of powerful permissions.

For example, an AWS identity allowed to change a managed IAM policy and make a new policy version the default could expand its own access if that policy controls its permissions. Another identity might combine iam:PassRole with permission to create and invoke a function using a more privileged execution role. Passing a role does not itself provide the caller with the role’s credentials, but controlling code that executes under that role can expose its capabilities. Investigate the complete chain, including the role’s trust policy, the caller’s deployment permissions, and the workload’s reachable resources.

Role assumption is another important path. A broadly written trust policy can let an unintended principal obtain a privileged session, subject to the applicable authorization requirements. Cross-account access is not automatically privilege escalation: it may be an intentional delegation. It becomes a security problem when the effective access exceeds the approved scope. Similarly, legitimate, approved temporary elevation is different from unintended elevation, although both require careful restrictions and auditing.

Start an investigation by identifying the principal, the unexpected action, the affected resource, and the authorization changes preceding the event. Review policy attachments, policy versions, group membership, trust relationships, resource policies, permissions boundaries, and organizational policies. Use audit records to reconstruct policy changes, role assumptions, and workload modifications. In AWS, iam:PassRole is a permission check rather than a standalone API call, so investigate the service API operation that received the role instead of expecting a separate PassRole event.

AWS IAM Access Analyzer helps identify resource access outside a configured zone of trust, validate policies, and find unused access through the corresponding analyzer capabilities. Findings require interpretation: an external-access finding can represent approved sharing, while the absence of a finding does not prove that no escalation chain exists. Policy validation checks policy structure and security concerns; it is not a complete assessment of every possible combination of permissions and workload behavior.

Correct the enabling permissions rather than merely removing the final administrator policy. Restrict role passing to approved role ARNs and services, separate workload deployment from privileged identity administration, and protect policy and boundary changes. Permissions boundaries limit identity-based permissions but do not grant access; some direct resource-policy grants have different evaluation behavior, so boundaries are not a universal ceiling. AWS Organizations service control policies establish guardrails for covered principals in member accounts, but they also do not grant permissions and have documented exclusions.

Containment may require disabling compromised credentials, revoking applicable role sessions, removing persistence, and correcting resource policies as well as identity policies. Changing a role’s trust policy prevents newly authorized assumptions but does not automatically invalidate sessions already issued. After remediation, test both prohibited escalation paths and legitimate workflows. Narrow permissions reduce risk but increase policy maintenance and troubleshooting effort; controlled elevation, automated policy checks, and monitored emergency access help balance operational needs with enforceable authorization boundaries.

Key aspects of Privilege Escalation

Privilege-escalation control combines analysis of indirect access paths, protected authorization administration, audit evidence, and verified remediation.

Indirect authorization paths

Assess what an identity can cause another identity or workload to do, not just its direct resource access. Deployment permissions, policy editing, and role passing can combine into capabilities that no single permission makes obvious.

Effective-permission analysis

Evaluate identity policies, resource policies, trust policies, conditions, and applicable permission ceilings together. A policy attachment alone does not describe all the permissions available to a principal.

Protected privilege administration

Restrict who can edit policies, change trust relationships, attach privileged roles, or remove permission boundaries. Keep ordinary workload administration separate from authorization administration wherever practical.

Evidence-driven investigation

Correlate unexpected access with audit events for policy changes, role assumptions, and workload modifications. Identify the original principal and the full sequence of actions that produced the elevated capability.

Analyzer findings with context

Use automated access analysis to identify unintended sharing, unused permissions, and policy concerns. Confirm findings against approved access requirements, and do not treat a clean report as proof that every escalation path is absent.

Complete containment and verification

Remove the enabling authorization path and address existing credentials, sessions, and persistence. Test that the prohibited path fails while approved operational workflows continue to work.

Cloud services for Privilege Escalation

IAM defines identities and authorization relationships, while IAM Access Analyzer highlights supported access exposures, policy concerns, and unused permissions. CloudTrail supplies API evidence for reconstructing how an identity changed authorization or deployed a privileged workload. AWS Config adds supported configuration history and compliance evaluations, helping correlate suspicious activity with resource changes. AWS Organizations supplies account-level permission guardrails through service control policies. Together, these services support prevention, investigation, and remediation, but no single finding or policy establishes that all escalation paths are closed. Engineers must evaluate combined permissions, review approved trust relationships, address active sessions, and test the corrected authorization behavior.

AWS CloudTrail image AWS CloudTrail

CloudTrail records API activity used to reconstruct authorization changes and role usage. Investigators should inspect deployment events containing role references because iam:PassRole does not produce a separate API event, and configure relevant data events when resource-access evidence is required.

Open AWS CloudTrail →
AWS Organizations image AWS Organizations

Service control policies constrain permissions available to covered principals in member accounts and can block sensitive authorization changes. They do not grant access, do not constrain the management account, and do not apply to service-linked roles.

Open AWS Organizations →
AWS Config image AWS Config

AWS Config records supported resource configurations and evaluates configured compliance rules. Configuration history can help identify when an authorization-related resource changed, while rules can flag selected risky configurations rather than prove the absence of escalation.

Open AWS Config →